Searched defs:ctx_sym (Results 1 - 2 of 2) sorted by relevance
/dovecot/src/lib-dcrypt/ |
H A D | ostream-encrypt.c | 35 struct dcrypt_context_symmetric *ctx_sym; member in struct:encrypt_ostream 207 dcrypt_ctx_sym_set_iv(stream->ctx_sym, (const unsigned char*)"\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", 16); 208 dcrypt_ctx_sym_set_key(stream->ctx_sym, seed, sizeof(seed)); 211 if (!dcrypt_ctx_sym_init(stream->ctx_sym, &error)) { 356 kl = dcrypt_ctx_sym_get_key_length(stream->ctx_sym) + dcrypt_ctx_sym_get_iv_length(stream->ctx_sym) + tagsize; 399 dcrypt_ctx_sym_set_key(stream->ctx_sym, ptr, dcrypt_ctx_sym_get_key_length(stream->ctx_sym)); 400 ptr += dcrypt_ctx_sym_get_key_length(stream->ctx_sym); 401 dcrypt_ctx_sym_set_iv(stream->ctx_sym, pt [all...] |
H A D | istream-decrypt.c | 38 struct dcrypt_context_symmetric *ctx_sym; member in struct:decrypt_istream 216 if (!dcrypt_ctx_sym_create("aes-256-ctr", DCRYPT_MODE_DECRYPT, &stream->ctx_sym, &error)) { 222 dcrypt_ctx_sym_set_iv(stream->ctx_sym, (const unsigned char*)"\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0", 16); 223 dcrypt_ctx_sym_set_key(stream->ctx_sym, key->data, key->used); 227 if (!dcrypt_ctx_sym_init(stream->ctx_sym, &error)) { 480 if (calg == NULL || !dcrypt_ctx_sym_create(calg, DCRYPT_MODE_DECRYPT, &stream->ctx_sym, NULL)) { 514 size_t kl = dcrypt_ctx_sym_get_key_length(stream->ctx_sym) + dcrypt_ctx_sym_get_iv_length(stream->ctx_sym) + tagsize; 531 dcrypt_ctx_sym_set_key(stream->ctx_sym, ptr, dcrypt_ctx_sym_get_key_length(stream->ctx_sym)); [all...] |
Completed in 12 milliseconds