Lines Matching refs:req_pl

584 	} __packed * req_pl;  in ep11_query_info()  local
603 req_pl = (struct ep11_info_req_pl *)(((u8 *)req) + sizeof(*req)); in ep11_query_info()
604 prep_head(&req_pl->head, sizeof(*req_pl), api, 38); /* get xcp info */ in ep11_query_info()
605 req_pl->query_type_tag = 0x04; in ep11_query_info()
606 req_pl->query_type_len = sizeof(u32); in ep11_query_info()
607 req_pl->query_type = query_type; in ep11_query_info()
608 req_pl->query_subtype_tag = 0x04; in ep11_query_info()
609 req_pl->query_subtype_len = sizeof(u32); in ep11_query_info()
624 req, sizeof(*req) + sizeof(*req_pl), in ep11_query_info()
795 } __packed * req_pl; in _ep11_genaeskey() local
841 req_pl = (struct keygen_req_pl *)(((u8 *)req) + sizeof(*req)); in _ep11_genaeskey()
842 prep_head(&req_pl->head, req_pl_size, api, 21); /* GenerateKey */ in _ep11_genaeskey()
843 req_pl->var_tag = 0x04; in _ep11_genaeskey()
844 req_pl->var_len = sizeof(u32); in _ep11_genaeskey()
845 req_pl->keybytes_tag = 0x04; in _ep11_genaeskey()
846 req_pl->keybytes_len = sizeof(u32); in _ep11_genaeskey()
847 req_pl->keybytes = keybitsize / 8; in _ep11_genaeskey()
848 req_pl->mech_tag = 0x04; in _ep11_genaeskey()
849 req_pl->mech_len = sizeof(u32); in _ep11_genaeskey()
850 req_pl->mech = 0x00001080; /* CKM_AES_KEY_GEN */ in _ep11_genaeskey()
851 req_pl->attr_tag = 0x04; in _ep11_genaeskey()
852 req_pl->attr_len = 5 * sizeof(u32); in _ep11_genaeskey()
853 req_pl->attr_header = 0x10010000; in _ep11_genaeskey()
854 req_pl->attr_bool_mask = keygenflags ? keygenflags : KEY_ATTR_DEFAULTS; in _ep11_genaeskey()
855 req_pl->attr_bool_bits = keygenflags ? keygenflags : KEY_ATTR_DEFAULTS; in _ep11_genaeskey()
856 req_pl->attr_val_len_type = 0x00000161; /* CKA_VALUE_LEN */ in _ep11_genaeskey()
857 req_pl->attr_val_len_value = keybitsize / 8; in _ep11_genaeskey()
858 p = ((u8 *)req_pl) + sizeof(*req_pl); in _ep11_genaeskey()
970 } __packed * req_pl; in ep11_cryptsingle() local
997 req_pl = (struct crypt_req_pl *)(((u8 *)req) + sizeof(*req)); in ep11_cryptsingle()
998 prep_head(&req_pl->head, req_pl_size, api, (mode ? 20 : 19)); in ep11_cryptsingle()
999 req_pl->var_tag = 0x04; in ep11_cryptsingle()
1000 req_pl->var_len = sizeof(u32); in ep11_cryptsingle()
1002 req_pl->mech_tag = 0x04; in ep11_cryptsingle()
1003 req_pl->mech_len = sizeof(u32) + (iv ? 16 : 0); in ep11_cryptsingle()
1004 req_pl->mech = (mech ? mech : 0x00001085); /* CKM_AES_CBC_PAD */ in ep11_cryptsingle()
1005 p = ((u8 *)req_pl) + sizeof(*req_pl); in ep11_cryptsingle()
1106 } __packed * req_pl; in _ep11_unwrapkey() local
1141 req_pl = (struct uw_req_pl *)(((u8 *)req) + sizeof(*req)); in _ep11_unwrapkey()
1142 prep_head(&req_pl->head, req_pl_size, api, 34); /* UnwrapKey */ in _ep11_unwrapkey()
1143 req_pl->attr_tag = 0x04; in _ep11_unwrapkey()
1144 req_pl->attr_len = 7 * sizeof(u32); in _ep11_unwrapkey()
1145 req_pl->attr_header = 0x10020000; in _ep11_unwrapkey()
1146 req_pl->attr_bool_mask = keygenflags ? keygenflags : KEY_ATTR_DEFAULTS; in _ep11_unwrapkey()
1147 req_pl->attr_bool_bits = keygenflags ? keygenflags : KEY_ATTR_DEFAULTS; in _ep11_unwrapkey()
1148 req_pl->attr_key_type = 0x00000100; /* CKA_KEY_TYPE */ in _ep11_unwrapkey()
1149 req_pl->attr_key_type_value = 0x0000001f; /* CKK_AES */ in _ep11_unwrapkey()
1150 req_pl->attr_val_len = 0x00000161; /* CKA_VALUE_LEN */ in _ep11_unwrapkey()
1151 req_pl->attr_val_len_value = keybitsize / 8; in _ep11_unwrapkey()
1153 req_pl->mech_tag = 0x04; in _ep11_unwrapkey()
1154 req_pl->mech_len = sizeof(u32) + (iv ? 16 : 0); in _ep11_unwrapkey()
1155 req_pl->mech = (mech ? mech : 0x00001085); /* CKM_AES_CBC_PAD */ in _ep11_unwrapkey()
1156 p = ((u8 *)req_pl) + sizeof(*req_pl); in _ep11_unwrapkey()
1278 } __packed * req_pl; in _ep11_wrapkey() local
1304 req_pl = (struct wk_req_pl *)(((u8 *)req) + sizeof(*req)); in _ep11_wrapkey()
1307 prep_head(&req_pl->head, req_pl_size, api, 33); /* WrapKey */ in _ep11_wrapkey()
1308 req_pl->var_tag = 0x04; in _ep11_wrapkey()
1309 req_pl->var_len = sizeof(u32); in _ep11_wrapkey()
1311 req_pl->mech_tag = 0x04; in _ep11_wrapkey()
1312 req_pl->mech_len = sizeof(u32) + (iv ? 16 : 0); in _ep11_wrapkey()
1313 req_pl->mech = (mech ? mech : 0x80060001); /* CKM_IBM_CPACF_WRAP */ in _ep11_wrapkey()
1314 p = ((u8 *)req_pl) + sizeof(*req_pl); in _ep11_wrapkey()