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