Searched refs:pub_expt (Results 1 – 2 of 2) sorted by relevance
/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/ecc/ |
A D | ecc_encrypt_key.c | 30 unsigned char *pub_expt, *ecc_shared, *skey; in ecc_encrypt_key() local 52 pub_expt = XMALLOC(ECC_BUF_SIZE); in ecc_encrypt_key() 55 if (pub_expt == NULL || ecc_shared == NULL || skey == NULL) { in ecc_encrypt_key() 56 if (pub_expt != NULL) { in ecc_encrypt_key() 57 XFREE(pub_expt); in ecc_encrypt_key() 72 err = ecc_get_key(pub_expt, &pubkeysize, PK_PUBLIC|PK_COMPRESSED, &pubkey); in ecc_encrypt_key() 75 err = ecc_get_key(pub_expt, &pubkeysize, PK_PUBLIC, &pubkey); in ecc_encrypt_key() 101 … LTC_ASN1_OCTET_STRING, pubkeysize, pub_expt, in ecc_encrypt_key() 108 zeromem(pub_expt, ECC_BUF_SIZE); in ecc_encrypt_key() 115 XFREE(pub_expt); in ecc_encrypt_key()
|
A D | ecc_decrypt_key.c | 26 unsigned char *ecc_shared, *skey, *pub_expt; in ecc_decrypt_key() local 58 pub_expt = XMALLOC(ECC_BUF_SIZE); in ecc_decrypt_key() 61 if (pub_expt == NULL || ecc_shared == NULL || skey == NULL) { in ecc_decrypt_key() 62 if (pub_expt != NULL) { in ecc_decrypt_key() 63 XFREE(pub_expt); in ecc_decrypt_key() 73 LTC_SET_ASN1(decode, 1, LTC_ASN1_OCTET_STRING, pub_expt, ECC_BUF_SIZE); in ecc_decrypt_key() 120 zeromem(pub_expt, ECC_BUF_SIZE); in ecc_decrypt_key() 125 XFREE(pub_expt); in ecc_decrypt_key()
|
Completed in 3 milliseconds