26 references to KnownCoseAlgorithms
System.Security.Cryptography.Cose (26)
System\Security\Cryptography\Cose\CoseHelpers.cs (17)
222
KnownCoseAlgorithms
.ThrowUnsignedIntegerNotSupported(reader.ReadUInt64());
230
KnownCoseAlgorithms
.ThrowCborNegativeIntegerNotSupported(cborNegativeIntRepresentation);
234
KnownCoseAlgorithms
.ThrowIfNotSupported(alg);
246
int alg =
KnownCoseAlgorithms
.FromString(reader.ReadTextString());
266
KnownCoseAlgorithms
.ES256 => HashAlgorithmName.SHA256,
267
KnownCoseAlgorithms
.ES384 => HashAlgorithmName.SHA384,
268
KnownCoseAlgorithms
.ES512 => HashAlgorithmName.SHA512,
277
KnownCoseAlgorithms
.PS256 or
KnownCoseAlgorithms
.RS256 => HashAlgorithmName.SHA256,
278
KnownCoseAlgorithms
.PS384 or
KnownCoseAlgorithms
.RS384 => HashAlgorithmName.SHA384,
279
KnownCoseAlgorithms
.PS512 or
KnownCoseAlgorithms
.RS512 => HashAlgorithmName.SHA512,
283
if (algorithm <=
KnownCoseAlgorithms
.RS256)
285
Debug.Assert(algorithm >=
KnownCoseAlgorithms
.RS512);
290
Debug.Assert(algorithm >=
KnownCoseAlgorithms
.PS512 && algorithm <=
KnownCoseAlgorithms
.PS256);
System\Security\Cryptography\Cose\CoseSigner.cs (9)
182
nameof(HashAlgorithmName.SHA256) =>
KnownCoseAlgorithms
.ES256,
183
nameof(HashAlgorithmName.SHA384) =>
KnownCoseAlgorithms
.ES384,
184
nameof(HashAlgorithmName.SHA512) =>
KnownCoseAlgorithms
.ES512,
196
nameof(HashAlgorithmName.SHA256) =>
KnownCoseAlgorithms
.PS256,
197
nameof(HashAlgorithmName.SHA384) =>
KnownCoseAlgorithms
.PS384,
198
nameof(HashAlgorithmName.SHA512) =>
KnownCoseAlgorithms
.PS512,
207
nameof(HashAlgorithmName.SHA256) =>
KnownCoseAlgorithms
.RS256,
208
nameof(HashAlgorithmName.SHA384) =>
KnownCoseAlgorithms
.RS384,
209
nameof(HashAlgorithmName.SHA512) =>
KnownCoseAlgorithms
.RS512,