53 references to Name
mscorlib (29)
system\security\cryptography\dsa.cs (4)
108
if (String.IsNullOrEmpty(hashAlgorithm.
Name
)) { throw HashAlgorithmNameNullOrEmpty(); }
117
if (String.IsNullOrEmpty(hashAlgorithm.
Name
)) { throw HashAlgorithmNameNullOrEmpty(); }
136
if (String.IsNullOrEmpty(hashAlgorithm.
Name
)) { throw HashAlgorithmNameNullOrEmpty(); }
146
if (String.IsNullOrEmpty(hashAlgorithm.
Name
)) { throw HashAlgorithmNameNullOrEmpty(); }
system\security\cryptography\dsacryptoserviceprovider.cs (4)
277
Contract.Assert(!String.IsNullOrEmpty(hashAlgorithm.
Name
));
281
throw new CryptographicException(Environment.GetResourceString("Cryptography_UnknownHashAlgorithm", hashAlgorithm.
Name
));
291
Contract.Assert(!String.IsNullOrEmpty(hashAlgorithm.
Name
));
295
throw new CryptographicException(Environment.GetResourceString("Cryptography_UnknownHashAlgorithm", hashAlgorithm.
Name
));
system\security\cryptography\rfc2898derivebytes.cs (6)
60
if (string.IsNullOrEmpty(hashAlgorithm.
Name
))
63
HMAC hmac = HMAC.Create("HMAC" + hashAlgorithm.
Name
);
66
throw new CryptographicException(Environment.GetResourceString("Cryptography_UnknownHashAlgorithm", hashAlgorithm.
Name
));
99
if (string.IsNullOrEmpty(hashAlgorithm.
Name
))
102
HMAC hmac = HMAC.Create("HMAC" + hashAlgorithm.
Name
);
105
throw new CryptographicException(Environment.GetResourceString("Cryptography_UnknownHashAlgorithm", hashAlgorithm.
Name
));
system\security\cryptography\rsa.cs (4)
126
if (String.IsNullOrEmpty(hashAlgorithm.
Name
)) {
141
if (String.IsNullOrEmpty(hashAlgorithm.
Name
)) {
172
if (String.IsNullOrEmpty(hashAlgorithm.
Name
)) {
190
if (String.IsNullOrEmpty(hashAlgorithm.
Name
)) {
system\security\cryptography\rsacryptoserviceprovider.cs (6)
525
Contract.Assert(!String.IsNullOrEmpty(hashAlgorithm.
Name
));
537
Contract.Assert(!String.IsNullOrEmpty(hashAlgorithm.
Name
));
555
switch (hashAlgorithm.
Name
) {
567
throw new CryptographicException(Environment.GetResourceString("Cryptography_UnknownHashAlgorithm", hashAlgorithm.
Name
));
609
if (String.IsNullOrEmpty(hashAlgorithm.
Name
)) {
629
if (String.IsNullOrEmpty(hashAlgorithm.
Name
)) {
system\security\cryptography\RSAEncryptionPadding.cs (3)
60
if (String.IsNullOrEmpty(hashAlgorithm.
Name
))
80
/// If <see cref="Mode"/> is not <see cref="RSAEncryptionPaddingMode.Oaep"/>, then <see cref="HashAlgorithmName.
Name
" /> will be null.
127
return _mode.ToString() + _oaepHashAlgorithm.
Name
;
system\security\cryptography\x509certificates\x509certificate.cs (2)
329
if (string.IsNullOrEmpty(hashAlgorithm.
Name
)) {
335
using (HashAlgorithm hash = CryptoConfig.CreateFromName(hashAlgorithm.
Name
) as HashAlgorithm) {
System.Core (24)
System\Security\Cryptography\ECDiffieHellmanCng.cs (4)
422
if (string.IsNullOrEmpty(hashAlgorithm.
Name
))
429
hashAlgorithm.
Name
,
448
if (string.IsNullOrEmpty(hashAlgorithm.
Name
))
459
hashAlgorithm.
Name
,
System\Security\Cryptography\ECDsa.cs (4)
112
if (String.IsNullOrEmpty(hashAlgorithm.
Name
)) { throw HashAlgorithmNameNullOrEmpty(); }
122
if (String.IsNullOrEmpty(hashAlgorithm.
Name
)) {
150
if (String.IsNullOrEmpty(hashAlgorithm.
Name
)) {
165
if (String.IsNullOrEmpty(hashAlgorithm.
Name
)) {
System\Security\Cryptography\ECDsaCng.cs (4)
451
Debug.Assert(!String.IsNullOrEmpty(hashAlgorithm.
Name
));
453
using (BCryptHashAlgorithm hasher = new BCryptHashAlgorithm(new CngAlgorithm(hashAlgorithm.
Name
), BCryptNative.ProviderName.MicrosoftPrimitiveProvider)) {
462
Debug.Assert(!String.IsNullOrEmpty(hashAlgorithm.
Name
));
464
using (BCryptHashAlgorithm hasher = new BCryptHashAlgorithm(new CngAlgorithm(hashAlgorithm.
Name
), BCryptNative.ProviderName.MicrosoftPrimitiveProvider)) {
System\Security\Cryptography\RsaCng.cs (12)
166
Debug.Assert(!String.IsNullOrEmpty(hashAlgorithm.
Name
));
168
using (BCryptHashAlgorithm hasher = new BCryptHashAlgorithm(new CngAlgorithm(hashAlgorithm.
Name
), BCryptNative.ProviderName.MicrosoftPrimitiveProvider))
179
Debug.Assert(!String.IsNullOrEmpty(hashAlgorithm.
Name
));
181
using (BCryptHashAlgorithm hasher = new BCryptHashAlgorithm(new CngAlgorithm(hashAlgorithm.
Name
), BCryptNative.ProviderName.MicrosoftPrimitiveProvider))
420
return NCryptNative.DecryptDataOaep(keyHandle, data, padding.OaepHashAlgorithm.
Name
);
447
return NCryptNative.EncryptDataOaep(KeyHandle, data, padding.OaepHashAlgorithm.
Name
);
469
if (String.IsNullOrEmpty(hashAlgorithm.
Name
))
484
return NCryptNative.SignHashPkcs1(keyHandle, hash, hashAlgorithm.
Name
);
488
return NCryptNative.SignHashPss(keyHandle, hash, hashAlgorithm.
Name
, hash.Length);
509
if (String.IsNullOrEmpty(hashAlgorithm.
Name
))
520
return NCryptNative.VerifySignaturePkcs1(KeyHandle, hash, hashAlgorithm.
Name
, signature);
524
return NCryptNative.VerifySignaturePss(KeyHandle, hash, hashAlgorithm.
Name
, hash.Length, signature);