Home
last modified time | relevance | path

Searched refs:bin_k (Results 1 – 2 of 2) sorted by relevance

/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/ecc/
A Decc_import_openssl.c11 unsigned char bin_xy[2*ECC_MAXSIZE+2], bin_k[ECC_MAXSIZE]; in s_ecc_import_private_with_oid() local
23 LTC_SET_ASN1(seq_priv, 1, LTC_ASN1_OCTET_STRING, bin_k, sizeof(bin_k)); in s_ecc_import_private_with_oid()
36 err = ecc_set_key(bin_k, seq_priv[1].size, PK_PRIVATE, key); in s_ecc_import_private_with_oid()
46 unsigned char bin_a[ECC_MAXSIZE], bin_b[ECC_MAXSIZE], bin_k[ECC_MAXSIZE]; in s_ecc_import_private_with_curve() local
62 LTC_SET_ASN1(seq_priv, 1, LTC_ASN1_OCTET_STRING, bin_k, sizeof(bin_k)); in s_ecc_import_private_with_curve()
95 err = ecc_set_key(bin_k, len_k, PK_PRIVATE, key); in s_ecc_import_private_with_curve()
A Decc_export_openssl.c21 unsigned char bin_a[256], bin_b[256], bin_k[256], bin_g[512], bin_xy[512]; in ecc_export_openssl() local
138 …if (len_k > sizeof(bin_k)) { err = CRYPT_BUFFER_OVERFLOW; g… in ecc_export_openssl()
139 if ((err = mp_to_unsigned_bin(key->k, bin_k)) != CRYPT_OK) { goto error; } in ecc_export_openssl()
143 LTC_SET_ASN1(seq_priv, 1, LTC_ASN1_OCTET_STRING, bin_k, len_k); in ecc_export_openssl()

Completed in 3 milliseconds