45 references to Helpers
System.Security.Cryptography (45)
src\libraries\Common\src\System\Security\Cryptography\Asn1\PssParamsAsn.manual.cs (1)
48saltSize = Helpers.HashOidToByteLength(HashAlgorithm.Algorithm);
src\libraries\Common\src\System\Security\Cryptography\DSAOpenSsl.cs (1)
270return Helpers.TryCopyToDestination(derSignature, destination, out bytesWritten);
src\libraries\Common\src\System\Security\Cryptography\ECDsaOpenSsl.cs (1)
147return Helpers.TryCopyToDestination(tmpDerSignature, destination, out bytesWritten);
src\libraries\Common\src\System\Security\Cryptography\KeyFormatHelper.Encrypted.cs (1)
206Helpers.RngFill(salt);
src\libraries\Common\src\System\Security\Cryptography\PasswordBasedEncryption.cs (4)
77if (!Helpers.HasSymmetricEncryption) 240if (!Helpers.HasSymmetricEncryption) 571if (!Helpers.HasSymmetricEncryption) 1104if (!Helpers.IsRC2Supported)
src\libraries\Common\src\System\Security\Cryptography\X509Certificates\X509CertificateLoader.Pkcs12.cs (3)
151Helpers.DecodeOctetStringAsMemory(pfxAsn.AuthSafe.Content); 205contentData = Helpers.DecodeOctetStringAsMemory(safeContentsAsn.Content); 926Helpers.RngFill(salt);
System\Security\Cryptography\CryptographicOperations.cs (1)
806case HashAlgorithmNames.MD5 when Helpers.HasMD5:
System\Security\Cryptography\DSA.cs (2)
516return Helpers.TryCopyToDestination(sig, destination, out bytesWritten); 534return Helpers.TryCopyToDestination(hash, destination, out bytesWritten);
System\Security\Cryptography\ECDsa.cs (1)
1106return Helpers.TryCopyToDestination(converted, destination, out bytesWritten);
System\Security\Cryptography\HKDF.cs (6)
35int hashLength = Helpers.HashLength(hashAlgorithmName); 53int hashLength = Helpers.HashLength(hashAlgorithmName); 88int hashLength = Helpers.HashLength(hashAlgorithmName); 120int hashLength = Helpers.HashLength(hashAlgorithmName); 153int hashLength = Helpers.HashLength(hashAlgorithmName); 177int hashLength = Helpers.HashLength(hashAlgorithmName);
System\Security\Cryptography\HKDFManagedImplementation.cs (2)
14Debug.Assert(Helpers.HashLength(hashAlgorithmName) == hashLength); 21Debug.Assert(Helpers.HashLength(hashAlgorithmName) == hashLength);
System\Security\Cryptography\HMACCommon.cs (2)
50ActualKey = Helpers.CloneByteArray(actualKey); 97case HashAlgorithmNames.MD5 when Helpers.HasMD5:
System\Security\Cryptography\Kmac128.cs (2)
39: this(Helpers.ArrayToSpanOrThrow(key), customizationString) 80public void AppendData(byte[] data) => AppendData(Helpers.ArrayToSpanOrThrow(data));
System\Security\Cryptography\Kmac256.cs (2)
39: this(Helpers.ArrayToSpanOrThrow(key), customizationString) 80public void AppendData(byte[] data) => AppendData(Helpers.ArrayToSpanOrThrow(data));
System\Security\Cryptography\KmacXof128.cs (2)
39: this(Helpers.ArrayToSpanOrThrow(key), customizationString) 80public void AppendData(byte[] data) => AppendData(Helpers.ArrayToSpanOrThrow(data));
System\Security\Cryptography\KmacXof256.cs (2)
39: this(Helpers.ArrayToSpanOrThrow(key), customizationString) 80public void AppendData(byte[] data) => AppendData(Helpers.ArrayToSpanOrThrow(data));
System\Security\Cryptography\X509Certificates\CertificateRequest.cs (2)
366Helpers.ValidateDer(attr.RawData); 825Helpers.ValidateDer(signatureAlgorithmAsn.Parameters.Value.Span);
System\Security\Cryptography\X509Certificates\CertificateRevocationListBuilder.Build.cs (2)
341Helpers.ValidateDer(signatureAlgorithmAsn.Parameters.GetValueOrDefault().Span); 406Helpers.ValidateDer(encodedAkid);
System\Security\Cryptography\X509Certificates\ECDsaCertificateExtensions.cs (1)
43if (!Helpers.AreSamePublicECParameters(publicKey.ExportParameters(false), privateKey.ExportParameters(false)))
System\Security\Cryptography\X509Certificates\Pkcs10CertificationRequestInfo.cs (1)
51Helpers.ValidateDer(signatureAlgorithmAsn.Parameters.Value.Span);
System\Security\Cryptography\X509Certificates\X509Certificate2.cs (3)
763if (!Helpers.AreSamePublicECParameters(publicKey.ExportParameters(false), privateKey.ExportParameters(false))) 954Oids.Dsa when Helpers.IsDSASupported => ExtractKeyFromPem<DSA>(keyPem, s_DsaPublicKeyPrivateKeyLabels, DSA.Create, certificate.CopyWithPrivateKey), 1025Oids.Dsa when Helpers.IsDSASupported => ExtractKeyFromEncryptedPem<DSA>(keyPem, password, DSA.Create, certificate.CopyWithPrivateKey),
System\Security\Cryptography\X509Certificates\X509CertificateLoader.Unix.cs (3)
233ReadOnlyMemory<byte> certData = Helpers.DecodeOctetStringAsMemory(certBag.CertValue); 325Helpers.DecodeOctetStringAsMemory(attr.AttrValues[0]).Span); 422Helpers.DecodeOctetStringAsMemory(attr.AttrValues[0]);