Lines Matching refs:ivlen
52 size_t ivlen, size_t taglen) in aes_generic_ocb_setiv() argument
54 return (CRYPTO_ocb128_setiv(&ctx->ocb, iv, ivlen, taglen) == 1); in aes_generic_ocb_setiv()
105 const unsigned char *iv, size_t ivlen, in aes_ocb_init() argument
118 if (ivlen != ctx->base.ivlen) { in aes_ocb_init()
120 if (ivlen < OCB_MIN_IV_LEN || ivlen > OCB_MAX_IV_LEN) { in aes_ocb_init()
124 ctx->base.ivlen = ivlen; in aes_ocb_init()
126 if (!ossl_cipher_generic_initiv(&ctx->base, iv, ivlen)) in aes_ocb_init()
142 const unsigned char *iv, size_t ivlen, in aes_ocb_einit() argument
145 return aes_ocb_init(vctx, key, keylen, iv, ivlen, params, 1); in aes_ocb_einit()
149 const unsigned char *iv, size_t ivlen, in aes_ocb_dinit() argument
152 return aes_ocb_init(vctx, key, keylen, iv, ivlen, params, 0); in aes_ocb_dinit()
223 if (!aes_generic_ocb_setiv(ctx, ctx->base.iv, ctx->base.ivlen, in update_iv()
396 if (ctx->base.ivlen != sz) { in aes_ocb_set_ctx_params()
397 ctx->base.ivlen = sz; in aes_ocb_set_ctx_params()
423 if (p != NULL && !OSSL_PARAM_set_size_t(p, ctx->base.ivlen)) { in aes_ocb_get_ctx_params()
442 if (ctx->base.ivlen > p->data_size) { in aes_ocb_get_ctx_params()
446 if (!OSSL_PARAM_set_octet_string(p, ctx->base.oiv, ctx->base.ivlen) in aes_ocb_get_ctx_params()
447 && !OSSL_PARAM_set_octet_ptr(p, &ctx->base.oiv, ctx->base.ivlen)) { in aes_ocb_get_ctx_params()
454 if (ctx->base.ivlen > p->data_size) { in aes_ocb_get_ctx_params()
458 if (!OSSL_PARAM_set_octet_string(p, ctx->base.iv, ctx->base.ivlen) in aes_ocb_get_ctx_params()
459 && !OSSL_PARAM_set_octet_ptr(p, &ctx->base.iv, ctx->base.ivlen)) { in aes_ocb_get_ctx_params()