Searched defs:keydata (Results 1 - 2 of 2) sorted by relevance
/dovecot/src/lib-dcrypt/ |
H A D | ostream-encrypt.c | 337 buffer_t *keydata, *res; local 355 /* generate keydata length of random data for key/iv/mac */ 357 keydata = t_buffer_create(kl); 358 random_fill(buffer_append_space_unsafe(keydata, kl), kl); 359 buffer_set_used_size(keydata, kl); 360 ptr = keydata->data; 412 safe_memset(buffer_get_modifiable_data(keydata, 0), 0, keydata->used); 631 /* MAC algorithm is used for PBKDF2 and keydata hashing */
|
H A D | istream-decrypt.c | 515 buffer_t *keydata = t_buffer_create(kl); local 517 /* try to decrypt the keydata with a private key */ 519 if ((ret = i_stream_decrypt_key(stream, malg, rounds, data, end, keydata, kl)) <= 0) 523 const unsigned char *ptr = keydata->data; 524 if (keydata->used != kl) { 557 safe_memset(buffer_get_modifiable_data(keydata, 0), 0, keydata->used); 558 buffer_set_used_size(keydata, 0);
|
Completed in 20 milliseconds