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