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