Document that the RSA e value is mandatory when importing.
authorslontis <shane.lontis@oracle.com>
Wed, 25 Jan 2023 01:06:34 +0000 (11:06 +1000)
committerTomas Mraz <tomas@openssl.org>
Thu, 26 Jan 2023 10:04:30 +0000 (11:04 +0100)
commit6e3b1c81736b1829584e3f40c2d00040fe1aa881
tree7c72d8256578528b4e6dd9683d88249f8ca5421e
parent01a17b24f6649fc192ba6bb9ea34e28ce9678e6c
Document that the RSA e value is mandatory when importing.

The lab tried doing a RSA decryption primitive using just n (using p, q) and d.

This failed for 2 reasons:
(1) e is required when importing
(2) Internally e is used for blinding.

Note n and e can be calculated using:
n = pq
e = (1/d) mod (p-1)(q-1)

Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/20133)
doc/man7/EVP_PKEY-RSA.pod