![]() |
nrfxlib API 3.3.99
|
| psa_status_t cc3xx_asymmetric_decrypt | ( | const psa_key_attributes_t * | attributes, |
| const uint8_t * | key_buffer, | ||
| size_t | key_buffer_size, | ||
| psa_algorithm_t | alg, | ||
| const uint8_t * | input, | ||
| size_t | input_length, | ||
| const uint8_t * | salt, | ||
| size_t | salt_length, | ||
| uint8_t * | output, | ||
| size_t | output_size, | ||
| size_t * | output_length ) |
Asymmetric decryption (RSA PKCS#1 v1.5 or RSA-OAEP)
| [in] | attributes | Attributes of the key to use |
| [in] | key_buffer | Key material buffer |
| [in] | key_buffer_size | Size in bytes of the key |
| [in] | alg | Algorithm to use |
| [in] | input | Data to decrypt buffer |
| [in] | input_length | Size in bytes of the data to decrypt |
| [in] | salt | Additional salt if supported by the algorithm |
| [in] | salt_length | Size in bytes of the salt buffer |
| [out] | output | Buffer to hold the decrypted data |
| [in] | output_size | Size in bytes of the output buffer |
| [out] | output_length | Size in bytes of the decrypted data |
| PSA_SUCCESS | on success. Error code from psa_status_t on failure |