71 references to COSEAlgorithmIdentifier
Microsoft.AspNetCore.Identity (71)
Generated\361d1da7f942c932\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\361d1da7f942c932\IdentityJsonSerializerContext.GetJsonTypeInfo.g.cs (1)
54if (type == typeof(global::Microsoft.AspNetCore.Identity.COSEAlgorithmIdentifier))
Generated\361d1da7f942c932\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] }, 76var info1 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::Microsoft.AspNetCore.Identity.COSEAlgorithmIdentifier> 91AttributeProviderFactory = 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), 94properties[1] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::Microsoft.AspNetCore.Identity.COSEAlgorithmIdentifier>(options, info1); 131ParameterType = typeof(global::Microsoft.AspNetCore.Identity.COSEAlgorithmIdentifier), 141private static extern void __set_PublicKeyCredentialParameters_Alg(ref global::Microsoft.AspNetCore.Identity.PublicKeyCredentialParameters obj, global::Microsoft.AspNetCore.Identity.COSEAlgorithmIdentifier value);
PasskeyHandler.cs (1)
419var algorithm = attestedCredentialData.CredentialPublicKey.Alg;
Passkeys\CredentialPublicKey.cs (53)
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(); 149private static ECDsa ParseECDsa(COSEKeyType kty, COSEAlgorithmIdentifier alg, Ctap2CborReader reader) 224static bool IsValidAlgCrvCombination(COSEAlgorithmIdentifier alg, COSEEllipticCurve crv) 228(COSEAlgorithmIdentifier.ES256, COSEEllipticCurve.P256) => true, 229(COSEAlgorithmIdentifier.ES384, COSEEllipticCurve.P384) => true, 230(COSEAlgorithmIdentifier.ES512, COSEEllipticCurve.P521) => true, 246COSEAlgorithmIdentifier.PS256 or 247COSEAlgorithmIdentifier.PS384 or 248COSEAlgorithmIdentifier.PS512 251COSEAlgorithmIdentifier.RS1 or 252COSEAlgorithmIdentifier.RS256 or 253COSEAlgorithmIdentifier.RS384 or 254COSEAlgorithmIdentifier.RS512 261private static HashAlgorithmName HashAlgFromCOSEAlg(COSEAlgorithmIdentifier alg) 265COSEAlgorithmIdentifier.RS1 => HashAlgorithmName.SHA1, 266COSEAlgorithmIdentifier.ES256 => HashAlgorithmName.SHA256, 267COSEAlgorithmIdentifier.ES384 => HashAlgorithmName.SHA384, 268COSEAlgorithmIdentifier.ES512 => HashAlgorithmName.SHA512, 269COSEAlgorithmIdentifier.PS256 => HashAlgorithmName.SHA256, 270COSEAlgorithmIdentifier.PS384 => HashAlgorithmName.SHA384, 271COSEAlgorithmIdentifier.PS512 => HashAlgorithmName.SHA512, 272COSEAlgorithmIdentifier.RS256 => HashAlgorithmName.SHA256, 273COSEAlgorithmIdentifier.RS384 => HashAlgorithmName.SHA384, 274COSEAlgorithmIdentifier.RS512 => HashAlgorithmName.SHA512, 275COSEAlgorithmIdentifier.ES256K => HashAlgorithmName.SHA256, 276(COSEAlgorithmIdentifier)4 => HashAlgorithmName.SHA1, 277(COSEAlgorithmIdentifier)11 => HashAlgorithmName.SHA256, 278(COSEAlgorithmIdentifier)12 => HashAlgorithmName.SHA384, 279(COSEAlgorithmIdentifier)13 => HashAlgorithmName.SHA512, 280COSEAlgorithmIdentifier.EdDSA => HashAlgorithmName.SHA512,
Passkeys\PublicKeyCredentialParameters.cs (1)
29public required COSEAlgorithmIdentifier Alg { get; init; }