Lines Matching full:rsa
4 * \brief Internal-only RSA public-key cryptosystem API.
6 * This file declares RSA-related functions that are to be used
17 #include "mbedtls/rsa.h"
21 * \brief Parse a PKCS#1 (ASN.1) encoded private RSA key.
23 * \param rsa The RSA context where parsed data will be stored.
29 * \return MBEDTLS_ERR_RSA_xxx in case of RSA internal failures while
34 int mbedtls_rsa_parse_key(mbedtls_rsa_context *rsa, const unsigned char *key, size_t keylen);
37 * \brief Parse a PKCS#1 (ASN.1) encoded public RSA key.
39 * \param rsa The RSA context where parsed data will be stored.
45 * \return MBEDTLS_ERR_RSA_xxx in case of RSA internal failures while
50 int mbedtls_rsa_parse_pubkey(mbedtls_rsa_context *rsa, const unsigned char *key, size_t keylen);
53 * \brief Write a PKCS#1 (ASN.1) encoded private RSA key.
55 * \param rsa The RSA context which contains the data to be written.
64 * \return MBEDTLS_ERR_RSA_BAD_INPUT_DATA if the RSA context does not
72 int mbedtls_rsa_write_key(const mbedtls_rsa_context *rsa, unsigned char *start,
76 * \brief Parse a PKCS#1 (ASN.1) encoded public RSA key.
78 * \param rsa The RSA context which contains the data to be written.
87 * \return MBEDTLS_ERR_RSA_BAD_INPUT_DATA if the RSA context does not
95 int mbedtls_rsa_write_pubkey(const mbedtls_rsa_context *rsa, unsigned char *start,