Home
last modified time | relevance | path

Searched refs:priv_key_buf_len (Results 1 – 6 of 6) sorted by relevance

/freebsd/crypto/libecc/src/sig/
H A Dec_key.c58 const u8 *priv_key_buf, u8 priv_key_buf_len, in ec_priv_key_import_from_buf() argument
65 ret = nn_init_from_buf(&(priv_key->x), priv_key_buf, priv_key_buf_len); EG(ret, err); in ec_priv_key_import_from_buf()
81 u8 priv_key_buf_len) in ec_priv_key_export_to_buf() argument
93 MUST_HAVE(((8 * (u32)priv_key_buf_len) >= (u32)blen), ret, err); in ec_priv_key_export_to_buf()
96 ret = nn_export_to_buf(priv_key_buf, priv_key_buf_len, &(priv_key->x)); in ec_priv_key_export_to_buf()
315 u8 priv_key_buf_len, in ec_structured_priv_key_import_from_buf() argument
328 …MUST_HAVE((priv_key != NULL) && (priv_key_buf != NULL) && (priv_key_buf_len > metadata_len), ret, … in ec_structured_priv_key_import_from_buf()
347 (u8)(priv_key_buf_len - metadata_len), in ec_structured_priv_key_import_from_buf()
359 u8 *priv_key_buf, u8 priv_key_buf_len) in ec_structured_priv_key_export_to_buf() argument
371 …MUST_HAVE((priv_key_buf != NULL) && (priv_key_buf_len > metadata_len) && (priv_key->params->curve_… in ec_structured_priv_key_export_to_buf()
[all …]
/freebsd/crypto/libecc/include/libecc/sig/
H A Dec_key.h101 const u8 *priv_key_buf, u8 priv_key_buf_len,
104 u8 priv_key_buf_len);
109 u8 priv_key_buf_len,
113 u8 priv_key_buf_len);
194 u8 priv_key_buf_len,
209 u8 priv_key_buf_len,
/freebsd/crypto/libecc/include/libecc/ecdh/
H A Decccdh.h46 …riv_key_buf(ec_key_pair *kp, const ec_params *params, const u8 *priv_key_buf, u8 priv_key_buf_len);
/freebsd/crypto/libecc/src/ecdh/
H A Decccdh.c121 …priv_key_buf(ec_key_pair *kp, const ec_params *params, const u8 *priv_key_buf, u8 priv_key_buf_len) in ecccdh_import_key_pair_from_priv_key_buf() argument
128 …ret = ec_priv_key_import_from_buf(&(kp->priv_key), params, priv_key_buf, priv_key_buf_len, ECCCDH)… in ecccdh_import_key_pair_from_priv_key_buf()
/freebsd/crypto/libecc/src/tests/
H A Dec_utils.c664 u8 priv_key_buf_len; in sign_bin_file() local
702 priv_key_buf_len = (u8)fread(priv_key_buf, 1, sizeof(priv_key_buf), in sign_bin_file()
707 priv_key_buf_len, in sign_bin_file()
H A Dec_self_tests_core.c61 u8 pub_key_buf_len, priv_key_buf_len; in ec_gen_import_export_kp() local
78 priv_key_buf_len = EC_STRUCTURED_PRIV_KEY_EXPORT_SIZE(&(kp->priv_key)); in ec_gen_import_export_kp()
89 priv_key_buf_len); in ec_gen_import_export_kp()
107 priv_key_buf_len, in ec_gen_import_export_kp()