From: Martin P. <Mar...@ia...> - 2007-06-13 08:01:09
|
Saurabh Arora wrote: > how can i convert a 160 bit string nonce to TcBlobData type in > jTSSWrapper library ? > > i hv tried : > initString* functions, and get the "nullpointer exception" error. Looking at the Javadoc: http://trustedjava.sourceforge.net/jtss/javadoc_tsp/iaik/tc/tss/api/structs/common/TcBlobData.html There is only one method starting with "initString*", that is "initStringASCII". As guessable from the name, it expects a String containing only ASCII chars. If you want to pass in a 160bit nonce binary blob the "newByteArray" method may be your choice? HTH -- Martin Pirker IAIK, TU Graz |