Changeset 15
- Timestamp:
- 08/17/07 23:40:42 (3 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
tpm4java/trunk/src/de/datenzone/tpm4java/TSSCoreService.java
r11 r15 1896 1896 ByteBuffer reply = SendCommand(cmd); 1897 1897 1898 byte[] currentTicks = new byte[3 6];1898 byte[] currentTicks = new byte[32]; 1899 1899 reply.get(currentTicks); 1900 1900 int signature_size = reply.getInt(); … … 1902 1902 reply.get(signature); 1903 1903 1904 ByteBuffer authdataReply = ByteBuffer.allocate(4 + 4 + 3 6+ 41904 ByteBuffer authdataReply = ByteBuffer.allocate(4 + 4 + 32 + 4 1905 1905 + signature.length); 1906 1906 authdataReply.order(TPM_BYTE_ORDER); … … 1912 1912 authGetAndVerify(reply, authdataReply.array(), session); 1913 1913 1914 byte[] signed = new byte[20 + 3 6];1914 byte[] signed = new byte[20 + 32]; 1915 1915 System.arraycopy(digest, 0, signed, 0, 20); 1916 System.arraycopy(currentTicks, 0, signed, 20, 3 6);1916 System.arraycopy(currentTicks, 0, signed, 20, 32); 1917 1917 TPMSignedData ret = new TPMSignedData(new TPMSignInfo( 1918 1918 "TSTP".getBytes(), antiReplay, signed), signature);
