Lines Matching refs:priv_key

304 ATTRIBUTE_WARN_UNUSED_RET static int x25519_448_gen_priv_key(u8 *priv_key, u8 len)  in x25519_448_gen_priv_key()  argument
308 MUST_HAVE((priv_key != NULL), ret, err); in x25519_448_gen_priv_key()
312 ret = get_random(priv_key, len); in x25519_448_gen_priv_key()
319 ATTRIBUTE_WARN_UNUSED_RET static int x25519_448_init_pub_key(const u8 *priv_key, u8 *pub_key, u8 le… in x25519_448_init_pub_key() argument
323 MUST_HAVE((priv_key != NULL) && (pub_key != NULL), ret, err); in x25519_448_init_pub_key()
342 ret = x25519_448_core(priv_key, u, pub_key, len); in x25519_448_init_pub_key()
350 ret = x25519_448_core(priv_key, u, pub_key, len); in x25519_448_init_pub_key()
359 ATTRIBUTE_WARN_UNUSED_RET static int x25519_448_derive_secret(const u8 *priv_key, const u8 *peer_pu… in x25519_448_derive_secret() argument
363 MUST_HAVE((priv_key != NULL) && (peer_pub_key != NULL) && (shared_secret != NULL), ret, err); in x25519_448_derive_secret()
367 ret = x25519_448_core(priv_key, peer_pub_key, shared_secret, len); in x25519_448_derive_secret()
385 int x25519_gen_priv_key(u8 priv_key[X25519_SIZE]) in x25519_gen_priv_key()
387 return x25519_448_gen_priv_key(priv_key, X25519_SIZE); in x25519_gen_priv_key()
390 int x25519_init_pub_key(const u8 priv_key[X25519_SIZE], u8 pub_key[X25519_SIZE]) in x25519_init_pub_key()
392 return x25519_448_init_pub_key(priv_key, pub_key, X25519_SIZE); in x25519_init_pub_key()
395 int x25519_derive_secret(const u8 priv_key[X25519_SIZE], const u8 peer_pub_key[X25519_SIZE], u8 sha… in x25519_derive_secret()
397 return x25519_448_derive_secret(priv_key, peer_pub_key, shared_secret, X25519_SIZE); in x25519_derive_secret()
412 int x448_gen_priv_key(u8 priv_key[X448_SIZE]) in x448_gen_priv_key()
414 return x25519_448_gen_priv_key(priv_key, X448_SIZE); in x448_gen_priv_key()
417 int x448_init_pub_key(const u8 priv_key[X448_SIZE], u8 pub_key[X448_SIZE]) in x448_init_pub_key()
419 return x25519_448_init_pub_key(priv_key, pub_key, X448_SIZE); in x448_init_pub_key()
422 int x448_derive_secret(const u8 priv_key[X448_SIZE], const u8 peer_pub_key[X448_SIZE], u8 shared_se… in x448_derive_secret()
424 return x25519_448_derive_secret(priv_key, peer_pub_key, shared_secret, X448_SIZE); in x448_derive_secret()