Scholaris
unread,Aug 27, 2014, 11:41:29 AM8/27/14Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Sign in to report message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to jpos-...@googlegroups.com
Chhil thanks for the response.
I have the same content as the link you provided, and you highlighted the private SecureDESKey encryptToLMK method. Not quit sure why as I had a problem with the private Key decryptFromLMK method, probably you would clarify.
Also I tried to pass the scheme as you have suggested but I keep getting errors like these
error: ')' expected
SecureDESKey zpkUnderLMK = jsm.importKeyImpl(jsm.LENGTH_DES3_2KEY, jsm.TYPE_ZPK:1U, bZpkFromDB, zmkUnderLMK, false);
^
error: not a statement
SecureDESKey zpkUnderLMK = jsm.importKeyImpl(jsm.LENGTH_DES3_2KEY, jsm.TYPE_ZPK:1U, bZpkFromDB, zmkUnderLMK, false);
^
error: ';' expected
SecureDESKey zpkUnderLMK = jsm.importKeyImpl(jsm.LENGTH_DES3_2KEY, jsm.TYPE_ZPK:1U, bZpkFromDB, zmkUnderLMK, false);
^
error: ';' expected
SecureDESKey zpkUnderLMK = jsm.importKeyImpl(jsm.LENGTH_DES3_2KEY, jsm.TYPE_ZPK:1U, bZpkFromDB, zmkUnderLMK, false);
^
error: not a statement
SecureDESKey zpkUnderLMK = jsm.importKeyImpl(jsm.LENGTH_DES3_2KEY, jsm.TYPE_ZPK:1U, bZpkFromDB, zmkUnderLMK, false);
^
error: ';' expected
SecureDESKey zpkUnderLMK = jsm.importKeyImpl(jsm.LENGTH_DES3_2KEY, jsm.TYPE_ZPK:1U, bZpkFromDB, zmkUnderLMK, false);
^
error: not a statement
SecureDESKey zpkUnderLMK = jsm.importKeyImpl(jsm.LENGTH_DES3_2KEY, jsm.TYPE_ZPK:1U, bZpkFromDB, zmkUnderLMK, false);
^
error: ';' expected
SecureDESKey zpkUnderLMK = jsm.importKeyImpl(jsm.LENGTH_DES3_2KEY, jsm.TYPE_ZPK:1U, bZpkFromDB, zmkUnderLMK, false);
basicaly saying my adding of :1U to jsm.TYPE_ZPK (jsm.TYPE_ZPK:1U) is illegal
Nice thinking though Chhil, any more ideas?