Lines Matching refs:sz
148 size_t sz; in ossl_gcm_get_ctx_params() local
219 sz = p->data_size; in ossl_gcm_get_ctx_params()
220 if (sz == 0 in ossl_gcm_get_ctx_params()
221 || sz > EVP_GCM_TLS_TAG_LEN in ossl_gcm_get_ctx_params()
227 if (!OSSL_PARAM_set_octet_string(p, ctx->buf, sz)) { in ossl_gcm_get_ctx_params()
251 size_t sz; in ossl_gcm_set_ctx_params() local
266 if (!OSSL_PARAM_get_octet_string(p, &vp, EVP_GCM_TLS_TAG_LEN, &sz)) { in ossl_gcm_set_ctx_params()
270 if (sz == 0 || ctx->enc) { in ossl_gcm_set_ctx_params()
274 ctx->taglen = sz; in ossl_gcm_set_ctx_params()
278 if (!OSSL_PARAM_get_size_t(p, &sz)) { in ossl_gcm_set_ctx_params()
282 if (sz == 0 || sz > sizeof(ctx->iv)) { in ossl_gcm_set_ctx_params()
286 if (ctx->ivlen != sz) { in ossl_gcm_set_ctx_params()
290 ctx->ivlen = sz; in ossl_gcm_set_ctx_params()
299 sz = gcm_tls_init(ctx, p->data, p->data_size); in ossl_gcm_set_ctx_params()
300 if (sz == 0) { in ossl_gcm_set_ctx_params()
304 ctx->tls_aad_pad_sz = sz; in ossl_gcm_set_ctx_params()
400 int sz = ctx->ivlen - offset; in gcm_iv_generate() local
403 if (sz <= 0 || ctx->ivlen < GCM_IV_DEFAULT_SIZE) in gcm_iv_generate()
407 if (RAND_bytes_ex(ctx->libctx, ctx->iv + offset, sz, 0) <= 0) in gcm_iv_generate()