![]() ![]() the library will handle private keys operations differently from public key operations.First of all, OAEP padding mechanism is not compatible with the one for signing.įurthermore, there may be differences in handling the keys Unfortunately both concepts are not compatible.From the code however it seems you want to sign a message, but you are using an algorithm (RSA OAEP) that has been designed explicitly for encryption.Signature generation (providing authenticity & integrity) If you know the private key then a public key with a small public exponent can be easily guessed by an attacker.RSA does not have any security if you do it the other way around.Encryption is always performed by the public key, decryption by the private key.If you want to encrypt/decrypt in the same application, then you simple should swap the public key and the private key.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |