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.