#[unsafe(no_mangle)]pub unsafe extern "C" fn pamoja_agreement_key_from_seed(
seed: *const u8,
seed_len: usize,
) -> *mut PamojaAgreementKeyExpand description
Creates a key-agreement secret from a provisioned 32-byte seed.
§Arguments
seed- thePAMOJA_SESSION_KEY_LENsecret bytes.seed_len- the length ofseed, which must bePAMOJA_SESSION_KEY_LEN.
§Returns
A handle the caller must release with pamoja_agreement_key_free, or null
on failure with the reason available from
pamoja_last_error_message.
§Safety
seed must point to at least seed_len readable bytes.