Lines Matching refs:dat
15 static int cipher_hw_aes_t4_initkey(PROV_CIPHER_CTX *dat,
19 PROV_AES_CTX *adat = (PROV_AES_CTX *)dat;
22 dat->ks = (const void *)ks; /* used by cipher_hw_generic_XXX */
25 if ((dat->mode == EVP_CIPH_ECB_MODE || dat->mode == EVP_CIPH_CBC_MODE)
26 && !dat->enc) {
29 dat->block = (block128_f)aes_t4_decrypt;
32 dat->stream.cbc = dat->mode == EVP_CIPH_CBC_MODE ?
36 dat->stream.cbc = dat->mode == EVP_CIPH_CBC_MODE ?
40 dat->stream.cbc = dat->mode == EVP_CIPH_CBC_MODE ?
49 dat->block = (block128_f)aes_t4_encrypt;
52 if (dat->mode == EVP_CIPH_CBC_MODE)
53 dat->stream.cbc = (cbc128_f)aes128_t4_cbc_encrypt;
54 else if (dat->mode == EVP_CIPH_CTR_MODE)
55 dat->stream.ctr = (ctr128_f)aes128_t4_ctr32_encrypt;
57 dat->stream.cbc = NULL;
60 if (dat->mode == EVP_CIPH_CBC_MODE)
61 dat->stream.cbc = (cbc128_f)aes192_t4_cbc_encrypt;
62 else if (dat->mode == EVP_CIPH_CTR_MODE)
63 dat->stream.ctr = (ctr128_f)aes192_t4_ctr32_encrypt;
65 dat->stream.cbc = NULL;
68 if (dat->mode == EVP_CIPH_CBC_MODE)
69 dat->stream.cbc = (cbc128_f)aes256_t4_cbc_encrypt;
70 else if (dat->mode == EVP_CIPH_CTR_MODE)
71 dat->stream.ctr = (ctr128_f)aes256_t4_ctr32_encrypt;
73 dat->stream.cbc = NULL;