initialize the key
Posted: Wed Oct 12, 2016 5:12 am
I created a RSAPrivateCrtKey in order to get the p prime via the getP() method.
My code:
But how to initialize the key? I don't know how to write this part of code.
My code:
Code: Select all
static RSAPrivateCrtKey prime = = (RSAPrivateCrtKey) KeyBuilder.buildKey(KeyBuilder.TYPE_RSA_CRT_PRIVATE, KeyBuilder.LENGTH_RSA_512, false);
...
// initialize the RSAPrivateCrtKey
...
prime.getP(tab, (short)0);
But how to initialize the key? I don't know how to write this part of code.