Lines Matching refs:adat
36 PROV_AES_CTX *adat = (PROV_AES_CTX *)dat;
38 adat->plat.s390x.fc = S390X_AES_FC(keylen);
39 memcpy(adat->plat.s390x.param.km.k, key, keylen);
46 PROV_AES_CTX *adat = (PROV_AES_CTX *)dat;
47 unsigned int modifier = adat->base.enc ? 0 : S390X_DECRYPT;
49 s390x_km(in, len, out, adat->plat.s390x.fc | modifier,
50 &adat->plat.s390x.param.km);
57 PROV_AES_CTX *adat = (PROV_AES_CTX *)dat;
59 memcpy(adat->plat.s390x.param.kmo_kmf.k, key, keylen);
60 adat->plat.s390x.fc = S390X_AES_FC(keylen);
67 PROV_AES_CTX *adat = (PROV_AES_CTX *)dat;
71 memcpy(adat->plat.s390x.param.kmo_kmf.cv, dat->iv, dat->ivlen);
73 *out = *in ^ adat->plat.s390x.param.kmo_kmf.cv[n];
84 s390x_kmo(in, len, out, adat->plat.s390x.fc,
85 &adat->plat.s390x.param.kmo_kmf);
92 s390x_km(adat->plat.s390x.param.kmo_kmf.cv, 16,
93 adat->plat.s390x.param.kmo_kmf.cv,
94 adat->plat.s390x.fc,
95 adat->plat.s390x.param.kmo_kmf.k);
98 out[n] = in[n] ^ adat->plat.s390x.param.kmo_kmf.cv[n];
103 memcpy(dat->iv, adat->plat.s390x.param.kmo_kmf.cv, dat->ivlen);
111 PROV_AES_CTX *adat = (PROV_AES_CTX *)dat;
113 adat->plat.s390x.fc = S390X_AES_FC(keylen);
114 adat->plat.s390x.fc |= 16 << 24; /* 16 bytes cipher feedback */
115 memcpy(adat->plat.s390x.param.kmo_kmf.k, key, keylen);
122 PROV_AES_CTX *adat = (PROV_AES_CTX *)dat;
123 unsigned int modifier = adat->base.enc ? 0 : S390X_DECRYPT;
128 memcpy(adat->plat.s390x.param.kmo_kmf.cv, dat->iv, dat->ivlen);
131 *out = adat->plat.s390x.param.kmo_kmf.cv[n] ^ tmp;
132 adat->plat.s390x.param.kmo_kmf.cv[n] = dat->enc ? *out : tmp;
143 s390x_kmf(in, len, out, adat->plat.s390x.fc | modifier,
144 &adat->plat.s390x.param.kmo_kmf);
151 s390x_km(adat->plat.s390x.param.kmo_kmf.cv, 16,
152 adat->plat.s390x.param.kmo_kmf.cv,
154 adat->plat.s390x.param.kmo_kmf.k);
158 out[n] = adat->plat.s390x.param.kmo_kmf.cv[n] ^ tmp;
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);
172 PROV_AES_CTX *adat = (PROV_AES_CTX *)dat;
174 adat->plat.s390x.fc = S390X_AES_FC(keylen);
175 adat->plat.s390x.fc |= 1 << 24; /* 1 byte cipher feedback */
176 memcpy(adat->plat.s390x.param.kmo_kmf.k, key, keylen);
183 PROV_AES_CTX *adat = (PROV_AES_CTX *)dat;
184 unsigned int modifier = adat->base.enc ? 0 : S390X_DECRYPT;
186 memcpy(adat->plat.s390x.param.kmo_kmf.cv, dat->iv, dat->ivlen);
187 s390x_kmf(in, len, out, adat->plat.s390x.fc | modifier,
188 &adat->plat.s390x.param.kmo_kmf);
189 memcpy(dat->iv, adat->plat.s390x.param.kmo_kmf.cv, dat->ivlen);