psa_validate_unstructured_key_bit_size() function
Validate the key bit size for unstructured keys.
Arguments
bits
The number of bits of the key
Return value
#PSA_SUCCESS The key type and size are valid. #PSA_ERROR_INVALID_ARGUMENT The size in bits of the key is not valid. #PSA_ERROR_NOT_SUPPORTED The type and/or the size in bits of the key or the combination of the two is not supported.
Notes
Check that the bit size is acceptable for a given key type for unstructured keys.
![]()
status = psa_validate_unstructured_key_bit_size(type, bits);
psa_validate_unstructured_key_bit_size() is called by 2 functions:
![]()
psa_validate_unstructured_key_bit_size()
psa_validate_unstructured_key_bit_size():
![]()
psa_validate_unstructured_key_bit_size()