3 writes to KeyType
System.Security.Cryptography.Cose (3)
System\Security\Cryptography\Cose\CoseKey.cs (3)
36KeyType = KeyType.RSA; 50KeyType = KeyType.ECDsa; 63KeyType = KeyType.MLDsa;
12 references to KeyType
System.Security.Cryptography.Cose (12)
System\Security\Cryptography\Cose\CoseKey.cs (9)
174switch (KeyType) 185Debug.Fail($"Unknown key type: {KeyType}"); 186throw new CryptographicException(SR.Format(SR.Sign1UnsupportedKey, KeyType.ToString())); 192switch (KeyType) 211throw new CryptographicException(SR.Format(SR.Sign1UnsupportedKey, KeyType.ToString())); 239switch (KeyType) 262Debug.Fail($"Unknown keyType: {KeyType}"); 263throw new ArgumentException(SR.Sign1UnsupportedKey, KeyType.ToString()); 328switch (KeyType)
System\Security\Cryptography\Cose\CoseSigner.cs (3)
181switch (CoseKey.KeyType) 184exMsg = SR.Format(SR.Sign1SignCoseAlgorithmDoesNotMatchSpecifiedKeyHashAlgorithmAndPadding, alg.Value, CoseKey.KeyType, HashAlgorithm.Name, RSASignaturePadding); 192exMsg = SR.Format(SR.Sign1SignCoseAlgorithmDoesNotMatchSpecifiedKeyAndHashAlgorithm, alg.Value, CoseKey.KeyType, HashAlgorithm.Name);