Home
last modified time | relevance | path

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

/optee_os/core/lib/libtomcrypt/src/pk/ecc/
A Decc_import_openssl.c17 ltc_asn1_list seq_priv[4], custom[2]; in _ecc_import_private_with_oid() local
29 LTC_SET_ASN1(seq_priv, 0, LTC_ASN1_SHORT_INTEGER, &pkver, 1UL); in _ecc_import_private_with_oid()
30 LTC_SET_ASN1(seq_priv, 1, LTC_ASN1_OCTET_STRING, bin_k, sizeof(bin_k)); in _ecc_import_private_with_oid()
31 …LTC_SET_ASN1_CUSTOM_CONSTRUCTED(seq_priv, 2, LTC_ASN1_CL_CONTEXT_SPECIFIC, 0, custom); /* cont… in _ecc_import_private_with_oid()
35 err = der_decode_sequence(in, inlen, seq_priv, 4); 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()
52 ltc_asn1_list seq_fieldid[2], seq_curve[3], seq_ecparams[6], seq_priv[4], custom[2]; in _ecc_import_private_with_curve() local
68 LTC_SET_ASN1(seq_priv, 0, LTC_ASN1_SHORT_INTEGER, &pkver, 1UL); in _ecc_import_private_with_curve()
69 LTC_SET_ASN1(seq_priv, 1, LTC_ASN1_OCTET_STRING, bin_k, sizeof(bin_k)); in _ecc_import_private_with_curve()
89 err = der_decode_sequence(in, inlen, seq_priv, 4); in _ecc_import_private_with_curve()
[all …]
A Decc_export_openssl.c33 ltc_asn1_list seq_fieldid[2], seq_curve[2], seq_ecparams[6], seq_priv[4], pub_xy, ecparams; in ecc_export_openssl() local
148 LTC_SET_ASN1(seq_priv, 0, LTC_ASN1_SHORT_INTEGER, &one, 1); in ecc_export_openssl()
149 LTC_SET_ASN1(seq_priv, 1, LTC_ASN1_OCTET_STRING, bin_k, len_k); in ecc_export_openssl()
150 …LTC_SET_ASN1_CUSTOM_CONSTRUCTED(seq_priv, 2, LTC_ASN1_CL_CONTEXT_SPECIFIC, 0, &ecparams); /* conte… in ecc_export_openssl()
151 …LTC_SET_ASN1_CUSTOM_CONSTRUCTED(seq_priv, 3, LTC_ASN1_CL_CONTEXT_SPECIFIC, 1, &pub_xy); /* conte… in ecc_export_openssl()
153 err = der_encode_sequence(seq_priv, 4, out, outlen); in ecc_export_openssl()

Completed in 3 milliseconds