Lines Matching refs:enc
51 const OSSL_PARAM params[], int enc) in gcm_init() argument
58 ctx->enc = enc; in gcm_init()
134 || ctx->enc) in setivinv()
222 || !ctx->enc in ossl_gcm_get_ctx_params()
270 if (sz == 0 || ctx->enc) { in ossl_gcm_set_ctx_params()
435 if (!ctx->enc || !gcm_iv_generate(ctx, 0)) in gcm_cipher_internal()
457 if (!ctx->enc && ctx->taglen == UNINITIALISED_SIZET) in gcm_cipher_internal()
492 if (!dat->enc) { in gcm_tls_init()
519 if (ctx->enc) { in gcm_tls_iv_set_fixed()
556 if (ctx->enc && ++ctx->tls_enc_records == 0) { in gcm_tls_cipher()
565 if (ctx->enc) { in gcm_tls_cipher()
578 tag = ctx->enc ? out + len : (unsigned char *)in + len; in gcm_tls_cipher()
581 if (!ctx->enc) in gcm_tls_cipher()
585 if (ctx->enc) in gcm_tls_cipher()