Searched refs:seq_priv (Results 1 – 2 of 2) sorted by relevance
/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/ecc/ |
A D | ecc_import_openssl.c | 10 ltc_asn1_list seq_priv[4], custom[2]; in s_ecc_import_private_with_oid() local 22 LTC_SET_ASN1(seq_priv, 0, LTC_ASN1_SHORT_INTEGER, &pkver, 1UL); in s_ecc_import_private_with_oid() 23 LTC_SET_ASN1(seq_priv, 1, LTC_ASN1_OCTET_STRING, bin_k, sizeof(bin_k)); in s_ecc_import_private_with_oid() 24 …LTC_SET_ASN1_CUSTOM_CONSTRUCTED(seq_priv, 2, LTC_ASN1_CL_CONTEXT_SPECIFIC, 0, custom); /* cont… in s_ecc_import_private_with_oid() 28 err = der_decode_sequence(in, inlen, seq_priv, 4); 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() 45 ltc_asn1_list seq_fieldid[2], seq_curve[3], seq_ecparams[6], seq_priv[4], custom[2]; in s_ecc_import_private_with_curve() local 61 LTC_SET_ASN1(seq_priv, 0, LTC_ASN1_SHORT_INTEGER, &pkver, 1UL); in s_ecc_import_private_with_curve() 62 LTC_SET_ASN1(seq_priv, 1, LTC_ASN1_OCTET_STRING, bin_k, sizeof(bin_k)); in s_ecc_import_private_with_curve() 82 err = der_decode_sequence(in, inlen, seq_priv, 4); in s_ecc_import_private_with_curve() [all …]
|
A D | ecc_export_openssl.c | 26 ltc_asn1_list seq_fieldid[2], seq_curve[2], seq_ecparams[6], seq_priv[4], pub_xy, ecparams; in ecc_export_openssl() local 142 LTC_SET_ASN1(seq_priv, 0, LTC_ASN1_SHORT_INTEGER, &one, 1); in ecc_export_openssl() 143 LTC_SET_ASN1(seq_priv, 1, LTC_ASN1_OCTET_STRING, bin_k, len_k); in ecc_export_openssl() 144 …LTC_SET_ASN1_CUSTOM_CONSTRUCTED(seq_priv, 2, LTC_ASN1_CL_CONTEXT_SPECIFIC, 0, &ecparams); /* conte… in ecc_export_openssl() 145 …LTC_SET_ASN1_CUSTOM_CONSTRUCTED(seq_priv, 3, LTC_ASN1_CL_CONTEXT_SPECIFIC, 1, &pub_xy); /* conte… in ecc_export_openssl() 147 err = der_encode_sequence(seq_priv, 4, out, outlen); in ecc_export_openssl()
|
Completed in 3 milliseconds