26 references to KeyType
System.Security.Cryptography.Cose (26)
System\Security\Cryptography\Cose\CoseHelpers.cs (12)
110
KeyType
keyType = signer._keyType;
112
if (keyType ==
KeyType
.ECDsa)
118
Debug.Assert(keyType ==
KeyType
.RSA);
202
KeyType
keyType = signer._keyType;
204
if (keyType ==
KeyType
.ECDsa)
210
Debug.Assert(keyType ==
KeyType
.RSA);
259
internal static HashAlgorithmName GetHashAlgorithmFromCoseAlgorithmAndKeyType(int algorithm,
KeyType
keyType, out RSASignaturePadding? padding)
261
if (keyType ==
KeyType
.ECDsa)
274
Debug.Assert(keyType ==
KeyType
.RSA);
298
internal static
KeyType
GetKeyType(AsymmetricAlgorithm key)
302
ECDsa =>
KeyType
.ECDsa,
303
RSA =>
KeyType
.RSA,
System\Security\Cryptography\Cose\CoseSign1Message.cs (5)
609
private bool VerifyCore(AsymmetricAlgorithm key, ReadOnlySpan<byte> contentBytes, Stream? contentStream, ReadOnlySpan<byte> associatedData,
KeyType
keyType)
710
private async Task<bool> VerifyAsyncCore(AsymmetricAlgorithm key, Stream content, ReadOnlyMemory<byte> associatedData,
KeyType
keyType, CancellationToken cancellationToken)
741
private bool VerifyHash(AsymmetricAlgorithm key, IncrementalHash hasher, HashAlgorithmName hashAlgorithm,
KeyType
keyType, RSASignaturePadding? padding)
750
if (keyType ==
KeyType
.ECDsa)
757
Debug.Assert(keyType ==
KeyType
.RSA);
System\Security\Cryptography\Cose\CoseSignature.cs (5)
385
private async Task<bool> VerifyAsyncCore(AsymmetricAlgorithm key, Stream content, ReadOnlyMemory<byte> associatedData,
KeyType
keyType, CancellationToken cancellationToken)
419
private bool VerifyCore(AsymmetricAlgorithm key, ReadOnlySpan<byte> contentBytes, Stream? contentStream, ReadOnlySpan<byte> associatedData,
KeyType
keyType)
451
private bool VerifyHash(AsymmetricAlgorithm key, IncrementalHash hasher, HashAlgorithmName hashAlgorithm,
KeyType
keyType, RSASignaturePadding? padding)
460
if (keyType ==
KeyType
.ECDsa)
467
Debug.Assert(keyType ==
KeyType
.RSA);
System\Security\Cryptography\Cose\CoseSigner.cs (4)
13
internal readonly
KeyType
_keyType;
162
if (_keyType ==
KeyType
.RSA)
178
if (_keyType ==
KeyType
.ECDsa)
189
Debug.Assert(_keyType ==
KeyType
.RSA);