mbedtls_rsa_set_padding() is only used within mbedTLS.
 
Symbols
loading...
Files
loading...
SummarySyntaxArgumentsRelatedReferencesCall TreeData Use

Return value

\c 0 on success. #MBEDTLS_ERR_RSA_INVALID_PADDING failure: \p padding or \p hash_id is invalid.

Notes

Set padding to #MBEDTLS_RSA_PKCS_V21 for the RSAES-OAEP encryption scheme and the RSASSA-PSS signature scheme. The \p hash_id parameter is ignored when using #MBEDTLS_RSA_PKCS_V15 padding. The choice of padding mode is strictly enforced for private key operations, since there might be security concerns in mixing padding modes. For public key operations it is a default value, which can be overridden by calling specific \c mbedtls_rsa_rsaes_xxx or \c mbedtls_rsa_rsassa_xxx functions. The hash selected in \p hash_id is always used for OEAP encryption. For PSS signatures, it is always used for making signatures, but can be overridden for verifying them. If set to #MBEDTLS_MD_NONE, it is always overridden.

References