Skip to content

Commit 6abcd37

Browse files
committed
Fixed incorrect buffer length
1 parent fedd201 commit 6abcd37

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

security/tpm/src/SecurityProviderTpmHsm.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ public override void ActivateIdentityKey(byte[] encryptedKey)
102102
encryptedSecret = m.GetArray<byte>(encryptedSecret.Length, "encryptedSecret");
103103
TpmPrivate dupBlob = m.Get<TpmPrivate>();
104104
byte[] encWrapKey = new byte[m.Get<ushort>()];
105-
encWrapKey = m.GetArray<byte>(encryptedSecret.Length, "encWrapKey");
105+
encWrapKey = m.GetArray<byte>(encWrapKey.Length, "encWrapKey");
106106
UInt16 pubSize = m.Get<UInt16>();
107107
_idKeyPub = m.Get<TpmPublic>();
108108
byte[] cipherText = new byte[m.Get<ushort>()];

0 commit comments

Comments
 (0)