pub unsafe extern "C" fn Hacl_RSAPSS_new_rsapss_load_skey(
modBits: u32,
eBits: u32,
dBits: u32,
nb: *mut u8,
eb: *mut u8,
db: *mut u8,
) -> *mut u64
Expand description
Load a secret key from key parts.
@param modBits Count of bits in modulus (n
).
@param eBits Count of bits in e
value.
@param dBits Count of bits in d
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.
@param db Pointer to ceil(modBits / 8)
bytes where the d
value, in big-endian byte order, is read from.
@return Returns an allocated secret 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.