pub unsafe extern "C" fn Hacl_RSAPSS_rsapss_verify(
a: Spec_Hash_Definitions_hash_alg,
modBits: u32,
eBits: u32,
pkey: *mut u64,
saltLen: u32,
sgntLen: u32,
sgnt: *mut u8,
msgLen: u32,
msg: *mut u8,
) -> bool
Expand description
Verify the signature sgnt
of a message msg
.
@param a Hash algorithm to use. Allowed values for a
are …
- Spec_Hash_Definitions_SHA2_256,
- Spec_Hash_Definitions_SHA2_384, and
- Spec_Hash_Definitions_SHA2_512.
@param modBits Count of bits in the modulus (
n
). @param eBits Count of bits ine
value. @param pkey Pointer to public key created byHacl_RSAPSS_new_rsapss_load_pkey
. @param saltLen Length of salt. @param sgntLen Length of signature. @param sgnt Pointer tosgntLen
bytes where the signature is read from. @param msgLen Length of message. @param msg Pointer tomsgLen
bytes where the message is read from.
@return Returns true if and only if the signature is valid.