Lines Matching defs:key
479 struct ccp_dm_workarea key, ctx;
496 if (!aes->key || !aes->iv || !aes->src)
521 /* All supported key sizes fit in a single (32-byte) SB entry
526 ret = ccp_init_dm_workarea(&key, cmd_q,
533 ret = ccp_set_dm_area(&key, dm_offset, aes->key, 0, aes->key_len);
536 ret = ccp_copy_to_sb(cmd_q, &key, op.jobid, op.sb_key,
575 /* Push the K1/K2 key to the CCP now */
626 ccp_dm_free(&key);
635 struct ccp_dm_workarea key, ctx, final_wa, tag;
660 if (!aes->key) /* Gotta have a key SGL */
706 /* Copy the key to the LSB */
707 ret = ccp_init_dm_workarea(&key, cmd_q,
714 ret = ccp_set_dm_area(&key, dm_offset, aes->key, 0, aes->key_len);
717 ret = ccp_copy_to_sb(cmd_q, &key, op.jobid, op.sb_key,
910 ccp_dm_free(&key);
919 struct ccp_dm_workarea key, ctx;
936 if (!aes->key || !aes->src || !aes->dst)
961 /* All supported key sizes fit in a single (32-byte) SB entry
966 ret = ccp_init_dm_workarea(&key, cmd_q,
973 ret = ccp_set_dm_area(&key, dm_offset, aes->key, 0, aes->key_len);
976 ret = ccp_copy_to_sb(cmd_q, &key, op.jobid, op.sb_key,
1087 ccp_dm_free(&key);
1096 struct ccp_dm_workarea key, ctx;
1139 if (!xts->key || !xts->iv || !xts->src || !xts->dst)
1164 ret = ccp_init_dm_workarea(&key, cmd_q,
1171 /* All supported key sizes must be in little endian format.
1176 ret = ccp_set_dm_area(&key, dm_offset, xts->key, 0, xts->key_len);
1179 ret = ccp_set_dm_area(&key, 0, xts->key, xts->key_len, xts->key_len);
1183 /* Version 5 CCPs use a 512-bit space for the key: each portion
1190 ret = ccp_set_dm_area(&key, pad, xts->key, 0, xts->key_len);
1193 ret = ccp_set_dm_area(&key, dm_offset + pad, xts->key,
1198 ret = ccp_copy_to_sb(cmd_q, &key, op.jobid, op.sb_key,
1287 ccp_dm_free(&key);
1297 struct ccp_dm_workarea key, ctx;
1320 if (!des3->key || !des3->src || !des3->dst)
1345 * All supported key sizes fit in a single (32-byte) KSB entry and
1349 ret = ccp_init_dm_workarea(&key, cmd_q,
1356 * The contents of the key triplet are in the reverse order of what
1363 ret = ccp_set_dm_area(&key, dm_offset + 2 * len_singlekey,
1364 des3->key, 0, len_singlekey);
1367 ret = ccp_set_dm_area(&key, dm_offset + len_singlekey,
1368 des3->key, len_singlekey, len_singlekey);
1371 ret = ccp_set_dm_area(&key, dm_offset,
1372 des3->key, 2 * len_singlekey, len_singlekey);
1376 /* Copy the key to the SB */
1377 ret = ccp_copy_to_sb(cmd_q, &key, op.jobid, op.sb_key,
1483 ccp_dm_free(&key);
1878 * Set the sb key to the default, even though it's not used.