From: Najeeb Ur R. <naj...@nu...> - 2013-02-22 06:39:48
|
Dear All, I am trying to unbind a bound byte stream using jTPMTools (/jTpmTools_0.7/src/iaik/tc/apps/jtt/data/Unbind.java). int i; for (i = 0; i < byteData.length / blockLen; i++) { TcBlobData rawData = TcBlobData.newByteArray(byteData, i * blockLen, blockLen); encData.setAttribData(TcTssConstants.TSS_TSPATTRIB_ENCDATA_BLOB, TcTssConstants.TSS_TSPATTRIB_ENCDATABLOB_BLOB, rawData); TCTest.printByteArray(rawData.asByteArray(), "Raw Data"); if (i == 0) { unboundData = TcBlobData.newBlobData(encData.unbind(key)); } else { unboundData.append(encData.unbind(key)); } TCTest.printByteArray(unboundData.asByteArray(), "Intermediate"); } In above given code, rawData is fine but when I try to get the Final unboundData, it always returns me NULL DATA (a sequence of 0's). Can any one tell me if there is any technical problem for doing this. any other way to do the same task? Thanks in advance. Let me know, if any more clarification. -- Regards Najeeb-Ur Rehman |