810521 wrote:So you didn't resist!
Im going to resist the temptation to answer to the comment about superfluous comments etc, I think that says more about the ego of the respondent.
Example of an erroneous comment -
/** * Get keystore instance */ ks = KeyStore.getInstance(keyStoreType);
/** * Encrypt the data, */ Signature signatureAlgoithm = Signature.getInstance(getAlgorithm()); signatureAlgoithm.initSign(key); signatureAlgoithm.update(data.getBytes()); signature = signatureAlgoithm.sign();
I do however have this problem and I'd be happy to share my code, superfluous comments included.Why would I want to share your code since you say it does not work? I already have code that actually does work.
vaules of the public key associated with the private key, and the public key of the certificate?That's what I asked for.
The cert associated with the private key that was used to sign the data:That's not what I asked for.
The cert used to verify (incorrectlyl) the signature:Nor is that.