Lines Matching defs:ctx_sym
38 struct dcrypt_context_symmetric *ctx_sym;
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));
532 ptr += dcrypt_ctx_sym_get_key_length(stream->ctx_sym);
533 dcrypt_ctx_sym_set_iv(stream->ctx_sym, ptr, dcrypt_ctx_sym_get_iv_length(stream->ctx_sym));
534 stream->iv = i_malloc(dcrypt_ctx_sym_get_iv_length(stream->ctx_sym));
535 memcpy(stream->iv, ptr, dcrypt_ctx_sym_get_iv_length(stream->ctx_sym));
536 ptr += dcrypt_ctx_sym_get_iv_length(stream->ctx_sym);
550 dcrypt_ctx_sym_set_aad(stream->ctx_sym, ptr, tagsize);
620 if (!dcrypt_ctx_sym_init(stream->ctx_sym, &error)) {
712 if (dcrypt_ctx_sym_final(dstream->ctx_sym,
807 dcrypt_ctx_sym_set_tag(dstream->ctx_sym, data + decrypt_size, dstream->ftr);
811 if (!dcrypt_ctx_sym_update(dstream->ctx_sym,
842 if (dstream->ctx_sym != NULL)
843 dcrypt_ctx_sym_destroy(&dstream->ctx_sym);
898 dstream->ctx_sym = ctx;