Searched refs:expt (Results 1 – 2 of 2) sorted by relevance
/optee_os/core/lib/libtomcrypt/src/pk/dsa/ |
A D | dsa_decrypt_key.c | 32 unsigned char *skey, *expt; in dsa_decrypt_key() local 68 expt = XMALLOC(mp_unsigned_bin_size(key->p) + 1); in dsa_decrypt_key() 70 if (expt == NULL || skey == NULL) { in dsa_decrypt_key() 71 if (expt != NULL) { in dsa_decrypt_key() 72 XFREE(expt); in dsa_decrypt_key() 91 if ((err = dsa_shared_secret(key->x, g_pub, key, expt, &x)) != CRYPT_OK) { in dsa_decrypt_key() 97 if ((err = hash_memory(hash, expt, x, expt, &y)) != CRYPT_OK) { in dsa_decrypt_key() 116 out[x] = expt[x] ^ skey[x]; in dsa_decrypt_key() 123 zeromem(expt, mp_unsigned_bin_size(key->p) + 1); in dsa_decrypt_key() 127 XFREE(expt); in dsa_decrypt_key()
|
A D | dsa_encrypt_key.c | 36 unsigned char *expt, *skey; in dsa_encrypt_key() local 64 expt = XMALLOC(mp_unsigned_bin_size(key->p) + 1); in dsa_encrypt_key() 66 if (expt == NULL || skey == NULL) { in dsa_encrypt_key() 67 if (expt != NULL) { in dsa_encrypt_key() 68 XFREE(expt); in dsa_encrypt_key() 91 if ((err = dsa_shared_secret(g_priv, key->y, key, expt, &x)) != CRYPT_OK) { in dsa_encrypt_key() 96 if ((err = hash_memory(hash, expt, x, skey, &y)) != CRYPT_OK) { in dsa_encrypt_key() 114 zeromem(expt, mp_unsigned_bin_size(key->p) + 1); in dsa_encrypt_key() 119 XFREE(expt); in dsa_encrypt_key()
|
Completed in 2 milliseconds