NZzi wrote:
Yeah, it's an unfortunate name. The Pub in PubWrapSymKey means 'Public Key Cryptography" not PublicKey. It's really the private key. It was written before we started standardizing on separating Public and Private in the function name.Robert Relyea wrote:NZzi wrote:hi all: I want to use private key to encrypt a message, and decrypt with public key.Are you encrypting data or a symmetric Key?Most of the nss code that does these operations does so on actual symetric keys (which are then used to do additional encryption/decryption/macing). In that case they are using the PK11_PubWrapSymKey() and PK11_PubUnwrapSymKey().If i use symmetric key to encrypt a license and use private key to encrypt the symmetric key, other people can have my public key.
bob
I think he can hack my program to get the symmetric key, when my program recover the license using the symmetric key decrypted by public key. He can write a new license and re-generate the license to let the software use forever, how can I forbid this?bob[snip...] _______________________________________________ dev-tech-crypto mailing list dev-tech-crypto@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-tech-crypto
smime.p7s
Description: S/MIME Cryptographic Signature
_______________________________________________ dev-tech-crypto mailing list dev-tech-crypto@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-tech-crypto