Lines Matching defs:priv_key
28 struct dcrypt_private_key *priv_key;
128 if (stream->priv_key == NULL) {
132 int ret = stream->key_callback(key_id, &stream->priv_key, &error, stream->key_context);
141 dcrypt_key_ref_private(stream->priv_key);
150 if (!dcrypt_key_id_private_old(stream->priv_key, check, &error)) {
161 if (!dcrypt_ecdh_derive_secret_local(stream->priv_key, &ephemeral_key, secret, &error)) {
293 if (stream->priv_key == NULL) {
298 if (!dcrypt_key_id_private(stream->priv_key, "sha256", &buf,
316 int ret = stream->key_callback(hexdgst, &stream->priv_key, &error, stream->key_context);
322 dcrypt_key_ref_private(stream->priv_key);
376 if (!dcrypt_rsa_decrypt(stream->priv_key, encrypted_key, eklen, key, &error)) {
386 if (!dcrypt_ecdh_derive_secret_local(stream->priv_key, &peer_key, secret, &error)) {
846 if (dstream->priv_key != NULL)
847 dcrypt_key_unref_private(&dstream->priv_key);
875 i_stream_create_decrypt(struct istream *input, struct dcrypt_private_key *priv_key)
880 dcrypt_key_ref_private(priv_key);
881 dstream->priv_key = priv_key;