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)
573
private bool VerifyCore(AsymmetricAlgorithm key, ReadOnlySpan<byte> contentBytes, Stream? contentStream, ReadOnlySpan<byte> associatedData,
KeyType
keyType)
668
private async Task<bool> VerifyAsyncCore(AsymmetricAlgorithm key, Stream content, ReadOnlyMemory<byte> associatedData,
KeyType
keyType, CancellationToken cancellationToken)
699
private bool VerifyHash(AsymmetricAlgorithm key, IncrementalHash hasher, HashAlgorithmName hashAlgorithm,
KeyType
keyType, RSASignaturePadding? padding)
708
if (keyType ==
KeyType
.ECDsa)
715
Debug.Assert(keyType ==
KeyType
.RSA);
System\Security\Cryptography\Cose\CoseSignature.cs (5)
358
private async Task<bool> VerifyAsyncCore(AsymmetricAlgorithm key, Stream content, ReadOnlyMemory<byte> associatedData,
KeyType
keyType, CancellationToken cancellationToken)
392
private bool VerifyCore(AsymmetricAlgorithm key, ReadOnlySpan<byte> contentBytes, Stream? contentStream, ReadOnlySpan<byte> associatedData,
KeyType
keyType)
424
private bool VerifyHash(AsymmetricAlgorithm key, IncrementalHash hasher, HashAlgorithmName hashAlgorithm,
KeyType
keyType, RSASignaturePadding? padding)
433
if (keyType ==
KeyType
.ECDsa)
440
Debug.Assert(keyType ==
KeyType
.RSA);
System\Security\Cryptography\Cose\CoseSigner.cs (4)
13
internal readonly
KeyType
_keyType;
158
if (_keyType ==
KeyType
.RSA)
174
if (_keyType ==
KeyType
.ECDsa)
185
Debug.Assert(_keyType ==
KeyType
.RSA);