Lines Matching refs:dat
15 static int cipher_hw_camellia_t4_initkey(PROV_CIPHER_CTX *dat,
19 int ret = 0, bits, mode = dat->mode;
20 PROV_CAMELLIA_CTX *adat = (PROV_CAMELLIA_CTX *)dat;
23 dat->ks = ks;
28 if (dat->enc || (mode != EVP_CIPH_ECB_MODE && mode != EVP_CIPH_CBC_MODE)) {
29 dat->block = (block128_f) cmll_t4_encrypt;
33 dat->stream.cbc = (cbc128_f) cmll128_t4_cbc_encrypt;
35 dat->stream.ctr = (ctr128_f) cmll128_t4_ctr32_encrypt;
37 dat->stream.cbc = NULL;
42 dat->stream.cbc = (cbc128_f) cmll256_t4_cbc_encrypt;
44 dat->stream.ctr = (ctr128_f) cmll256_t4_ctr32_encrypt;
46 dat->stream.cbc = NULL;
53 dat->block = (block128_f) cmll_t4_decrypt;
56 dat->stream.cbc = mode == EVP_CIPH_CBC_MODE ?
61 dat->stream.cbc = mode == EVP_CIPH_CBC_MODE ?