Lines Matching defs:ctx_sym
35 struct dcrypt_context_symmetric *ctx_sym;
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, ptr, dcrypt_ctx_sym_get_iv_length(stream->ctx_sym));
402 ptr += dcrypt_ctx_sym_get_iv_length(stream->ctx_sym);
408 dcrypt_ctx_sym_set_aad(stream->ctx_sym, ptr, tagsize);
414 if (!dcrypt_ctx_sym_init(stream->ctx_sym, &error)) {
459 if (!dcrypt_ctx_sym_update(estream->ctx_sym, ptr + off, bl, &buf, &error)) {
502 buffer_t *buf = t_buffer_create(dcrypt_ctx_sym_get_block_size(estream->ctx_sym));
503 if (!dcrypt_ctx_sym_final(estream->ctx_sym, buf, &error)) {
529 dcrypt_ctx_sym_get_tag(estream->ctx_sym, buf);
544 if (stream->finished && estream->ctx_sym != NULL &&
559 i_assert(estream->finalized || estream->ctx_sym == NULL ||
571 if (estream->ctx_sym != NULL) dcrypt_ctx_sym_destroy(&estream->ctx_sym);
587 if (!dcrypt_ctx_sym_create("AES-256-CTR", DCRYPT_MODE_ENCRYPT, &estream->ctx_sym, &error)) {
604 if (!dcrypt_ctx_sym_create(calg, DCRYPT_MODE_ENCRYPT, &estream->ctx_sym, &error)) {
611 estream->block_size = dcrypt_ctx_sym_get_block_size(estream->ctx_sym);
686 if (!dcrypt_ctx_sym_init(estream->ctx_sym, &error)) ec = -1;
689 estream->ctx_sym = ctx;