Lines Matching defs:iv

23                             const unsigned char *iv, int enc);
25 const unsigned char *iv, int enc);
185 const unsigned char *iv, int enc,
196 if (iv)
197 memcpy(ctx->oiv, iv, EVP_CIPHER_CTX_iv_length(ctx));
198 memcpy(ctx->iv, ctx->oiv, EVP_CIPHER_CTX_iv_length(ctx));
203 const unsigned char *iv, int enc)
211 if (iv)
212 memcpy(ctx->oiv, iv, EVP_CIPHER_CTX_iv_length(ctx));
213 memcpy(ctx->iv, ctx->oiv, EVP_CIPHER_CTX_iv_length(ctx));
219 const unsigned char *iv, int enc)
221 return gost_cipher_init_param(ctx, key, iv, enc, NID_undef,
229 static void gost_crypt_mesh(void *ctx, unsigned char *iv, unsigned char *buf)
234 cryptopro_key_meshing(&(c->cctx), iv);
236 gostcrypt(&(c->cctx), iv, buf);
240 static void gost_cnt_next(void *ctx, unsigned char *iv, unsigned char *buf)
247 cryptopro_key_meshing(&(c->cctx), iv);
250 gostcrypt(&(c->cctx), iv, buf1);
252 memcpy(buf1, iv, 8);
269 memcpy(iv, buf1, 8);
293 memcpy(ctx->iv, ctx->buf + 8, 8);
303 * block cipher current iv
305 gost_crypt_mesh(ctx->cipher_data, ctx->iv, ctx->buf);
313 memcpy(ctx->iv, in_ptr, 8);
318 /* Next iv is next block of cipher text */
320 memcpy(ctx->iv, out_ptr, 8);
324 gost_crypt_mesh(ctx->cipher_data, ctx->iv, ctx->buf);
362 * block cipher current iv
365 gost_cnt_next(ctx->cipher_data, ctx->iv, ctx->buf);
378 gost_cnt_next(ctx->cipher_data, ctx->iv, ctx->buf);
439 if (!ASN1_OCTET_STRING_set(gcp->iv, ctx->iv, ctx->cipher->iv_len)) {
487 len = gcp->iv->length;
497 memcpy(ctx->oiv, gcp->iv->data, len);
521 * We are using local buffer for iv because CryptoPro doesn't interpret
522 * internal state of MAC algorithm as iv during keymeshing (but does
523 * initialize internal state from iv in key transport