Lines Matching defs:seed
97 u8 *seed;
215 * optionally extra IV seed.
221 * version 3: the same as version 2 with additional IV seed
222 * (it uses 65 keys, last key is used as IV seed)
470 kzfree(lmk->seed);
471 lmk->seed = NULL;
485 /* No seed in LMK version 2 */
487 lmk->seed = NULL;
491 lmk->seed = kzalloc(LMK_SEED_SIZE, GFP_KERNEL);
492 if (!lmk->seed) {
494 ti->error = "Error kmallocing seed storage in LMK";
506 /* LMK seed is on the position of LMK_KEYS + 1 key */
507 if (lmk->seed)
508 memcpy(lmk->seed, cc->key + (cc->tfms_count * subkey_size),
518 if (lmk->seed)
519 memset(lmk->seed, 0, LMK_SEED_SIZE);
541 if (lmk->seed) {
542 r = crypto_shash_update(desc, lmk->seed, LMK_SEED_SIZE);
643 ti->error = "Error allocating seed storage in TCW";
1623 * If present (version 3), last key is used as IV seed.
1624 * All keys (including IV seed) are always the same size.