i need to "translate" these lines writed in java. I dont' know what functions or assembly to use :
KeyStore keystore; // key repository for keys containing signature certificate String alias; // alias for the certificate in the key repository String password; // password for the certificate's private key String plaintext; // text being signedIf someone can help me. I discover certificates and cryto. it is so new for me.
Signature signature = Signature.getInstance("SHA256withRSA"); signature.initSign((PrivateKey) keystore.getKey(alias, password.toCharArray())); signature.update(plaintext.getBytes("UTF-8")); byte rsa_text= signature.sign();
Thanks for your help.
Here's an example:
If you need the RSA signature as bytes, the example creates the signature in a CkByteData object. Do the following to get the bytes:
byte rsa_text = binarySignature.getData();