Home
last modified time | relevance | path

Searched refs:X25519_SIZE (Results 1 – 4 of 4) sorted by relevance

/freebsd/crypto/libecc/include/libecc/ecdh/
H A Dx25519_448.h22 #define X25519_SIZE 32 macro
34 ATTRIBUTE_WARN_UNUSED_RET int x25519(const u8 k[X25519_SIZE], const u8 u[X25519_SIZE], u8 res[X2551…
36 ATTRIBUTE_WARN_UNUSED_RET int x25519_gen_priv_key(u8 priv_key[X25519_SIZE]);
38 …E_WARN_UNUSED_RET int x25519_init_pub_key(const u8 priv_key[X25519_SIZE], u8 pub_key[X25519_SIZE]);
40 …5519_derive_secret(const u8 priv_key[X25519_SIZE], const u8 peer_pub_key[X25519_SIZE], u8 shared_s…
/freebsd/crypto/libecc/src/ecdh/
H A Dx25519_448.c67 if(len == X25519_SIZE){ in decode_scalar()
155 u8 k_[X25519_SIZE], u_[X25519_SIZE]; in x25519_448_core()
174 MUST_HAVE(((len == X25519_SIZE) || (len == X448_SIZE)), ret, err); in x25519_448_core()
184 if(len == X25519_SIZE){ in x25519_448_core()
309 MUST_HAVE(((len == X25519_SIZE) || (len == X448_SIZE)), ret, err); in x25519_448_gen_priv_key()
324 MUST_HAVE(((len == X25519_SIZE) || (len == X448_SIZE)), ret, err); in x25519_448_init_pub_key()
336 if(len == X25519_SIZE){ in x25519_448_init_pub_key()
337 u8 u[X25519_SIZE]; in x25519_448_init_pub_key()
364 MUST_HAVE(((len == X25519_SIZE) || (len == X448_SIZE)), ret, err); in x25519_448_derive_secret()
380 int x25519(const u8 k[X25519_SIZE], const u8 u[X25519_SIZE], u8 res[X25519_SIZE]) in x25519() argument
[all …]
/freebsd/crypto/libecc/src/tests/
H A Dec_self_tests_core.c1102 u8 pub_key[X25519_SIZE];
1103 u8 shared_secret[X25519_SIZE];
1109 MUST_HAVE((c->our_priv_key_len == X25519_SIZE), ret, err);
1117 MUST_HAVE((c->exp_our_pub_key_len == X25519_SIZE), ret, err);
1118 ret = are_equal(pub_key, c->exp_our_pub_key, X25519_SIZE, &check); EG(ret, err);
1125 MUST_HAVE((c->peer_pub_key_len == X25519_SIZE), ret, err);
1133 MUST_HAVE((c->exp_shared_secret_len == X25519_SIZE), ret, err);
1134 ret = are_equal(shared_secret, c->exp_shared_secret, X25519_SIZE, &check); EG(ret, err);
/freebsd/crypto/libecc/src/wycheproof_tests/
H A Dlibecc_wycheproof.c307 alglen = X25519_SIZE; in check_wycheproof_xdh()