Lines Matching defs:dctx
175 struct dcrypt_context_symmetric *dctx;
176 if (!dcrypt_ctx_sym_create("aes-256-ctr", DCRYPT_MODE_ENCRYPT, &dctx, &error)) {
190 dcrypt_ctx_sym_set_iv(dctx, (const unsigned char*)"\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", 16);
191 dcrypt_ctx_sym_set_key(dctx, hres, sizeof(hres));
193 if (!dcrypt_ctx_sym_init(dctx, &error) ||
194 !dcrypt_ctx_sym_update(dctx, seed, sizeof(seed), encrypted_key, &error) ||
195 !dcrypt_ctx_sym_final(dctx, encrypted_key, &error)) {
198 dcrypt_ctx_sym_destroy(&dctx);
281 struct dcrypt_context_symmetric *dctx;
282 if (!dcrypt_ctx_sym_create("AES-256-CBC", DCRYPT_MODE_ENCRYPT, &dctx, &error)) {
291 dcrypt_ctx_sym_set_key(dctx, ptr, 32);
292 dcrypt_ctx_sym_set_iv(dctx, ptr+32, 16);
296 if (!dcrypt_ctx_sym_init(dctx, &error) ||
297 !dcrypt_ctx_sym_update(dctx, key, key_len, encrypted_key, &error) ||
298 !dcrypt_ctx_sym_final(dctx, encrypted_key, &error)) {
303 dcrypt_ctx_sym_destroy(&dctx);