Lines Matching refs:ivlen
191 const unsigned char *iv, size_t ivlen, in cipher_generic_init_internal() argument
203 if (!ossl_cipher_generic_initiv(ctx, iv, ivlen)) in cipher_generic_init_internal()
211 memcpy(ctx->iv, ctx->oiv, ctx->ivlen); in cipher_generic_init_internal()
231 size_t ivlen, const OSSL_PARAM params[]) in ossl_cipher_generic_einit() argument
234 iv, ivlen, params, 1); in ossl_cipher_generic_einit()
239 size_t ivlen, const OSSL_PARAM params[]) in ossl_cipher_generic_dinit() argument
242 iv, ivlen, params, 0); in ossl_cipher_generic_dinit()
581 if (p != NULL && !OSSL_PARAM_set_size_t(p, ctx->ivlen)) { in ossl_cipher_generic_get_ctx_params()
592 && !OSSL_PARAM_set_octet_ptr(p, &ctx->oiv, ctx->ivlen) in ossl_cipher_generic_get_ctx_params()
593 && !OSSL_PARAM_set_octet_string(p, &ctx->oiv, ctx->ivlen)) { in ossl_cipher_generic_get_ctx_params()
599 && !OSSL_PARAM_set_octet_ptr(p, &ctx->iv, ctx->ivlen) in ossl_cipher_generic_get_ctx_params()
600 && !OSSL_PARAM_set_octet_string(p, &ctx->iv, ctx->ivlen)) { in ossl_cipher_generic_get_ctx_params()
679 size_t ivlen) in ossl_cipher_generic_initiv() argument
681 if (ivlen != ctx->ivlen in ossl_cipher_generic_initiv()
682 || ivlen > sizeof(ctx->iv)) { in ossl_cipher_generic_initiv()
687 memcpy(ctx->iv, iv, ivlen); in ossl_cipher_generic_initiv()
688 memcpy(ctx->oiv, iv, ivlen); in ossl_cipher_generic_initiv()
706 ctx->ivlen = ((ivbits) / 8); in ossl_cipher_generic_initkey()