Lines Matching refs:dat
31 static int cipher_hw_rv32i_zknd_zkne_initkey(PROV_CIPHER_CTX *dat,
35 PROV_AES_CTX *adat = (PROV_AES_CTX *)dat;
38 dat->ks = ks;
40 if ((dat->mode == EVP_CIPH_ECB_MODE || dat->mode == EVP_CIPH_CBC_MODE)
41 && !dat->enc) {
43 dat->block = (block128_f) rv32i_zknd_decrypt;
44 dat->stream.cbc = NULL;
47 dat->block = (block128_f) rv32i_zkne_encrypt;
48 dat->stream.cbc = NULL;
59 static int cipher_hw_rv32i_zbkb_zknd_zkne_initkey(PROV_CIPHER_CTX *dat,
63 PROV_AES_CTX *adat = (PROV_AES_CTX *)dat;
66 dat->ks = ks;
68 if ((dat->mode == EVP_CIPH_ECB_MODE || dat->mode == EVP_CIPH_CBC_MODE)
69 && !dat->enc) {
71 dat->block = (block128_f) rv32i_zknd_decrypt;
72 dat->stream.cbc = NULL;
75 dat->block = (block128_f) rv32i_zkne_encrypt;
76 dat->stream.cbc = NULL;