Lines Matching full:ivlen
80 int ivlen; /* IV length */
324 CRYPTO_gcm128_setiv(&gctx->gcm, iv, gctx->ivlen);
333 CRYPTO_gcm128_setiv(&gctx->gcm, iv, gctx->ivlen);
335 memcpy(gctx->iv, iv, gctx->ivlen);
416 #define BLOCK_CIPHER_generic(nid,keylen,blocksize,ivlen,nmode,mode,MODE,flags) \
418 nid##_##keylen##_##nmode,blocksize,keylen/8,ivlen, \
427 keylen/8,ivlen, \
437 #define BLOCK_CIPHER_custom(nid,keylen,blocksize,ivlen,mode,MODE,flags) \
440 (EVP_CIPH_##MODE##_MODE==EVP_CIPH_XTS_MODE?2:1)*keylen/8, ivlen, \
449 (EVP_CIPH_##MODE##_MODE==EVP_CIPH_XTS_MODE?2:1)*keylen/8, ivlen, \
461 #define BLOCK_CIPHER_generic(nid,keylen,blocksize,ivlen,nmode,mode,MODE,flags) \
463 nid##_##keylen##_##nmode,blocksize,keylen/8,ivlen, \
473 #define BLOCK_CIPHER_custom(nid,keylen,blocksize,ivlen,mode,MODE,flags) \
476 (EVP_CIPH_##MODE##_MODE==EVP_CIPH_XTS_MODE?2:1)*keylen/8, ivlen, \
708 gctx->ivlen = c->cipher->iv_len;
724 if ((arg > EVP_MAX_IV_LENGTH) && (arg > gctx->ivlen))
732 gctx->ivlen = arg;
752 memcpy(gctx->iv, ptr, gctx->ivlen);
759 if ((arg < 4) || (gctx->ivlen - arg) < 8)
764 RAND_bytes(gctx->iv + arg, gctx->ivlen - arg) <= 0)
772 CRYPTO_gcm128_setiv(&gctx->gcm, gctx->iv, gctx->ivlen);
773 if (arg <= 0 || arg > gctx->ivlen)
774 arg = gctx->ivlen;
775 memcpy(ptr, gctx->iv + gctx->ivlen - arg, arg);
780 ctr64_inc(gctx->iv + gctx->ivlen - 8);
787 memcpy(gctx->iv + gctx->ivlen - arg, ptr, arg);
788 CRYPTO_gcm128_setiv(&gctx->gcm, gctx->iv, gctx->ivlen);
862 CRYPTO_gcm128_setiv(&gctx->gcm, iv, gctx->ivlen);
871 CRYPTO_gcm128_setiv(&gctx->gcm, iv, gctx->ivlen);
873 memcpy(gctx->iv, iv, gctx->ivlen);