Home
last modified time | relevance | path

Searched refs:pub_key_buf (Results 1 – 5 of 5) sorted by relevance

/freebsd/crypto/libecc/src/sig/
H A Dec_key.c140 const u8 *pub_key_buf, u8 pub_key_buf_len, in ec_pub_key_import_from_buf() argument
145 MUST_HAVE(((pub_key != NULL) && (pub_key_buf != NULL) && (params != NULL)), ret, err); in ec_pub_key_import_from_buf()
149 pub_key_buf, pub_key_buf_len, in ec_pub_key_import_from_buf()
182 const u8 *pub_key_buf, u8 pub_key_buf_len, in ec_pub_key_import_from_aff_buf() argument
187 MUST_HAVE(((pub_key != NULL) && (pub_key_buf != NULL) && (params != NULL)), ret, err); in ec_pub_key_import_from_aff_buf()
191 pub_key_buf, pub_key_buf_len, in ec_pub_key_import_from_aff_buf()
220 int ec_pub_key_export_to_buf(const ec_pub_key *pub_key, u8 *pub_key_buf, in ec_pub_key_export_to_buf() argument
226 ret = prj_pt_export_to_buf(&(pub_key->y), pub_key_buf, pub_key_buf_len); in ec_pub_key_export_to_buf()
236 int ec_pub_key_export_to_aff_buf(const ec_pub_key *pub_key, u8 *pub_key_buf, in ec_pub_key_export_to_aff_buf() argument
242 ret = prj_pt_export_to_aff_buf(&(pub_key->y), pub_key_buf, in ec_pub_key_export_to_aff_buf()
[all …]
/freebsd/crypto/libecc/include/libecc/sig/
H A Dec_key.h150 const u8 *pub_key_buf, u8 pub_key_buf_len,
152 ATTRIBUTE_WARN_UNUSED_RET int ec_pub_key_export_to_buf(const ec_pub_key *pub_key, u8 *pub_key_buf,
156 const u8 *pub_key_buf, u8 pub_key_buf_len,
159 …RIBUTE_WARN_UNUSED_RET int ec_pub_key_export_to_aff_buf(const ec_pub_key *pub_key, u8 *pub_key_buf,
164 const u8 *pub_key_buf,
168 u8 *pub_key_buf, u8 pub_key_buf_len);
210 const u8 *pub_key_buf,
/freebsd/crypto/openssl/crypto/ec/
H A Dec_ameth.c478 unsigned char *pub_key_buf = NULL, *gen_buf = NULL; in ec_pkey_export_to() local
520 &pub_key_buf, bnctx)) == 0 in ec_pkey_export_to()
523 pub_key_buf, in ec_pkey_export_to()
602 OPENSSL_free(pub_key_buf); in ec_pkey_export_to()
/freebsd/crypto/libecc/src/tests/
H A Dec_utils.c114 u8 pub_key_buf[EC_STRUCTURED_PUB_KEY_MAX_EXPORT_SIZE]; in export_public_key() local
130 ret = ec_structured_pub_key_export_to_buf(pub_key, pub_key_buf, in export_public_key()
144 fprintf(file, "0x%02x", pub_key_buf[i]); in export_public_key()
153 written = fwrite(pub_key_buf, 1, export_buf_size, file); in export_public_key()
1014 u8 pub_key_buf[EC_STRUCTURED_PUB_KEY_MAX_EXPORT_SIZE]; in verify_bin_file() local
1070 pub_key_buf_len =(u8)fread(pub_key_buf, 1, sizeof(pub_key_buf), in verify_bin_file()
1073 pub_key_buf, in verify_bin_file()
H A Dec_self_tests_core.c59 u8 pub_key_buf[EC_STRUCTURED_PUB_KEY_MAX_EXPORT_SIZE]; in ec_gen_import_export_kp() local
67 ret = local_memset(pub_key_buf, 0, sizeof(pub_key_buf)); EG(ret, err); in ec_gen_import_export_kp()
81 ret = ec_structured_pub_key_export_to_buf(&(kp->pub_key), pub_key_buf, in ec_gen_import_export_kp()
98 pub_key_buf, in ec_gen_import_export_kp()