nrfxlib API 2.7.99
Loading...
Searching...
No Matches

◆ cc3xx_asymmetric_encrypt()

psa_status_t cc3xx_asymmetric_encrypt ( 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 encryption (RSA PKCS#1 v1.5 or RSA-OAEP)

Parameters
[in]attributesAttributes of the key to use
[in]key_bufferKey material buffer
[in]key_buffer_sizeSize in bytes of the key
[in]algAlgorithm to use
[in]inputData to encrypt buffer
[in]input_lengthSize in bytes of the data to encrypt
[in]saltAdditional salt if supported by the algorithm
[in]salt_lengthSize in bytes of the salt buffer
[out]outputBuffer to hold the encrypted data
[in]output_sizeSize in bytes of the output buffer
[out]output_lengthSize in bytes of the encrypted data
Return values
PSA_SUCCESSon success. Error code from psa_status_t on failure