mbedtls_rsa_pkcs1_sign() is only used within mbedTLS.
 
Symbols
loading...
Files
loading...
SummarySyntaxArgumentsRelatedReferences

Return value

\c 0 if the signing operation was successful. An \c MBEDTLS_ERR_RSA_XXX error code on failure.

Notes

The \p sig buffer must be as large as the size of \p ctx->N. For example, 128 Bytes if RSA-1024 is used. For PKCS#1 v2.1 encoding, see comments on mbedtls_rsa_rsassa_pss_sign() for details on \p md_alg and \p hash_id. Alternative implementations of RSA need not support mode being set to #MBEDTLS_RSA_PUBLIC and might instead return #MBEDTLS_ERR_PLATFORM_FEATURE_UNSUPPORTED.

References

from examples