18 references to AsymmetricAlgorithmHelpers
System.Security.Cryptography (18)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\CompositeMLDsaAlgorithm.cs (1)
545
mldsaAlgorithm.SignatureSizeInBytes +
AsymmetricAlgorithmHelpers
.GetMaxDerSignatureSize(keySizeInBits),
src\runtime\src\libraries\Common\src\System\Security\Cryptography\DSACng.SignVerify.cs (1)
67
return
AsymmetricAlgorithmHelpers
.TryConvertIeee1363ToDer(
src\runtime\src\libraries\Common\src\System\Security\Cryptography\ECDsaCng.SignVerify.cs (1)
69
return
AsymmetricAlgorithmHelpers
.TryConvertIeee1363ToDer(
System\Security\Cryptography\CngSymmetricAlgorithmCore.cs (8)
112
byte[] key = RandomNumberGenerator.GetBytes(
AsymmetricAlgorithmHelpers
.BitsToBytes(_outer.BaseKeySize));
118
byte[] iv = RandomNumberGenerator.GetBytes(
AsymmetricAlgorithmHelpers
.BitsToBytes(_outer.BlockSize));
171
if (!iv.IsEmpty && iv.Length !=
AsymmetricAlgorithmHelpers
.BitsToBytes(_outer.BlockSize))
182
int blockSizeInBytes =
AsymmetricAlgorithmHelpers
.BitsToBytes(_outer.BlockSize);
202
if (rgbIV != null && rgbIV.Length !=
AsymmetricAlgorithmHelpers
.BitsToBytes(_outer.BlockSize))
216
int blockSizeInBytes =
AsymmetricAlgorithmHelpers
.BitsToBytes(_outer.BlockSize);
241
int blockSizeInBytes =
AsymmetricAlgorithmHelpers
.BitsToBytes(_outer.BlockSize);
259
int blockSizeInBytes =
AsymmetricAlgorithmHelpers
.BitsToBytes(_outer.BlockSize);
System\Security\Cryptography\DSA.cs (4)
238
return
AsymmetricAlgorithmHelpers
.ConvertFromIeeeP1363Signature(sig, signatureFormat);
443
return
AsymmetricAlgorithmHelpers
.ConvertFromIeeeP1363Signature(sig, signatureFormat);
513
sig =
AsymmetricAlgorithmHelpers
.ConvertFromIeeeP1363Signature(sig, signatureFormat);
1114
return
AsymmetricAlgorithmHelpers
.GetMaxDerSignatureSize(fieldSizeBits: qLength * 8);
System\Security\Cryptography\ECDsa.cs (3)
1105
byte[] converted =
AsymmetricAlgorithmHelpers
.ConvertFromIeeeP1363Signature(result, signatureFormat);
1269
return
AsymmetricAlgorithmHelpers
.BitsToBytes(fieldSizeBits) * 2;
1271
return
AsymmetricAlgorithmHelpers
.GetMaxDerSignatureSize(fieldSizeBits);