diff --git a/Test/Attestation/Tpm.cs b/Test/Attestation/Tpm.cs index a5f49b9a..1c034ce1 100644 --- a/Test/Attestation/Tpm.cs +++ b/Test/Attestation/Tpm.cs @@ -1133,6 +1133,8 @@ public async Task TestTPMPubAreaUniqueNull() unique = rsaParams.Modulus; exponent = rsaParams.Exponent; byte[] policy = [0x00]; + + #pragma warning disable format byte[] pubArea = [ .. TpmAlg.TPM_ALG_RSA.ToUInt16BigEndianBytes(), .. tpmAlg, @@ -1144,6 +1146,7 @@ .. GetUInt16BigEndianBytes(policy.Length), 0x80, 0x00, .. BitConverter.GetBytes(exponent[0] + (exponent[1] << 8) + (exponent[2] << 16)) ]; + #pragma warning restore format byte[] data = [.. _authData.ToByteArray(), .. _clientDataHash]; diff --git a/Test/Fido2Tests.cs b/Test/Fido2Tests.cs index cf685439..afb9163b 100644 --- a/Test/Fido2Tests.cs +++ b/Test/Fido2Tests.cs @@ -62,17 +62,17 @@ static Fido2Tests() _validCOSEParameters = [ - new (COSE.KeyType.EC2, COSE.Algorithm.ES256, COSE.EllipticCurve.P256), - new (COSE.KeyType.EC2, COSE.Algorithm.ES384, COSE.EllipticCurve.P384), - new (COSE.KeyType.EC2, COSE.Algorithm.ES512, COSE.EllipticCurve.P521), - new (COSE.KeyType.RSA, COSE.Algorithm.RS256, noCurve), - new (COSE.KeyType.RSA, COSE.Algorithm.RS384, noCurve), - new (COSE.KeyType.RSA, COSE.Algorithm.RS512, noCurve), - new (COSE.KeyType.RSA, COSE.Algorithm.PS256, noCurve), - new (COSE.KeyType.RSA, COSE.Algorithm.PS384, noCurve), - new (COSE.KeyType.RSA, COSE.Algorithm.PS512, noCurve), - new (COSE.KeyType.OKP, COSE.Algorithm.EdDSA, COSE.EllipticCurve.Ed25519), - new (COSE.KeyType.EC2, COSE.Algorithm.ES256K, COSE.EllipticCurve.P256K) + new(COSE.KeyType.EC2, COSE.Algorithm.ES256, COSE.EllipticCurve.P256), + new(COSE.KeyType.EC2, COSE.Algorithm.ES384, COSE.EllipticCurve.P384), + new(COSE.KeyType.EC2, COSE.Algorithm.ES512, COSE.EllipticCurve.P521), + new(COSE.KeyType.RSA, COSE.Algorithm.RS256, noCurve), + new(COSE.KeyType.RSA, COSE.Algorithm.RS384, noCurve), + new(COSE.KeyType.RSA, COSE.Algorithm.RS512, noCurve), + new(COSE.KeyType.RSA, COSE.Algorithm.PS256, noCurve), + new(COSE.KeyType.RSA, COSE.Algorithm.PS384, noCurve), + new(COSE.KeyType.RSA, COSE.Algorithm.PS512, noCurve), + new(COSE.KeyType.OKP, COSE.Algorithm.EdDSA, COSE.EllipticCurve.Ed25519), + new(COSE.KeyType.EC2, COSE.Algorithm.ES256K, COSE.EllipticCurve.P256K) ]; }