Files | |
file | psa_crypto_algorithm_dispatch.h |
Function declarations for PSA Crypto algorithm dispatcher. | |
Functions | |
psa_status_t | psa_algorithm_dispatch_hash_setup (psa_hash_operation_t *operation, psa_algorithm_t alg) |
Dispatch a hash setup function to a specific backend. More... | |
psa_status_t | psa_algorithm_dispatch_hash_update (psa_hash_operation_t *operation, const uint8_t *input, size_t input_length) |
Dispatch a hash update function to a specific backend. More... | |
psa_status_t | psa_algorithm_dispatch_hash_finish (psa_hash_operation_t *operation, uint8_t *hash, size_t hash_size, size_t *hash_length) |
Dispatch a hash finish function to a specific backend. More... | |
psa_status_t | psa_algorithm_dispatch_sign_hash (const psa_key_attributes_t *attributes, psa_algorithm_t alg, const psa_key_slot_t *slot, const uint8_t *hash, size_t hash_length, uint8_t *signature, size_t signature_size, size_t *signature_length) |
Dispatch a hash signature function to a specific backend. More... | |
psa_status_t | psa_algorithm_dispatch_sign_message (const psa_key_attributes_t *attributes, psa_algorithm_t alg, const psa_key_slot_t *slot, const uint8_t *input, size_t input_length, uint8_t *signature, size_t signature_size, size_t *signature_length) |
Dispatch a message signature function to a specific backend. More... | |
psa_status_t | psa_algorithm_dispatch_verify_hash (const psa_key_attributes_t *attributes, psa_algorithm_t alg, const psa_key_slot_t *slot, const uint8_t *hash, size_t hash_length, const uint8_t *signature, size_t signature_length) |
Dispatch a hash verification function to a specific backend. More... | |
psa_status_t | psa_algorithm_dispatch_verify_message (const psa_key_attributes_t *attributes, psa_algorithm_t alg, const psa_key_slot_t *slot, const uint8_t *input, size_t input_length, const uint8_t *signature, size_t signature_length) |
Dispatch a message verification function to a specific backend. More... | |
psa_status_t | psa_algorithm_dispatch_generate_key (const psa_key_attributes_t *attributes, psa_key_slot_t *slot) |
Dispatch the key generation function to a specific backend. More... | |
psa_status_t | psa_algorithm_dispatch_cipher_encrypt (const psa_key_attributes_t *attributes, psa_algorithm_t alg, const psa_key_slot_t *slot, const uint8_t *input, size_t input_length, uint8_t *output, size_t output_size, size_t *output_length) |
Dispatch a cipher encrypt function to a specific backend. More... | |
psa_status_t | psa_algorithm_dispatch_cipher_decrypt (const psa_key_attributes_t *attributes, psa_algorithm_t alg, const psa_key_slot_t *slot, const uint8_t *input, size_t input_length, uint8_t *output, size_t output_size, size_t *output_length) |
Dispatch a cipher decrypt function to a specific backend. More... | |
psa_status_t | psa_algorithm_dispatch_mac_compute (const psa_key_attributes_t *attributes, psa_algorithm_t alg, const psa_key_slot_t *slot, const uint8_t *input, size_t input_length, uint8_t *mac, size_t mac_size, size_t *mac_length) |
Dispatch a mac computation function to a specific backend. More... | |
psa_status_t psa_algorithm_dispatch_cipher_decrypt | ( | const psa_key_attributes_t * | attributes, |
psa_algorithm_t | alg, | ||
const psa_key_slot_t * | slot, | ||
const uint8_t * | input, | ||
size_t | input_length, | ||
uint8_t * | output, | ||
size_t | output_size, | ||
size_t * | output_length | ||
) |
Dispatch a cipher decrypt function to a specific backend.
attributes | |
alg | |
slot | |
input | |
input_length | |
output | |
output_size | |
output_length |
psa_status_t psa_algorithm_dispatch_cipher_encrypt | ( | const psa_key_attributes_t * | attributes, |
psa_algorithm_t | alg, | ||
const psa_key_slot_t * | slot, | ||
const uint8_t * | input, | ||
size_t | input_length, | ||
uint8_t * | output, | ||
size_t | output_size, | ||
size_t * | output_length | ||
) |
Dispatch a cipher encrypt function to a specific backend.
attributes | |
alg | |
slot | |
input | |
input_length | |
output | |
output_size | |
output_length |
psa_status_t psa_algorithm_dispatch_generate_key | ( | const psa_key_attributes_t * | attributes, |
psa_key_slot_t * | slot | ||
) |
Dispatch the key generation function to a specific backend.
attributes | |
slot |
psa_status_t psa_algorithm_dispatch_hash_finish | ( | psa_hash_operation_t * | operation, |
uint8_t * | hash, | ||
size_t | hash_size, | ||
size_t * | hash_length | ||
) |
Dispatch a hash finish function to a specific backend.
operation | |
hash | |
hash_size | |
hash_length |
psa_status_t psa_algorithm_dispatch_hash_setup | ( | psa_hash_operation_t * | operation, |
psa_algorithm_t | alg | ||
) |
Dispatch a hash setup function to a specific backend.
See psa_hash_setup()
operation | |
alg |
psa_status_t psa_algorithm_dispatch_hash_update | ( | psa_hash_operation_t * | operation, |
const uint8_t * | input, | ||
size_t | input_length | ||
) |
Dispatch a hash update function to a specific backend.
operation | |
input | |
input_length |
psa_status_t psa_algorithm_dispatch_mac_compute | ( | const psa_key_attributes_t * | attributes, |
psa_algorithm_t | alg, | ||
const psa_key_slot_t * | slot, | ||
const uint8_t * | input, | ||
size_t | input_length, | ||
uint8_t * | mac, | ||
size_t | mac_size, | ||
size_t * | mac_length | ||
) |
Dispatch a mac computation function to a specific backend.
attributes | |
alg | |
slot | |
input | |
input_length | |
mac | |
mac_size | |
mac_length |
psa_status_t psa_algorithm_dispatch_sign_hash | ( | const psa_key_attributes_t * | attributes, |
psa_algorithm_t | alg, | ||
const psa_key_slot_t * | slot, | ||
const uint8_t * | hash, | ||
size_t | hash_length, | ||
uint8_t * | signature, | ||
size_t | signature_size, | ||
size_t * | signature_length | ||
) |
Dispatch a hash signature function to a specific backend.
See psa_sign_hash()
attributes | |
alg | |
slot | |
hash | |
hash_length | |
signature | |
signature_size | |
signature_length |
psa_status_t psa_algorithm_dispatch_sign_message | ( | const psa_key_attributes_t * | attributes, |
psa_algorithm_t | alg, | ||
const psa_key_slot_t * | slot, | ||
const uint8_t * | input, | ||
size_t | input_length, | ||
uint8_t * | signature, | ||
size_t | signature_size, | ||
size_t * | signature_length | ||
) |
Dispatch a message signature function to a specific backend.
attributes | |
alg | |
slot | |
input | |
input_length | |
signature | |
signature_size | |
signature_length |
psa_status_t psa_algorithm_dispatch_verify_hash | ( | const psa_key_attributes_t * | attributes, |
psa_algorithm_t | alg, | ||
const psa_key_slot_t * | slot, | ||
const uint8_t * | hash, | ||
size_t | hash_length, | ||
const uint8_t * | signature, | ||
size_t | signature_length | ||
) |
Dispatch a hash verification function to a specific backend.
attributes | |
alg | |
slot | |
hash | |
hash_length | |
signature | |
signature_length |
psa_status_t psa_algorithm_dispatch_verify_message | ( | const psa_key_attributes_t * | attributes, |
psa_algorithm_t | alg, | ||
const psa_key_slot_t * | slot, | ||
const uint8_t * | input, | ||
size_t | input_length, | ||
const uint8_t * | signature, | ||
size_t | signature_length | ||
) |
Dispatch a message verification function to a specific backend.
attributes | |
alg | |
slot | |
input | |
input_length | |
signature | |
signature_length |