[prev in list] [next in list] [prev in thread] [next in thread]
List: trousers-cvs
Subject: [Trousers-cvs] tpm-tools/lib tpm_unseal.c
From: Rajiv Andrade <phreakz () users ! sourceforge ! net>
Date: 2009-07-27 20:21:34
Message-ID: E1MVWhS-0001i0-DV () ddv4jf1 ! ch3 ! sourceforge ! com
[Download RAW message or body]
Update of /cvsroot/trousers/tpm-tools/lib
In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv6555/lib
Modified Files:
tpm_unseal.c
Log Message:
Fixed the way the well known secret was being set to SRK policy.
Signed-off-by: Rajiv Andrade <srajiv@linux.vnet.ibm.com>
Index: tpm_unseal.c
===================================================================
RCS file: /cvsroot/trousers/tpm-tools/lib/tpm_unseal.c,v
retrieving revision 1.21
retrieving revision 1.22
diff -C2 -d -r1.21 -r1.22
*** tpm_unseal.c 31 May 2007 17:18:42 -0000 1.21
--- tpm_unseal.c 27 Jul 2009 20:21:32 -0000 1.22
***************
*** 82,86 ****
UINT32 symKeyLen;
BYTE *symKey;
!
unsigned char* res_data = NULL;
int res_size = 0;
--- 82,86 ----
UINT32 symKeyLen;
BYTE *symKey;
! BYTE wellKnown[TCPA_SHA1_160_HASH_LEN] = TSS_WELL_KNOWN_SECRET;
unsigned char* res_data = NULL;
int res_size = 0;
***************
*** 332,338 ****
goto tss_out;
}
!
! if ((rc=Tspi_Policy_SetSecret(hPolicy, TSS_SECRET_MODE_PLAIN, 0, NULL))
! != TSS_SUCCESS) {
tpm_errno = ETSPIPOLSS;
goto tss_out;
--- 332,339 ----
goto tss_out;
}
!
! if ((rc=Tspi_Policy_SetSecret(hPolicy, TSS_SECRET_MODE_SHA1,
! sizeof(wellKnown),
! (BYTE *) wellKnown)) != TSS_SUCCESS) {
tpm_errno = ETSPIPOLSS;
goto tss_out;
------------------------------------------------------------------------------
_______________________________________________
Trousers-cvs mailing list
Trousers-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/trousers-cvs
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic