Home
last modified time | relevance | path

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

/optee_os/core/lib/libtomcrypt/src/pk/ecc/
A Decc_import_openssl.c18 unsigned char bin_xy[2*ECC_MAXSIZE+2], bin_k[ECC_MAXSIZE]; in _ecc_import_private_with_oid() local
30 LTC_SET_ASN1(seq_priv, 1, LTC_ASN1_OCTET_STRING, bin_k, sizeof(bin_k)); in _ecc_import_private_with_oid()
43 err = ecc_set_key(bin_k, seq_priv[1].size, PK_PRIVATE, key); in _ecc_import_private_with_oid()
53 unsigned char bin_a[ECC_MAXSIZE], bin_b[ECC_MAXSIZE], bin_k[ECC_MAXSIZE]; in _ecc_import_private_with_curve() local
69 LTC_SET_ASN1(seq_priv, 1, LTC_ASN1_OCTET_STRING, bin_k, sizeof(bin_k)); in _ecc_import_private_with_curve()
102 err = ecc_set_key(bin_k, len_k, PK_PRIVATE, key); in _ecc_import_private_with_curve()
A Decc_export_openssl.c28 unsigned char bin_a[256], bin_b[256], bin_k[256], bin_g[512], bin_xy[512]; in ecc_export_openssl() local
144 …if (len_k > sizeof(bin_k)) { err = CRYPT_BUFFER_OVERFLOW; g… in ecc_export_openssl()
145 if ((err = mp_to_unsigned_bin(key->k, bin_k)) != CRYPT_OK) { goto error; } in ecc_export_openssl()
149 LTC_SET_ASN1(seq_priv, 1, LTC_ASN1_OCTET_STRING, bin_k, len_k); in ecc_export_openssl()

Completed in 2 milliseconds