Skip to content

Commit

Permalink
Try to make dotnet format happy
Browse files Browse the repository at this point in the history
  • Loading branch information
iamcarbon committed Jan 16, 2024
1 parent 68c19fe commit ad8676e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 11 deletions.
3 changes: 3 additions & 0 deletions Test/Attestation/Tpm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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];

Expand Down
22 changes: 11 additions & 11 deletions Test/Fido2Tests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
];
}

Expand Down

0 comments on commit ad8676e

Please sign in to comment.