From: Saurabh A. <tan...@gm...> - 2007-06-13 08:23:31
|
hi martin On 6/13/07, Martin Pirker <Mar...@ia...> wrote: > 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? > > i shud have mentioned.. i am using jTSSWrapper 0.2.5 and in this version there are many initString* functions. for few reasons i cannot port to 0.3 anytime soon. and hence my problem remains same. ne solution ? regards Saurabh |