2 writes to HashAlgorithm
System.Security.Cryptography.Cose (2)
System\Security\Cryptography\Cose\CoseSigner.cs (2)
74HashAlgorithm = hashAlgorithm; 113HashAlgorithm = 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)
461using (IncrementalHash hasher = IncrementalHash.CreateHash(signer.HashAlgorithm)) 489HashAlgorithmName hashAlgorithm = signer.HashAlgorithm; 801using (IncrementalHash hasher = IncrementalHash.CreateHash(signer.HashAlgorithm)) 874using (IncrementalHash hasher = IncrementalHash.CreateHash(signer.HashAlgorithm))
System\Security\Cryptography\Cose\CoseSign1Message.cs (2)
334using (IncrementalHash hasher = IncrementalHash.CreateHash(signer.HashAlgorithm)) 356using (IncrementalHash hasher = IncrementalHash.CreateHash(signer.HashAlgorithm))
System\Security\Cryptography\Cose\CoseSigner.cs (3)
164exMsg = SR.Format(SR.Sign1SignCoseAlgorithmDoesNotMatchSpecifiedKeyHashAlgorithmAndPadding, alg.Value, _keyType, HashAlgorithm.Name, RSASignaturePadding); 168exMsg = SR.Format(SR.Sign1SignCoseAlgorithmDoesNotMatchSpecifiedKeyAndHashAlgorithm, alg.Value, _keyType, HashAlgorithm.Name); 177string? hashAlgorithmName = HashAlgorithm.Name;