Skip to content

Commit 27e4e1f

Browse files
abergsmackie1001aseigler
authored
Release 2.0.0 (2021) (#207)
* Version 2.0.0 * Fixed SANFromAttnCertExts to correctly extract the TPM properties from the Subject Alternative Name certificate extension (#187) * Fixed SANFromAttnCertExts to correctly extract the TPM properties from the Subject Alternative Name certificate extension * Variable name typo * Add check and fix for non-conformant SAN attribute in AIK cert, write test for same. Co-authored-by: Alex Seigler <alexseigler@hotmail.com> * Update Tpm.cs * Update Tpm.cs * Update Tpm.cs Co-authored-by: Paul McNamara <paul.mcnamara@theaccessgroup.com> Co-authored-by: Alex Seigler <alexseigler@hotmail.com>
1 parent f894070 commit 27e4e1f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Test/Attestation/Tpm.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
using Fido2NetLib.Objects;
99
using PeterO.Cbor;
1010
using Xunit;
11-
using Fido2NetLib.AttestationFormat;
1211
using Asn1;
1312
using System.Runtime.InteropServices;
1413

@@ -521,14 +520,15 @@ public void TestTPMAikCertSANTCGConformant()
521520
hashedData = hasher.ComputeHash(data);
522521
hashedPubArea = hasher.ComputeHash(pubArea);
523522
}
524-
523+
525524
IEnumerable<byte> extraData = BitConverter
526525
.GetBytes((UInt16)hashedData.Length)
527526
.Reverse()
528527
.ToArray()
529528
.Concat(hashedData);
530529

531530
var tpmAlgToDigestSizeMap = new Dictionary<TpmAlg, ushort>
531+
532532
{
533533
{TpmAlg.TPM_ALG_SHA1, (160/8) },
534534
{TpmAlg.TPM_ALG_SHA256, (256/8) },

0 commit comments

Comments
 (0)