Lines Matching refs:dat
21 static int cipher_hw_aesni_initkey(PROV_CIPHER_CTX *dat,
25 PROV_AES_CTX *adat = (PROV_AES_CTX *)dat;
28 dat->ks = ks;
30 if ((dat->mode == EVP_CIPH_ECB_MODE || dat->mode == EVP_CIPH_CBC_MODE)
31 && !dat->enc) {
33 dat->block = (block128_f) aesni_decrypt;
34 dat->stream.cbc = dat->mode == EVP_CIPH_CBC_MODE ?
38 dat->block = (block128_f) aesni_encrypt;
39 if (dat->mode == EVP_CIPH_CBC_MODE)
40 dat->stream.cbc = (cbc128_f) aesni_cbc_encrypt;
41 else if (dat->mode == EVP_CIPH_CTR_MODE)
42 dat->stream.ctr = (ctr128_f) aesni_ctr32_encrypt_blocks;
44 dat->stream.cbc = NULL;