13 references to COSEKeyType
Microsoft.AspNetCore.Identity (13)
Passkeys\CredentialPublicKey.cs (13)
11private readonly COSEKeyType _type; 64_type = (COSEKeyType)reader.ReadInt32(); 69case COSEKeyType.EC2: 70case COSEKeyType.OKP: 73case COSEKeyType.RSA: 111COSEKeyType.EC2 => _ecdsa!.VerifyData(data, signature, HashAlgFromCOSEAlg(_alg), DSASignatureFormat.Rfc3279DerSequence), 112COSEKeyType.RSA => _rsa!.VerifyData(data, signature, HashAlgFromCOSEAlg(_alg), GetRSASignaturePadding()), 149private static ECDsa ParseECDsa(COSEKeyType kty, COSEAlgorithmIdentifier alg, Ctap2CborReader reader) 171if (kty == COSEKeyType.EC2 && !IsValidAlgCrvCombination(alg, crv)) 208static bool IsValidKtyCrvCombination(COSEKeyType kty, COSEEllipticCurve crv) 212(COSEKeyType.EC2, COSEEllipticCurve.P256 or COSEEllipticCurve.P384 or COSEEllipticCurve.P521) => true, 213(COSEKeyType.OKP, COSEEllipticCurve.X25519 or COSEEllipticCurve.X448 or COSEEllipticCurve.Ed25519 or COSEEllipticCurve.Ed448) => true, 238if (_type != COSEKeyType.RSA)