Lines Matching refs:ephemeral_key
135 buffer_t *encrypted_key, *ephemeral_key, *secret, *res, buf;
159 ephemeral_key = t_buffer_create(256);
163 if (!dcrypt_ecdh_derive_secret_peer(stream->pub, ephemeral_key, secret, &error)) {
220 s = htons(ephemeral_key->used);
222 buffer_append(res, ephemeral_key->data, ephemeral_key->used);
248 buffer_t *encrypted_key, *ephemeral_key, *temp_key;
250 ephemeral_key = t_buffer_create(256);
267 if (!dcrypt_ecdh_derive_secret_peer(pubkey, ephemeral_key, secret, &error)) {
273 if (!dcrypt_pbkdf2(secret->data, secret->used, ephemeral_key->data, ephemeral_key->used,
316 unsigned int val = cpu32_to_be(ephemeral_key->used);
318 buffer_append_buf(res, ephemeral_key, 0, (size_t)-1);