Home
last modified time | relevance | path

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

/freebsd/crypto/libecc/include/libecc/ecdh/
H A Dx25519_448.h24 #define X448_SIZE 56 macro
51 ATTRIBUTE_WARN_UNUSED_RET int x448(const u8 k[X448_SIZE], const u8 u[X448_SIZE], u8 res[X448_SIZE]);
53 ATTRIBUTE_WARN_UNUSED_RET int x448_gen_priv_key(u8 priv_key[X448_SIZE]);
55 ATTRIBUTE_WARN_UNUSED_RET int x448_init_pub_key(const u8 priv_key[X448_SIZE], u8 pub_key[X448_SIZE]…
57 …nt x448_derive_secret(const u8 priv_key[X448_SIZE], const u8 peer_pub_key[X448_SIZE], u8 shared_se…
/freebsd/crypto/libecc/src/ecdh/
H A Dx25519_448.c73 else if(len == X448_SIZE){ in decode_scalar()
153 u8 k_[X448_SIZE], u_[X448_SIZE]; in x25519_448_core()
174 MUST_HAVE(((len == X25519_SIZE) || (len == X448_SIZE)), ret, err); in x25519_448_core()
190 if(len == X448_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()
344 else if(len == X448_SIZE){ in x25519_448_init_pub_key()
345 u8 u[X448_SIZE]; in x25519_448_init_pub_key()
364 MUST_HAVE(((len == X25519_SIZE) || (len == X448_SIZE)), ret, err); in x25519_448_derive_secret()
407 int x448(const u8 k[X448_SIZE], const u8 u[X448_SIZE], u8 res[X448_SIZE]) in x448() argument
[all …]
/freebsd/crypto/libecc/src/tests/
H A Dec_self_tests_core.c1146 u8 pub_key[X448_SIZE];
1147 u8 shared_secret[X448_SIZE];
1153 MUST_HAVE((c->our_priv_key_len == X448_SIZE), ret, err);
1161 MUST_HAVE((c->exp_our_pub_key_len == X448_SIZE), ret, err);
1162 ret = are_equal(pub_key, c->exp_our_pub_key, X448_SIZE, &check); EG(ret, err);
1169 MUST_HAVE((c->peer_pub_key_len == X448_SIZE), ret, err);
1177 MUST_HAVE((c->exp_shared_secret_len == X448_SIZE), ret, err);
1178 ret = are_equal(shared_secret, c->exp_shared_secret, X448_SIZE, &check); EG(ret, err);
/freebsd/crypto/libecc/src/wycheproof_tests/
H A Dlibecc_wycheproof.c293 u8 pubkey_check[X448_SIZE]; in check_wycheproof_xdh()
294 u8 sharedsecret_check[X448_SIZE]; in check_wycheproof_xdh()
313 alglen = X448_SIZE; in check_wycheproof_xdh()