Searched refs:pub_expt (Results 1 - 2 of 2) sorted by relevance

/external/dropbear/libtomcrypt/src/pk/ecc/
H A Decc_encrypt_key.c43 unsigned char *pub_expt, *ecc_shared, *skey; local
71 pub_expt = XMALLOC(ECC_BUF_SIZE);
74 if (pub_expt == NULL || ecc_shared == NULL || skey == NULL) {
75 if (pub_expt != NULL) {
76 XFREE(pub_expt);
89 if ((err = ecc_export(pub_expt, &pubkeysize, PK_PUBLIC, &pubkey)) != CRYPT_OK) {
113 LTC_ASN1_OCTET_STRING, pubkeysize, pub_expt,
120 zeromem(pub_expt, ECC_BUF_SIZE);
127 XFREE(pub_expt);
H A Decc_decrypt_key.c39 unsigned char *ecc_shared, *skey, *pub_expt; local
70 pub_expt = XMALLOC(ECC_BUF_SIZE);
73 if (pub_expt == NULL || ecc_shared == NULL || skey == NULL) {
74 if (pub_expt != NULL) {
75 XFREE(pub_expt);
85 LTC_SET_ASN1(decode, 1, LTC_ASN1_OCTET_STRING, pub_expt, ECC_BUF_SIZE);
133 zeromem(pub_expt, ECC_BUF_SIZE);
138 XFREE(pub_expt);

Completed in 87 milliseconds