libcrux_hacl

Function Hacl_RSAPSS_new_rsapss_load_pkey

Source
pub unsafe extern "C" fn Hacl_RSAPSS_new_rsapss_load_pkey(
    modBits: u32,
    eBits: u32,
    nb: *mut u8,
    eb: *mut u8,
) -> *mut u64
Expand description

Load a public key from key parts.

@param modBits Count of bits in modulus (n). @param eBits Count of bits in e value. @param nb Pointer to ceil(modBits / 8) bytes where the modulus (n), in big-endian byte order, is read from. @param eb Pointer to ceil(modBits / 8) bytes where the e value, in big-endian byte order, is read from.

@return Returns an allocated public key upon success, otherwise, NULL if key part arguments are invalid or memory allocation fails. Note: caller must take care to free() the created key.