Lines Matching refs:actx
27 PROV_AES_GCM_CTX *actx = (PROV_AES_GCM_CTX *)ctx;
30 memcpy(&actx->plat.s390x.param.kma.k, key, keylen);
31 actx->plat.s390x.fc = S390X_AES_FC(keylen);
38 PROV_AES_GCM_CTX *actx = (PROV_AES_GCM_CTX *)ctx;
39 S390X_KMA_PARAMS *kma = &actx->plat.s390x.param.kma;
45 actx->plat.s390x.mreslen = 0;
46 actx->plat.s390x.areslen = 0;
47 actx->plat.s390x.kreslen = 0;
53 actx->plat.s390x.hsflag = 0;
70 s390x_kma(iv_zero_pad, len, NULL, 0, NULL, actx->plat.s390x.fc, kma);
71 actx->plat.s390x.hsflag = S390X_KMA_HS; /* The hash subkey is set */
86 PROV_AES_GCM_CTX *actx = (PROV_AES_GCM_CTX *)ctx;
87 S390X_KMA_PARAMS *kma = &actx->plat.s390x.param.kma;
94 fc = S390X_gcm_fc(actx, ctx) | S390X_KMA_LAAD | S390X_KMA_LPC;
95 s390x_kma(actx->plat.s390x.ares, actx->plat.s390x.areslen,
96 actx->plat.s390x.mres, actx->plat.s390x.mreslen, out,
100 OPENSSL_cleanse(out, actx->plat.s390x.mreslen);
118 PROV_AES_GCM_CTX *actx = (PROV_AES_GCM_CTX *)ctx;
119 S390X_KMA_PARAMS *kma = &actx->plat.s390x.param.kma;
125 fc = S390X_gcm_fc(actx, ctx) | S390X_KMA_LAAD | S390X_KMA_LPC;
144 PROV_AES_GCM_CTX *actx = (PROV_AES_GCM_CTX *)ctx;
145 S390X_KMA_PARAMS *kma = &actx->plat.s390x.param.kma;
161 n = actx->plat.s390x.areslen;
165 actx->plat.s390x.ares[n] = *aad;
172 fc = S390X_gcm_fc(actx, ctx);
173 s390x_kma(actx->plat.s390x.ares, 16, NULL, 0, NULL, fc, kma);
174 actx->plat.s390x.hsflag = S390X_KMA_HS;
176 actx->plat.s390x.areslen = n;
184 fc = S390X_gcm_fc(actx, ctx);
186 actx->plat.s390x.hsflag = S390X_KMA_HS;
191 actx->plat.s390x.areslen = rem;
195 actx->plat.s390x.ares[rem] = aad[rem];
209 PROV_AES_GCM_CTX *actx = (PROV_AES_GCM_CTX *)ctx;
210 S390X_KMA_PARAMS *kma = &actx->plat.s390x.param.kma;
226 fc = S390X_gcm_fc(actx, ctx) | S390X_KMA_LAAD;
227 n = actx->plat.s390x.mreslen;
232 actx->plat.s390x.mres[n] = *inptr;
239 s390x_kma(actx->plat.s390x.ares, actx->plat.s390x.areslen,
240 actx->plat.s390x.mres, 16, buf.b, fc, kma);
241 actx->plat.s390x.hsflag = S390X_KMA_HS;
243 actx->plat.s390x.areslen = 0;
247 n = actx->plat.s390x.mreslen;
255 actx->plat.s390x.mreslen = 0;
263 s390x_kma(actx->plat.s390x.ares, actx->plat.s390x.areslen, in, len, out,
267 actx->plat.s390x.hsflag = S390X_KMA_HS;
268 actx->plat.s390x.areslen = 0;
277 if (!actx->plat.s390x.mreslen) {
282 s390x_km(buf.b, 16, actx->plat.s390x.kres,
286 n = actx->plat.s390x.mreslen;
288 actx->plat.s390x.mres[n + i] = in[i];
289 out[i] = in[i] ^ actx->plat.s390x.kres[n + i];
291 actx->plat.s390x.mreslen += rem;