mbedtls_pk_encrypt() function
Encrypt message (including padding if relevant).
Arguments
ctx
The PK context to use. It must have been set up.
olen
Encrypted output length
osize
Size of the output buffer
Return value
0 on success, or a specific error code.
Notes
For RSA keys, the default padding type is PKCS#1 v1.5.