Lines Matching refs:req_pl

596 	} __packed * req_pl;  in ep11_query_info()  local
615 req_pl = (struct ep11_info_req_pl *)(((u8 *)req) + sizeof(*req)); in ep11_query_info()
616 prep_head(&req_pl->head, sizeof(*req_pl), api, 38); /* get xcp info */ in ep11_query_info()
617 req_pl->query_type_tag = 0x04; in ep11_query_info()
618 req_pl->query_type_len = sizeof(u32); in ep11_query_info()
619 req_pl->query_type = query_type; in ep11_query_info()
620 req_pl->query_subtype_tag = 0x04; in ep11_query_info()
621 req_pl->query_subtype_len = sizeof(u32); in ep11_query_info()
636 req, sizeof(*req) + sizeof(*req_pl), in ep11_query_info()
812 } __packed * req_pl; in _ep11_genaeskey() local
857 req_pl = (struct keygen_req_pl *)(((u8 *)req) + sizeof(*req)); in _ep11_genaeskey()
858 prep_head(&req_pl->head, req_pl_size, api, 21); /* GenerateKey */ in _ep11_genaeskey()
859 req_pl->var_tag = 0x04; in _ep11_genaeskey()
860 req_pl->var_len = sizeof(u32); in _ep11_genaeskey()
861 req_pl->keybytes_tag = 0x04; in _ep11_genaeskey()
862 req_pl->keybytes_len = sizeof(u32); in _ep11_genaeskey()
863 req_pl->keybytes = keybitsize / 8; in _ep11_genaeskey()
864 req_pl->mech_tag = 0x04; in _ep11_genaeskey()
865 req_pl->mech_len = sizeof(u32); in _ep11_genaeskey()
866 req_pl->mech = 0x00001080; /* CKM_AES_KEY_GEN */ in _ep11_genaeskey()
867 req_pl->attr_tag = 0x04; in _ep11_genaeskey()
868 req_pl->attr_len = 5 * sizeof(u32); in _ep11_genaeskey()
869 req_pl->attr_header = 0x10010000; in _ep11_genaeskey()
870 req_pl->attr_bool_mask = keygenflags ? keygenflags : KEY_ATTR_DEFAULTS; in _ep11_genaeskey()
871 req_pl->attr_bool_bits = keygenflags ? keygenflags : KEY_ATTR_DEFAULTS; in _ep11_genaeskey()
872 req_pl->attr_val_len_type = 0x00000161; /* CKA_VALUE_LEN */ in _ep11_genaeskey()
873 req_pl->attr_val_len_value = keybitsize / 8; in _ep11_genaeskey()
874 p = ((u8 *)req_pl) + sizeof(*req_pl); in _ep11_genaeskey()
991 } __packed * req_pl; in ep11_cryptsingle() local
1018 req_pl = (struct crypt_req_pl *)(((u8 *)req) + sizeof(*req)); in ep11_cryptsingle()
1019 prep_head(&req_pl->head, req_pl_size, api, (mode ? 20 : 19)); in ep11_cryptsingle()
1020 req_pl->var_tag = 0x04; in ep11_cryptsingle()
1021 req_pl->var_len = sizeof(u32); in ep11_cryptsingle()
1023 req_pl->mech_tag = 0x04; in ep11_cryptsingle()
1024 req_pl->mech_len = sizeof(u32) + (iv ? 16 : 0); in ep11_cryptsingle()
1025 req_pl->mech = (mech ? mech : 0x00001085); /* CKM_AES_CBC_PAD */ in ep11_cryptsingle()
1026 p = ((u8 *)req_pl) + sizeof(*req_pl); in ep11_cryptsingle()
1132 } __packed * req_pl; in _ep11_unwrapkey() local
1167 req_pl = (struct uw_req_pl *)(((u8 *)req) + sizeof(*req)); in _ep11_unwrapkey()
1168 prep_head(&req_pl->head, req_pl_size, api, 34); /* UnwrapKey */ in _ep11_unwrapkey()
1169 req_pl->attr_tag = 0x04; in _ep11_unwrapkey()
1170 req_pl->attr_len = 7 * sizeof(u32); in _ep11_unwrapkey()
1171 req_pl->attr_header = 0x10020000; in _ep11_unwrapkey()
1172 req_pl->attr_bool_mask = keygenflags ? keygenflags : KEY_ATTR_DEFAULTS; in _ep11_unwrapkey()
1173 req_pl->attr_bool_bits = keygenflags ? keygenflags : KEY_ATTR_DEFAULTS; in _ep11_unwrapkey()
1174 req_pl->attr_key_type = 0x00000100; /* CKA_KEY_TYPE */ in _ep11_unwrapkey()
1175 req_pl->attr_key_type_value = 0x0000001f; /* CKK_AES */ in _ep11_unwrapkey()
1176 req_pl->attr_val_len = 0x00000161; /* CKA_VALUE_LEN */ in _ep11_unwrapkey()
1177 req_pl->attr_val_len_value = keybitsize / 8; in _ep11_unwrapkey()
1179 req_pl->mech_tag = 0x04; in _ep11_unwrapkey()
1180 req_pl->mech_len = sizeof(u32) + (iv ? 16 : 0); in _ep11_unwrapkey()
1181 req_pl->mech = (mech ? mech : 0x00001085); /* CKM_AES_CBC_PAD */ in _ep11_unwrapkey()
1182 p = ((u8 *)req_pl) + sizeof(*req_pl); in _ep11_unwrapkey()
1309 } __packed * req_pl; in _ep11_wrapkey() local
1335 req_pl = (struct wk_req_pl *)(((u8 *)req) + sizeof(*req)); in _ep11_wrapkey()
1338 prep_head(&req_pl->head, req_pl_size, api, 33); /* WrapKey */ in _ep11_wrapkey()
1339 req_pl->var_tag = 0x04; in _ep11_wrapkey()
1340 req_pl->var_len = sizeof(u32); in _ep11_wrapkey()
1342 req_pl->mech_tag = 0x04; in _ep11_wrapkey()
1343 req_pl->mech_len = sizeof(u32) + (iv ? 16 : 0); in _ep11_wrapkey()
1344 req_pl->mech = (mech ? mech : 0x80060001); /* CKM_IBM_CPACF_WRAP */ in _ep11_wrapkey()
1345 p = ((u8 *)req_pl) + sizeof(*req_pl); in _ep11_wrapkey()