From: marbouh m. <med...@ya...> - 2006-10-10 12:38:57
|
Hello,=0A=0AThank you Thomas for relpying. I managed to bind large data by = chaining data. But still don't understand why it dosn't work with unbind co= mmand.=0A=0AThis is a what I'm doing for each block:=0A=0Abyte[ ] toUnBind_= =3D new byte[...];=0ATcBlobData decDatablob_ =3D TcTssStructFactory.newBlo= bData().initByteArray(toUnBind_);=0AencData.setAttribData(TcTssDefines.TSS_= TSPATTRIB_ENCDATA_BLOB,TcTssDefines. TSS_TSPATTRIB_ENCDATABLOB_BLOB, decDat= ablob_);=0ATcBlobData bdata =3D decData.unbind(adminkey[1]);=0A=0AThen I go= t the message :=0A=0ATSPI call error:=0A error code: 0x3=0A error mes= sage: TPM layer: Bad Parameter=0A at iaik.tss.impl.jni.TcBaseObject.hand= leRetCode(TcBaseObject.java:98)=0A at iaik.tss.impl.jni.TcEncData.unbind= (TcEncData.java:97)=0A at com.francetelecom.drm.tpm.TPMManager.bindData(= TPMManager.java:550)=0A=0Awhen calling "unbind" method.=0ADo you think I mu= st do something to the blob data decDatablob before giving it to unbind met= hod.=0A=0AThank you in advance.=0A=0AMom=0A=0A=0A----- Message d'origine --= --=0ADe : Thomas Winkler <tho...@ia...>=0A=C0 : marbouh me= d <med...@ya...>=0ACc : tru...@li...= =0AEnvoy=E9 le : Lundi, 9 Octobre 2006, 7h24mn 12s=0AObjet : Re: [Trustedja= va-support] Bind large data=0A=0AHello,=0A=0A > I have a problem when tryin= g to bind data that is larger than my RSA=0A > public key modulus. TSS Spec= precise that I=0A must block then chain the=0A > data. Can you tell me wha= t does this mean and is there any function that=0A > do this.=0A=0AYou are,= more or less, answering your question yourself.=0AUsing the TSS you can no= t bind data larger than the RSA public key (that =0Aactually is not specifi= c to the TSS but is a general property). What you =0A have to do is to spl= it you input data into block equal to the RSA =0Apublic key length. Then en= crypt (bind) these blocks one after the other. =0AOn decryption (unbind) si= mply reverse the process.=0A=0ARegards,=0AThomas Winkler=0A=0A=0A=0A=0A=0A= =0A=0A=0A=09=0A=0A=09=0A=09=09=0A__________________________________________= _________________________________ =0AD=E9couvrez une nouvelle fa=E7on d'obt= enir des r=E9ponses =E0 toutes vos questions ! =0ADemandez =E0 ceux qui sav= ent sur Yahoo! Questions/R=E9ponses=0Ahttp://fr.answers.yahoo.com |