Lines Matching refs:key
19 void (*ctx_sym_set_key)(struct dcrypt_context_symmetric *ctx, const unsigned char *key, size_t key_len);
25 bool (*ctx_sym_get_key)(struct dcrypt_context_symmetric *ctx, buffer_t *key);
45 void (*ctx_hmac_set_key)(struct dcrypt_context_hmac *ctx, const unsigned char *key, size_t key_len);
46 bool (*ctx_hmac_get_key)(struct dcrypt_context_hmac *ctx, buffer_t *key);
71 bool (*store_private_key)(struct dcrypt_private_key *key, enum dcrypt_key_format format, const char *cipher, buffer_t *destination,
73 bool (*store_public_key)(struct dcrypt_public_key *key, enum dcrypt_key_format format, buffer_t *destination, const char **error_r);
82 void (*unref_public_key)(struct dcrypt_public_key **key);
83 void (*unref_private_key)(struct dcrypt_private_key **key);
84 void (*ref_public_key)(struct dcrypt_public_key *key);
85 void (*ref_private_key)(struct dcrypt_private_key *key);
87 bool (*rsa_encrypt)(struct dcrypt_public_key *key, const unsigned char *data, size_t data_len,
89 bool (*rsa_decrypt)(struct dcrypt_private_key *key, const unsigned char *data, size_t data_len,
95 enum dcrypt_key_type (*private_key_type)(struct dcrypt_private_key *key);
96 enum dcrypt_key_type (*public_key_type)(struct dcrypt_public_key *key);
97 bool (*public_key_id)(struct dcrypt_public_key *key, const char *algorithm, buffer_t *result, const char **error_r);
98 bool (*public_key_id_old)(struct dcrypt_public_key *key, buffer_t *result, const char **error_r);
99 bool (*private_key_id)(struct dcrypt_private_key *key, const char *algorithm, buffer_t *result, const char **error_r);
100 bool (*private_key_id_old)(struct dcrypt_private_key *key, buffer_t *result, const char **error_r);