Lines Matching defs:dctx
773 struct dcrypt_context_symmetric *dctx;
776 if (!dcrypt_openssl_ctx_sym_create("aes-256-ctr", DCRYPT_MODE_DECRYPT, &dctx, error_r)) {
781 dcrypt_openssl_ctx_sym_set_iv(dctx, (const unsigned char*)"\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0", 16);
782 dcrypt_openssl_ctx_sym_set_key(dctx, key->data, key->used);
784 if (!dcrypt_openssl_ctx_sym_init(dctx, error_r) ||
785 !dcrypt_openssl_ctx_sym_update(dctx, data->data, data->used, tmp, error_r) ||
786 !dcrypt_openssl_ctx_sym_final(dctx, tmp, error_r)) {
787 dcrypt_openssl_ctx_sym_destroy(&dctx);
791 dcrypt_openssl_ctx_sym_destroy(&dctx);
841 struct dcrypt_context_symmetric *dctx;
855 dcrypt_ctx_sym_destroy(&dctx);
985 struct dcrypt_context_symmetric *dctx;
988 if (!dcrypt_openssl_ctx_sym_create(cipher, mode, &dctx, error_r)) {
996 dcrypt_openssl_ctx_sym_get_key_length(dctx)+dcrypt_openssl_ctx_sym_get_iv_length(dctx), error_r);
999 dcrypt_openssl_ctx_sym_destroy(&dctx);
1007 dcrypt_openssl_ctx_sym_set_key(dctx, kd, dcrypt_openssl_ctx_sym_get_key_length(dctx));
1008 dcrypt_openssl_ctx_sym_set_iv(dctx, kd+dcrypt_openssl_ctx_sym_get_key_length(dctx), dcrypt_openssl_ctx_sym_get_iv_length(dctx));
1010 if (!dcrypt_openssl_ctx_sym_init(dctx, error_r) ||
1011 !dcrypt_openssl_ctx_sym_update(dctx, input->data, input->used, tmp, error_r) ||
1012 !dcrypt_openssl_ctx_sym_final(dctx, tmp, error_r)) {
1022 dcrypt_openssl_ctx_sym_destroy(&dctx);