71 references to COSEAlgorithmIdentifier
Microsoft.AspNetCore.Identity (71)
Generated\361d1da7f942c932\IdentityJsonSerializerContext.COSEAlgorithmIdentifier.g.cs (9)
13
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Identity.
COSEAlgorithmIdentifier
>? _COSEAlgorithmIdentifier;
19
public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Identity.
COSEAlgorithmIdentifier
> COSEAlgorithmIdentifier
22
get => _COSEAlgorithmIdentifier ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Identity.
COSEAlgorithmIdentifier
>)Options.GetTypeInfo(typeof(global::Microsoft.AspNetCore.Identity.
COSEAlgorithmIdentifier
));
25
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Identity.
COSEAlgorithmIdentifier
> Create_COSEAlgorithmIdentifier(global::System.Text.Json.JsonSerializerOptions options)
27
if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.AspNetCore.Identity.
COSEAlgorithmIdentifier
>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Identity.
COSEAlgorithmIdentifier
> jsonTypeInfo))
29
jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateValueInfo<global::Microsoft.AspNetCore.Identity.
COSEAlgorithmIdentifier
>(options, global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.GetEnumConverter<global::Microsoft.AspNetCore.Identity.
COSEAlgorithmIdentifier
>(options));
Generated\361d1da7f942c932\IdentityJsonSerializerContext.GetJsonTypeInfo.g.cs (1)
54
if (type == typeof(global::Microsoft.AspNetCore.Identity.
COSEAlgorithmIdentifier
))
Generated\361d1da7f942c932\IdentityJsonSerializerContext.PublicKeyCredentialParameters.g.cs (6)
32
ObjectWithParameterizedConstructorCreator = static args => new global::Microsoft.AspNetCore.Identity.PublicKeyCredentialParameters(){ Type = (string)args[0], Alg = (global::Microsoft.AspNetCore.Identity.
COSEAlgorithmIdentifier
)args[1] },
76
var info1 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::Microsoft.AspNetCore.Identity.
COSEAlgorithmIdentifier
>
91
AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.PublicKeyCredentialParameters).GetProperty("Alg", InstanceMemberBindingFlags, null, typeof(global::Microsoft.AspNetCore.Identity.
COSEAlgorithmIdentifier
), global::System.Array.Empty<global::System.Type>(), null),
94
properties[1] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::Microsoft.AspNetCore.Identity.
COSEAlgorithmIdentifier
>(options, info1);
131
ParameterType = typeof(global::Microsoft.AspNetCore.Identity.
COSEAlgorithmIdentifier
),
141
private static extern void __set_PublicKeyCredentialParameters_Alg(ref global::Microsoft.AspNetCore.Identity.PublicKeyCredentialParameters obj, global::Microsoft.AspNetCore.Identity.
COSEAlgorithmIdentifier
value);
PasskeyHandler.cs (1)
419
var
algorithm = attestedCredentialData.CredentialPublicKey.Alg;
Passkeys\CredentialPublicKey.cs (53)
12
private readonly
COSEAlgorithmIdentifier
_alg;
17
public
COSEAlgorithmIdentifier
Alg => _alg;
28
new() { Type = "public-key", Alg =
COSEAlgorithmIdentifier
.ES256 },
29
new() { Type = "public-key", Alg =
COSEAlgorithmIdentifier
.PS256 },
30
new() { Type = "public-key", Alg =
COSEAlgorithmIdentifier
.ES384 },
31
new() { Type = "public-key", Alg =
COSEAlgorithmIdentifier
.PS384 },
32
new() { Type = "public-key", Alg =
COSEAlgorithmIdentifier
.PS512 },
33
new() { Type = "public-key", Alg =
COSEAlgorithmIdentifier
.RS256 },
34
new() { Type = "public-key", Alg =
COSEAlgorithmIdentifier
.ES512 },
35
new() { Type = "public-key", Alg =
COSEAlgorithmIdentifier
.RS384 },
36
new() { Type = "public-key", Alg =
COSEAlgorithmIdentifier
.RS512 },
43
internal static bool IsSupportedAlgorithm(
COSEAlgorithmIdentifier
alg)
47
COSEAlgorithmIdentifier
.ES256 or
48
COSEAlgorithmIdentifier
.PS256 or
49
COSEAlgorithmIdentifier
.ES384 or
50
COSEAlgorithmIdentifier
.PS384 or
51
COSEAlgorithmIdentifier
.PS512 or
52
COSEAlgorithmIdentifier
.RS256 or
53
COSEAlgorithmIdentifier
.ES512 or
54
COSEAlgorithmIdentifier
.RS384 or
55
COSEAlgorithmIdentifier
.RS512 => true,
117
private static
COSEAlgorithmIdentifier
ParseCoseKeyCommonParameters(Ctap2CborReader reader)
120
var
alg = (
COSEAlgorithmIdentifier
)reader.ReadInt32();
149
private static ECDsa ParseECDsa(COSEKeyType kty,
COSEAlgorithmIdentifier
alg, Ctap2CborReader reader)
224
static bool IsValidAlgCrvCombination(
COSEAlgorithmIdentifier
alg, COSEEllipticCurve crv)
228
(
COSEAlgorithmIdentifier
.ES256, COSEEllipticCurve.P256) => true,
229
(
COSEAlgorithmIdentifier
.ES384, COSEEllipticCurve.P384) => true,
230
(
COSEAlgorithmIdentifier
.ES512, COSEEllipticCurve.P521) => true,
246
COSEAlgorithmIdentifier
.PS256 or
247
COSEAlgorithmIdentifier
.PS384 or
248
COSEAlgorithmIdentifier
.PS512
251
COSEAlgorithmIdentifier
.RS1 or
252
COSEAlgorithmIdentifier
.RS256 or
253
COSEAlgorithmIdentifier
.RS384 or
254
COSEAlgorithmIdentifier
.RS512
261
private static HashAlgorithmName HashAlgFromCOSEAlg(
COSEAlgorithmIdentifier
alg)
265
COSEAlgorithmIdentifier
.RS1 => HashAlgorithmName.SHA1,
266
COSEAlgorithmIdentifier
.ES256 => HashAlgorithmName.SHA256,
267
COSEAlgorithmIdentifier
.ES384 => HashAlgorithmName.SHA384,
268
COSEAlgorithmIdentifier
.ES512 => HashAlgorithmName.SHA512,
269
COSEAlgorithmIdentifier
.PS256 => HashAlgorithmName.SHA256,
270
COSEAlgorithmIdentifier
.PS384 => HashAlgorithmName.SHA384,
271
COSEAlgorithmIdentifier
.PS512 => HashAlgorithmName.SHA512,
272
COSEAlgorithmIdentifier
.RS256 => HashAlgorithmName.SHA256,
273
COSEAlgorithmIdentifier
.RS384 => HashAlgorithmName.SHA384,
274
COSEAlgorithmIdentifier
.RS512 => HashAlgorithmName.SHA512,
275
COSEAlgorithmIdentifier
.ES256K => HashAlgorithmName.SHA256,
276
(
COSEAlgorithmIdentifier
)4 => HashAlgorithmName.SHA1,
277
(
COSEAlgorithmIdentifier
)11 => HashAlgorithmName.SHA256,
278
(
COSEAlgorithmIdentifier
)12 => HashAlgorithmName.SHA384,
279
(
COSEAlgorithmIdentifier
)13 => HashAlgorithmName.SHA512,
280
COSEAlgorithmIdentifier
.EdDSA => HashAlgorithmName.SHA512,
Passkeys\PublicKeyCredentialParameters.cs (1)
29
public required
COSEAlgorithmIdentifier
Alg { get; init; }