2 writes to HashAlgorithm
System.Security.Cryptography.Cose (2)
System\Security\Cryptography\Cose\CoseSigner.cs (2)
73HashAlgorithm = hashAlgorithm; 109HashAlgorithm = hashAlgorithm;
10 references to HashAlgorithm
System.Security.Cryptography.Cose (10)
System\Security\Cryptography\Cose\CoseHelpers.cs (1)
120return SignHashWithRSA((RSA)key, hasher, signer.HashAlgorithm, signer.RSASignaturePadding, destination);
System\Security\Cryptography\Cose\CoseMultiSignMessage.cs (4)
453using (IncrementalHash hasher = IncrementalHash.CreateHash(signer.HashAlgorithm)) 481HashAlgorithmName hashAlgorithm = signer.HashAlgorithm; 781using (IncrementalHash hasher = IncrementalHash.CreateHash(signer.HashAlgorithm)) 851using (IncrementalHash hasher = IncrementalHash.CreateHash(signer.HashAlgorithm))
System\Security\Cryptography\Cose\CoseSign1Message.cs (2)
319using (IncrementalHash hasher = IncrementalHash.CreateHash(signer.HashAlgorithm)) 341using (IncrementalHash hasher = IncrementalHash.CreateHash(signer.HashAlgorithm))
System\Security\Cryptography\Cose\CoseSigner.cs (3)
160exMsg = SR.Format(SR.Sign1SignCoseAlgorithmDoesNotMatchSpecifiedKeyHashAlgorithmAndPadding, alg.Value, _keyType, HashAlgorithm.Name, RSASignaturePadding); 164exMsg = SR.Format(SR.Sign1SignCoseAlgorithmDoesNotMatchSpecifiedKeyAndHashAlgorithm, alg.Value, _keyType, HashAlgorithm.Name); 173string? hashAlgorithmName = HashAlgorithm.Name;