Searched refs:sharedsecret_check (Results 1 – 1 of 1) sorted by relevance
/freebsd/crypto/libecc/src/wycheproof_tests/ |
H A D | libecc_wycheproof.c | 294 u8 sharedsecret_check[X448_SIZE]; in check_wycheproof_xdh() local 387 ret = x25519_derive_secret(t->privkey, t->peerpubkey, sharedsecret_check); in check_wycheproof_xdh() 412 ret = are_equal(t->sharedsecret, sharedsecret_check, alglen, &check); OPENMP_EG(ret, err); in check_wycheproof_xdh() 442 ret = x448_derive_secret(t->privkey, t->peerpubkey, sharedsecret_check); in check_wycheproof_xdh() 466 ret = are_equal(t->sharedsecret, sharedsecret_check, alglen, &check); OPENMP_EG(ret, err); in check_wycheproof_xdh() 560 u8 sharedsecret_check[EC_PRIV_KEY_MAX_SIZE]; in check_wycheproof_ecdh() local 579 ret = local_memset(sharedsecret_check, 0, sizeof(sharedsecret_check)); OPENMP_EG(ret, err); in check_wycheproof_ecdh() 597 OPENMP_MUST_HAVE((sharedsecretsize <= sizeof(sharedsecret_check)), ret, err); in check_wycheproof_ecdh() 675 …ive_secret(&priv_key, serialized_pub_key, serialized_pub_key_size, sharedsecret_check, sharedsecre… in check_wycheproof_ecdh() 698 …ret = are_equal(sharedsecret_check, t->sharedsecret, sharedsecretsize, &check); OPENMP_EG(ret, err… in check_wycheproof_ecdh()
|