Im trying to implement RSA based on custom padding value.
cipher.init(ENCRYPT_MODE, publicKey,oaepParameter, secureRandom); I would like to change the secureRandom function to somthing else. Basically like to feed custom defined byte[] (could be random/ based on specific logic) to the Cipher init method. Is there any way i can acheive this
PKCS1_OAEP.new( self.pubkey,hashAlgo=,mgfunc=,randfunc=)do we have somthing like this in javaSecureRandomimplementation, but it's a little tricky. There should be examples of that here on Stack Overflow, I think I might even have an answer on that. See my answer to a different question for how to choose the hash function and MGF hash function in OAEP padding.