mbedtls_pk_verify() is only used within mbed TLS Library.
 
Symbols
loading...
Files
loading...
SummarySyntaxArgumentsRelatedReferences

Return value

0 on success (signature is valid), #MBEDTLS_ERR_PK_SIG_LEN_MISMATCH if there is a valid signature in \p sig but its length is less than \p sig_len, or a specific error code.

Notes

For RSA keys, the default padding type is PKCS#1 v1.5. Use \c mbedtls_pk_verify_ext( MBEDTLS_PK_RSASSA_PSS, ... ) to verify RSASSA_PSS signatures. If #MBEDTLS_USE_PSA_CRYPTO is enabled, the PSA crypto subsystem must have been initialized by calling psa_crypto_init() before calling this function, if the key might be an ECC (ECDSA) key. If hash_len is 0, then the length associated with md_alg is used instead, or an error returned if it is invalid. md_alg may be MBEDTLS_MD_NONE, only if hash_len != 0

References

from examples