diff --git a/RSA.pm b/RSA.pm index 42a296e..420e36a 100644 --- a/RSA.pm +++ b/RSA.pm @@ -114,9 +114,8 @@ C<-----BEGIN...-----> and C<-----END...-----> lines. The padding is set to PKCS1_OAEP, but can be changed with the C methods. -Note, PKCS1_OAEP can only be used for encryption. You must specifically -call use_pkcs1_pss_padding (or use_pkcs1_pss_padding) prior to signing -operations. +Note, PKCS1_OAEP can only be used for encryption. You must call +C prior to signing operations. =item new_private_key @@ -252,7 +251,7 @@ While B can be used for encryption or signature operations B is used for signature operations and B is used for encryption operations. -Version 0.38 sets the appropriate padding for each operation unless +On OpenSSL 3.x, the appropriate padding is set for each operation unless B is called before either operation. B while C is the effective replacement for your @@ -374,7 +373,7 @@ C module must be installed for this to work. =item is_private -Return true if this is a private key, and false if it is private only. +Return true if this is a private key, and false if it is public only. =back diff --git a/RSA.xs b/RSA.xs index 6ff3a0d..31e499d 100644 --- a/RSA.xs +++ b/RSA.xs @@ -528,7 +528,6 @@ generate_key(proto, bitsSV, exponent = 65537) CHECK_OPEN_SSL(EVP_PKEY_generate(ctx, &rsa) == 1); CHECK_OPEN_SSL(rsa != NULL); - e = NULL; BN_free(e); EVP_PKEY_CTX_free(ctx); #endif