15 references to AsymmetricAlgorithmHelpers
System.Security.Cryptography (15)
src\libraries\Common\src\System\Security\Cryptography\DSAOpenSsl.cs (3)
206
return
AsymmetricAlgorithmHelpers
.ConvertDerToIeee1363(derSignature, signatureFieldSize);
245
bytesWritten =
AsymmetricAlgorithmHelpers
.ConvertDerToIeee1363(derSignature, fieldSizeBits, destination);
335
signature =
AsymmetricAlgorithmHelpers
.ConvertIeee1363ToDer(signature);
src\libraries\Common\src\System\Security\Cryptography\ECDsaOpenSsl.cs (5)
93
byte[] converted =
AsymmetricAlgorithmHelpers
.ConvertDerToIeee1363(derSignature, KeySize);
131
bytesWritten =
AsymmetricAlgorithmHelpers
.ConvertDerToIeee1363(derSignature, KeySize, destination);
181
int expectedBytes = 2 *
AsymmetricAlgorithmHelpers
.BitsToBytes(KeySize);
188
if (
AsymmetricAlgorithmHelpers
.TryConvertIeee1363ToDer(signature, derSignature, out int derSize))
194
toVerify =
AsymmetricAlgorithmHelpers
.ConvertIeee1363ToDer(signature);
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);