• Home
  • Raw
  • Download

Lines Matching refs:kma

1083     } kma;  member
1424 (OPENSSL_s390xcap_P.kma[0] & \
1427 (OPENSSL_s390xcap_P.kma[0] & \
1430 (OPENSSL_s390xcap_P.kma[0] & \
1446 if (ctx->kma.param.tpcl) in s390x_aes_gcm_aad()
1449 alen = ctx->kma.param.taadl + len; in s390x_aes_gcm_aad()
1452 ctx->kma.param.taadl = alen; in s390x_aes_gcm_aad()
1464 s390x_kma(ctx->ares, 16, NULL, 0, NULL, ctx->fc, &ctx->kma.param); in s390x_aes_gcm_aad()
1474 s390x_kma(aad, len, NULL, 0, NULL, ctx->fc, &ctx->kma.param); in s390x_aes_gcm_aad()
1506 mlen = ctx->kma.param.tpcl + len; in s390x_aes_gcm()
1509 ctx->kma.param.tpcl = mlen; in s390x_aes_gcm()
1524 ctx->fc | S390X_KMA_LAAD, &ctx->kma.param); in s390x_aes_gcm()
1547 ctx->fc | S390X_KMA_LAAD, &ctx->kma.param); in s390x_aes_gcm()
1561 buf.w[0] = ctx->kma.param.j0.w[0]; in s390x_aes_gcm()
1562 buf.w[1] = ctx->kma.param.j0.w[1]; in s390x_aes_gcm()
1563 buf.w[2] = ctx->kma.param.j0.w[2]; in s390x_aes_gcm()
1564 buf.w[3] = ctx->kma.param.cv.w + 1; in s390x_aes_gcm()
1565 s390x_km(buf.b, 16, ctx->kres, ctx->fc & 0x1f, &ctx->kma.param.k); in s390x_aes_gcm()
1584 ctx->kma.param.t.g[0] = 0; in s390x_aes_gcm_setiv()
1585 ctx->kma.param.t.g[1] = 0; in s390x_aes_gcm_setiv()
1586 ctx->kma.param.tpcl = 0; in s390x_aes_gcm_setiv()
1587 ctx->kma.param.taadl = 0; in s390x_aes_gcm_setiv()
1593 memcpy(&ctx->kma.param.j0, ctx->iv, ctx->ivlen); in s390x_aes_gcm_setiv()
1594 ctx->kma.param.j0.w[3] = 1; in s390x_aes_gcm_setiv()
1595 ctx->kma.param.cv.w = 1; in s390x_aes_gcm_setiv()
1599 ctx->fc, &ctx->kma.param); in s390x_aes_gcm_setiv()
1602 ctx->kma.param.j0.g[0] = ctx->kma.param.t.g[0]; in s390x_aes_gcm_setiv()
1603 ctx->kma.param.j0.g[1] = ctx->kma.param.t.g[1]; in s390x_aes_gcm_setiv()
1604 ctx->kma.param.cv.w = ctx->kma.param.j0.w[3]; in s390x_aes_gcm_setiv()
1605 ctx->kma.param.t.g[0] = 0; in s390x_aes_gcm_setiv()
1606 ctx->kma.param.t.g[1] = 0; in s390x_aes_gcm_setiv()
1680 memcpy(ptr, gctx->kma.param.t.b, arg); in s390x_aes_gcm_ctrl()
1800 memcpy(&gctx->kma.param.k, key, keylen); in s390x_aes_gcm_init_key()
1844 gctx->kma.param.taadl = gctx->tls_aad_len << 3; in s390x_aes_gcm_tls_cipher()
1845 gctx->kma.param.tpcl = len << 3; in s390x_aes_gcm_tls_cipher()
1847 gctx->fc | S390X_KMA_LAAD | S390X_KMA_LPC, &gctx->kma.param); in s390x_aes_gcm_tls_cipher()
1850 memcpy(out + len, gctx->kma.param.t.b, EVP_GCM_TLS_TAG_LEN); in s390x_aes_gcm_tls_cipher()
1853 if (CRYPTO_memcmp(gctx->kma.param.t.b, in + len, in s390x_aes_gcm_tls_cipher()
1898 gctx->kma.param.taadl <<= 3; in s390x_aes_gcm_cipher()
1899 gctx->kma.param.tpcl <<= 3; in s390x_aes_gcm_cipher()
1901 gctx->fc | S390X_KMA_LAAD | S390X_KMA_LPC, &gctx->kma.param); in s390x_aes_gcm_cipher()
1914 if (CRYPTO_memcmp(buf, gctx->kma.param.t.b, gctx->taglen)) in s390x_aes_gcm_cipher()