Lines Matching refs:dat
33 static int s390x_aes_ecb_initkey(PROV_CIPHER_CTX *dat,
36 PROV_AES_CTX *adat = (PROV_AES_CTX *)dat;
43 static int s390x_aes_ecb_cipher_hw(PROV_CIPHER_CTX *dat, unsigned char *out,
46 PROV_AES_CTX *adat = (PROV_AES_CTX *)dat;
54 static int s390x_aes_ofb128_initkey(PROV_CIPHER_CTX *dat,
57 PROV_AES_CTX *adat = (PROV_AES_CTX *)dat;
64 static int s390x_aes_ofb128_cipher_hw(PROV_CIPHER_CTX *dat, unsigned char *out,
67 PROV_AES_CTX *adat = (PROV_AES_CTX *)dat;
68 int n = dat->num;
71 memcpy(adat->plat.s390x.param.kmo_kmf.cv, dat->iv, dat->ivlen);
103 memcpy(dat->iv, adat->plat.s390x.param.kmo_kmf.cv, dat->ivlen);
104 dat->num = n;
108 static int s390x_aes_cfb128_initkey(PROV_CIPHER_CTX *dat,
111 PROV_AES_CTX *adat = (PROV_AES_CTX *)dat;
119 static int s390x_aes_cfb128_cipher_hw(PROV_CIPHER_CTX *dat, unsigned char *out,
122 PROV_AES_CTX *adat = (PROV_AES_CTX *)dat;
124 int n = dat->num;
128 memcpy(adat->plat.s390x.param.kmo_kmf.cv, dat->iv, dat->ivlen);
132 adat->plat.s390x.param.kmo_kmf.cv[n] = dat->enc ? *out : tmp;
153 S390X_AES_FC(dat->keylen),
159 adat->plat.s390x.param.kmo_kmf.cv[n] = dat->enc ? out[n] : tmp;
164 memcpy(dat->iv, adat->plat.s390x.param.kmo_kmf.cv, dat->ivlen);
165 dat->num = n;
169 static int s390x_aes_cfb8_initkey(PROV_CIPHER_CTX *dat,
172 PROV_AES_CTX *adat = (PROV_AES_CTX *)dat;
180 static int s390x_aes_cfb8_cipher_hw(PROV_CIPHER_CTX *dat, unsigned char *out,
183 PROV_AES_CTX *adat = (PROV_AES_CTX *)dat;
186 memcpy(adat->plat.s390x.param.kmo_kmf.cv, dat->iv, dat->ivlen);
189 memcpy(dat->iv, adat->plat.s390x.param.kmo_kmf.cv, dat->ivlen);