66 references to COSEAlgorithmIdentifier
Microsoft.AspNetCore.Identity (66)
_generated\27\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\35\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] },
74
var info1 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::Microsoft.AspNetCore.Identity.
COSEAlgorithmIdentifier
>
89
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),
92
properties[1] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::Microsoft.AspNetCore.Identity.
COSEAlgorithmIdentifier
>(options, info1);
129
ParameterType = typeof(global::Microsoft.AspNetCore.Identity.
COSEAlgorithmIdentifier
),
139
private static extern void __set_PublicKeyCredentialParameters_Alg(ref global::Microsoft.AspNetCore.Identity.PublicKeyCredentialParameters obj, global::Microsoft.AspNetCore.Identity.
COSEAlgorithmIdentifier
value);
_generated\51\IdentityJsonSerializerContext.GetJsonTypeInfo.g.cs (1)
50
if (type == typeof(global::Microsoft.AspNetCore.Identity.
COSEAlgorithmIdentifier
))
PasskeyHandler.cs (1)
295
var
algorithm = attestedCredentialData.CredentialPublicKey.Alg;
Passkeys\CredentialPublicKey.cs (48)
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();
212
COSEAlgorithmIdentifier
.PS256 or
213
COSEAlgorithmIdentifier
.PS384 or
214
COSEAlgorithmIdentifier
.PS512
217
COSEAlgorithmIdentifier
.RS1 or
218
COSEAlgorithmIdentifier
.RS256 or
219
COSEAlgorithmIdentifier
.RS384 or
220
COSEAlgorithmIdentifier
.RS512
227
private static HashAlgorithmName HashAlgFromCOSEAlg(
COSEAlgorithmIdentifier
alg)
231
COSEAlgorithmIdentifier
.RS1 => HashAlgorithmName.SHA1,
232
COSEAlgorithmIdentifier
.ES256 => HashAlgorithmName.SHA256,
233
COSEAlgorithmIdentifier
.ES384 => HashAlgorithmName.SHA384,
234
COSEAlgorithmIdentifier
.ES512 => HashAlgorithmName.SHA512,
235
COSEAlgorithmIdentifier
.PS256 => HashAlgorithmName.SHA256,
236
COSEAlgorithmIdentifier
.PS384 => HashAlgorithmName.SHA384,
237
COSEAlgorithmIdentifier
.PS512 => HashAlgorithmName.SHA512,
238
COSEAlgorithmIdentifier
.RS256 => HashAlgorithmName.SHA256,
239
COSEAlgorithmIdentifier
.RS384 => HashAlgorithmName.SHA384,
240
COSEAlgorithmIdentifier
.RS512 => HashAlgorithmName.SHA512,
241
COSEAlgorithmIdentifier
.ES256K => HashAlgorithmName.SHA256,
242
(
COSEAlgorithmIdentifier
)4 => HashAlgorithmName.SHA1,
243
(
COSEAlgorithmIdentifier
)11 => HashAlgorithmName.SHA256,
244
(
COSEAlgorithmIdentifier
)12 => HashAlgorithmName.SHA384,
245
(
COSEAlgorithmIdentifier
)13 => HashAlgorithmName.SHA512,
246
COSEAlgorithmIdentifier
.EdDSA => HashAlgorithmName.SHA512,
Passkeys\PublicKeyCredentialParameters.cs (1)
29
public required
COSEAlgorithmIdentifier
Alg { get; init; }