|
XenevaOS
|
Internal-only RSA public-key cryptosystem API. More...

Go to the source code of this file.
Functions | |
| int | mbedtls_rsa_parse_key (mbedtls_rsa_context *rsa, const unsigned char *key, size_t keylen) |
| Parse a PKCS#1 (ASN.1) encoded private RSA key. | |
| int | mbedtls_rsa_parse_pubkey (mbedtls_rsa_context *rsa, const unsigned char *key, size_t keylen) |
| Parse a PKCS#1 (ASN.1) encoded public RSA key. | |
| int | mbedtls_rsa_write_key (const mbedtls_rsa_context *rsa, unsigned char *start, unsigned char **p) |
| Write a PKCS#1 (ASN.1) encoded private RSA key. | |
| int | mbedtls_rsa_write_pubkey (const mbedtls_rsa_context *rsa, unsigned char *start, unsigned char **p) |
| Parse a PKCS#1 (ASN.1) encoded public RSA key. | |
Internal-only RSA public-key cryptosystem API.
This file declares RSA-related functions that are to be used only from within the Mbed TLS library itself.
| int mbedtls_rsa_parse_key | ( | mbedtls_rsa_context * | rsa, |
| const unsigned char * | key, | ||
| size_t | keylen | ||
| ) |
Parse a PKCS#1 (ASN.1) encoded private RSA key.
| rsa | The RSA context where parsed data will be stored. |
| key | The buffer that contains the key. |
| keylen | The length of the key buffer in bytes. |
| int mbedtls_rsa_parse_pubkey | ( | mbedtls_rsa_context * | rsa, |
| const unsigned char * | key, | ||
| size_t | keylen | ||
| ) |
Parse a PKCS#1 (ASN.1) encoded public RSA key.
| rsa | The RSA context where parsed data will be stored. |
| key | The buffer that contains the key. |
| keylen | The length of the key buffer in bytes. |
| int mbedtls_rsa_write_key | ( | const mbedtls_rsa_context * | rsa, |
| unsigned char * | start, | ||
| unsigned char ** | p | ||
| ) |
Write a PKCS#1 (ASN.1) encoded private RSA key.
| rsa | The RSA context which contains the data to be written. |
| start | Beginning of the buffer that will be filled with the private key. |
| p | End of the buffer that will be filled with the private key. On successful return, the referenced pointer will be updated in order to point to the beginning of written data. |
| int mbedtls_rsa_write_pubkey | ( | const mbedtls_rsa_context * | rsa, |
| unsigned char * | start, | ||
| unsigned char ** | p | ||
| ) |
Parse a PKCS#1 (ASN.1) encoded public RSA key.
| rsa | The RSA context which contains the data to be written. |
| start | Beginning of the buffer that will be filled with the private key. |
| p | End of the buffer that will be filled with the private key. On successful return, the referenced pointer will be updated in order to point to the beginning of written data. |