Searched refs:ecc_shared (Results 1 - 2 of 2) sorted by relevance
/external/dropbear/libtomcrypt/src/pk/ecc/ |
H A D | ecc_decrypt_key.c | 39 unsigned char *ecc_shared, *skey, *pub_expt; local 71 ecc_shared = XMALLOC(ECC_BUF_SIZE); 73 if (pub_expt == NULL || ecc_shared == NULL || skey == NULL) { 77 if (ecc_shared != NULL) { 78 XFREE(ecc_shared); 100 if ((err = ecc_shared_secret(key, &pubkey, ecc_shared, &x)) != CRYPT_OK) { 107 if ((err = hash_memory(hash, ecc_shared, x, ecc_shared, &y)) != CRYPT_OK) { 126 out[x] = skey[x] ^ ecc_shared[x]; 134 zeromem(ecc_shared, ECC_BUF_SIZ [all...] |
H A D | ecc_encrypt_key.c | 43 unsigned char *pub_expt, *ecc_shared, *skey; local 72 ecc_shared = XMALLOC(ECC_BUF_SIZE); 74 if (pub_expt == NULL || ecc_shared == NULL || skey == NULL) { 78 if (ecc_shared != NULL) { 79 XFREE(ecc_shared); 96 if ((err = ecc_shared_secret(&pubkey, key, ecc_shared, &x)) != CRYPT_OK) { 102 if ((err = hash_memory(hash, ecc_shared, x, skey, &y)) != CRYPT_OK) { 121 zeromem(ecc_shared, ECC_BUF_SIZE); 126 XFREE(ecc_shared);
|
Completed in 121 milliseconds