66 references to COSEAlgorithmIdentifier
Microsoft.AspNetCore.Identity (66)
_generated\27\IdentityJsonSerializerContext.COSEAlgorithmIdentifier.g.cs (9)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Identity.COSEAlgorithmIdentifier>? _COSEAlgorithmIdentifier; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Identity.COSEAlgorithmIdentifier> COSEAlgorithmIdentifier 22get => _COSEAlgorithmIdentifier ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Identity.COSEAlgorithmIdentifier>)Options.GetTypeInfo(typeof(global::Microsoft.AspNetCore.Identity.COSEAlgorithmIdentifier)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Identity.COSEAlgorithmIdentifier> Create_COSEAlgorithmIdentifier(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.AspNetCore.Identity.COSEAlgorithmIdentifier>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Identity.COSEAlgorithmIdentifier> jsonTypeInfo)) 29jsonTypeInfo = 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)
32ObjectWithParameterizedConstructorCreator = static args => new global::Microsoft.AspNetCore.Identity.PublicKeyCredentialParameters(){ Type = (string)args[0], Alg = (global::Microsoft.AspNetCore.Identity.COSEAlgorithmIdentifier)args[1] }, 74var info1 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::Microsoft.AspNetCore.Identity.COSEAlgorithmIdentifier> 89AttributeProviderFactory = 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), 92properties[1] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::Microsoft.AspNetCore.Identity.COSEAlgorithmIdentifier>(options, info1); 129ParameterType = typeof(global::Microsoft.AspNetCore.Identity.COSEAlgorithmIdentifier), 139private 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)
50if (type == typeof(global::Microsoft.AspNetCore.Identity.COSEAlgorithmIdentifier))
PasskeyHandler.cs (1)
295var algorithm = attestedCredentialData.CredentialPublicKey.Alg;
Passkeys\CredentialPublicKey.cs (48)
12private readonly COSEAlgorithmIdentifier _alg; 17public COSEAlgorithmIdentifier Alg => _alg; 28new() { Type = "public-key", Alg = COSEAlgorithmIdentifier.ES256 }, 29new() { Type = "public-key", Alg = COSEAlgorithmIdentifier.PS256 }, 30new() { Type = "public-key", Alg = COSEAlgorithmIdentifier.ES384 }, 31new() { Type = "public-key", Alg = COSEAlgorithmIdentifier.PS384 }, 32new() { Type = "public-key", Alg = COSEAlgorithmIdentifier.PS512 }, 33new() { Type = "public-key", Alg = COSEAlgorithmIdentifier.RS256 }, 34new() { Type = "public-key", Alg = COSEAlgorithmIdentifier.ES512 }, 35new() { Type = "public-key", Alg = COSEAlgorithmIdentifier.RS384 }, 36new() { Type = "public-key", Alg = COSEAlgorithmIdentifier.RS512 }, 43internal static bool IsSupportedAlgorithm(COSEAlgorithmIdentifier alg) 47COSEAlgorithmIdentifier.ES256 or 48COSEAlgorithmIdentifier.PS256 or 49COSEAlgorithmIdentifier.ES384 or 50COSEAlgorithmIdentifier.PS384 or 51COSEAlgorithmIdentifier.PS512 or 52COSEAlgorithmIdentifier.RS256 or 53COSEAlgorithmIdentifier.ES512 or 54COSEAlgorithmIdentifier.RS384 or 55COSEAlgorithmIdentifier.RS512 => true, 117private static COSEAlgorithmIdentifier ParseCoseKeyCommonParameters(Ctap2CborReader reader) 120var alg = (COSEAlgorithmIdentifier)reader.ReadInt32(); 212COSEAlgorithmIdentifier.PS256 or 213COSEAlgorithmIdentifier.PS384 or 214COSEAlgorithmIdentifier.PS512 217COSEAlgorithmIdentifier.RS1 or 218COSEAlgorithmIdentifier.RS256 or 219COSEAlgorithmIdentifier.RS384 or 220COSEAlgorithmIdentifier.RS512 227private static HashAlgorithmName HashAlgFromCOSEAlg(COSEAlgorithmIdentifier alg) 231COSEAlgorithmIdentifier.RS1 => HashAlgorithmName.SHA1, 232COSEAlgorithmIdentifier.ES256 => HashAlgorithmName.SHA256, 233COSEAlgorithmIdentifier.ES384 => HashAlgorithmName.SHA384, 234COSEAlgorithmIdentifier.ES512 => HashAlgorithmName.SHA512, 235COSEAlgorithmIdentifier.PS256 => HashAlgorithmName.SHA256, 236COSEAlgorithmIdentifier.PS384 => HashAlgorithmName.SHA384, 237COSEAlgorithmIdentifier.PS512 => HashAlgorithmName.SHA512, 238COSEAlgorithmIdentifier.RS256 => HashAlgorithmName.SHA256, 239COSEAlgorithmIdentifier.RS384 => HashAlgorithmName.SHA384, 240COSEAlgorithmIdentifier.RS512 => HashAlgorithmName.SHA512, 241COSEAlgorithmIdentifier.ES256K => HashAlgorithmName.SHA256, 242(COSEAlgorithmIdentifier)4 => HashAlgorithmName.SHA1, 243(COSEAlgorithmIdentifier)11 => HashAlgorithmName.SHA256, 244(COSEAlgorithmIdentifier)12 => HashAlgorithmName.SHA384, 245(COSEAlgorithmIdentifier)13 => HashAlgorithmName.SHA512, 246COSEAlgorithmIdentifier.EdDSA => HashAlgorithmName.SHA512,
Passkeys\PublicKeyCredentialParameters.cs (1)
29public required COSEAlgorithmIdentifier Alg { get; init; }