66Documentation General tests for CMP logic, not necessarily specific to the lightweight profile
77
88Resource ../resources/keywords.resource
9+ Resource ../resources/setup_keywords.resource
910Library Collections
1011Library OperatingSystem
1112Library ../resources/utils.py
@@ -22,7 +23,7 @@ Library ../pq_logic/pq_verify_logic.py
2223
2324Test Tags kem pqc
2425
25- Suite Setup Set Up Test Suite
26+ Suite Setup Set Up PQ KEM Suite
2627
2728
2829*** Keywords ***
@@ -107,12 +108,12 @@ CA MUST support KEMBasedMAC
107108 ${result } = Is Certificate And Key Set ${KEM_CERT } ${KEM_KEY }
108109 SKIP IF not ${result } KEM Certificate and Key not set
109110 ${genm } = Build KEMBasedMAC General Message ${KEM_KEY } ${KEM_CERT }
110- ${genp } = Exchange PKIMessage PQ ${genm }
111+ ${genp } = Exchange PKIMessage ${genm }
111112 ${ss } = Validate Genp KEMCiphertextInfo ${genp } ${KEM_KEY }
112113 ${tx_id } = Get Asn1 Value As Bytes ${genm } header.transactionID
113114 ${protected_ir } = Build IR Request KEMBasedMac Protected
114115 ... ${tx_id } ${ss } True
115- ${response } = Exchange PKIMessage PQ ${protected_ir }
116+ ${response } = Exchange PKIMessage ${protected_ir }
116117 PKIStatus Must Be ${response } accepted
117118
118119CA MUST Support KEMBasedMAC Until Certificate Is Confirmed
@@ -126,17 +127,17 @@ CA MUST Support KEMBasedMAC Until Certificate Is Confirmed
126127 ${result } = Is Certificate And Key Set ${KEM_CERT } ${KEM_KEY }
127128 SKIP IF not ${result } KEM Certificate and Key not set
128129 ${genm } = Build KEMBasedMAC General Message ${KEM_KEY } ${KEM_CERT }
129- ${genp } = Exchange PKIMessage PQ ${genm }
130+ ${genp } = Exchange PKIMessage ${genm }
130131 ${ss } = Validate Genp KEMCiphertextInfo ${genp } ${KEM_KEY }
131132 ${tx_id } = Get Asn1 Value As Bytes ${genm } header.transactionID
132133 ${protected_ir } = Build IR Request KEMBasedMac Protected
133134 ... ${tx_id } ${ss } True
134- ${response } = Exchange PKIMessage PQ ${protected_ir }
135+ ${response } = Exchange PKIMessage ${protected_ir }
135136 PKIStatus Must Be ${response } accepted
136137 ${cert_conf } = Build Cert Conf From Resp ${response } sender=${SENDER }
137138 ... recipient=${RECIPIENT } for_mac=True
138139 ${cert_conf } = Protect PKIMessage KEMBasedMAC ${cert_conf } shared_secret=${ss }
139- ${response } = Exchange PKIMessage PQ ${cert_conf }
140+ ${response } = Exchange PKIMessage ${cert_conf }
140141 PKIMessage Body Type Must Be ${response } pkiconf
141142
142143CA Should Respond with the a valid KEMBasedMAC Protected Message
@@ -149,12 +150,12 @@ CA Should Respond with the a valid KEMBasedMAC Protected Message
149150 ${result } = Is Certificate And Key Set ${KEM_CERT } ${KEM_KEY }
150151 SKIP IF not ${result } KEM Certificate and Key not set
151152 ${genm } = Build KEMBasedMAC General Message ${KEM_KEY } ${KEM_CERT }
152- ${genp } = Exchange PKIMessage PQ ${genm }
153+ ${genp } = Exchange PKIMessage ${genm }
153154 ${ss } = Validate Genp KEMCiphertextInfo ${genp } ${KEM_KEY }
154155 ${tx_id } = Get Asn1 Value As Bytes ${genm } header.transactionID
155156 ${protected_ir } = Build IR Request KEMBasedMac Protected
156157 ... ${tx_id } ${ss } True
157- ${response } = Exchange PKIMessage PQ ${protected_ir }
158+ ${response } = Exchange PKIMessage ${protected_ir }
158159 PKIStatus Must Be ${response } accepted
159160 ${prot_type } = Get Protection Type From PKIMessage ${response }
160161 IF not '${prot_type } ' == 'kem_based_mac'
@@ -173,17 +174,17 @@ CA MUST Protect pkiconf message with KEMBasedMAC
173174 ${result } = Is Certificate And Key Set ${KEM_CERT } ${KEM_KEY }
174175 SKIP IF not ${result } KEM Certificate and Key not set
175176 ${genm } = Build KEMBasedMAC General Message ${KEM_KEY } ${KEM_CERT }
176- ${genp } = Exchange PKIMessage PQ ${genm }
177+ ${genp } = Exchange PKIMessage ${genm }
177178 ${ss } = Validate Genp KEMCiphertextInfo ${genp } ${KEM_KEY }
178179 ${tx_id } = Get Asn1 Value As Bytes ${genm } header.transactionID
179180 ${protected_ir } = Build IR Request KEMBasedMac Protected
180181 ... ${tx_id } ${ss } True
181- ${response } = Exchange PKIMessage PQ ${protected_ir }
182+ ${response } = Exchange PKIMessage ${protected_ir }
182183 PKIStatus Must Be ${response } accepted
183184 ${cert_conf } = Build Cert Conf From Resp ${response } sender=${SENDER }
184185 ... recipient=${RECIPIENT } for_mac=True
185186 ${cert_conf } = Protect PKIMessage KEMBasedMAC ${cert_conf } shared_secret=${ss }
186- ${response } = Exchange PKIMessage PQ ${cert_conf }
187+ ${response } = Exchange PKIMessage ${cert_conf }
187188 PKIMessage Body Type Must Be ${response } pkiconf
188189 ${prot_type } = Get Protection Type From PKIMessage ${response }
189190 IF not '${prot_type } ' == 'kem_based_mac'
@@ -201,12 +202,12 @@ CA Reject invalid KEMBasedMAC Protected Message
201202 ${result } = Is Certificate And Key Set ${KEM_CERT } ${KEM_KEY }
202203 SKIP IF not ${result } KEM Certificate and Key not set
203204 ${genm } = Build KEMBasedMAC General Message ${KEM_KEY } ${KEM_CERT }
204- ${genp } = Exchange PKIMessage PQ ${genm }
205+ ${genp } = Exchange PKIMessage ${genm }
205206 ${ss } = Validate Genp KEMCiphertextInfo ${genp } ${KEM_KEY }
206207 ${tx_id } = Get Asn1 Value As Bytes ${genm } header.transactionID
207208 ${protected_ir } = Build IR Request KEMBasedMac Protected
208209 ... ${tx_id } ${ss } True ${None } True
209- ${response } = Exchange PKIMessage PQ ${protected_ir }
210+ ${response } = Exchange PKIMessage ${protected_ir }
210211 PKIStatus Must Be ${response } rejection
211212 PKIStatusInfo Failinfo Bit Must Be ${response } badMessageCheck
212213
@@ -222,17 +223,17 @@ CA MUST not reuse the same ss for KEMBASEDMAC
222223 ${url } = Get PQ Issuing URL
223224 ${cm } = Get Next Common Name
224225 ${genm } = Build KEMBasedMAC General Message ${KEM_KEY } ${KEM_CERT }
225- ${genp } = Exchange PKIMessage PQ ${genm }
226+ ${genp } = Exchange PKIMessage ${genm }
226227 ${ss } = Validate Genp KEMCiphertextInfo ${genp } ${KEM_KEY }
227228 ${key } = Generate Default Key
228229 ${tx_id } = Get Asn1 Value As Bytes ${genm } header.transactionID
229230 ${protected_ir } = Build IR Request KEMBasedMac Protected
230231 ... ${tx_id } ${ss } True ${None }
231- ${response } = Exchange PKIMessage PQ ${protected_ir }
232+ ${response } = Exchange PKIMessage ${protected_ir }
232233 PKIStatus Must Be ${response } accepted
233234 ${protected_ir } = Build IR Request KEMBasedMac Protected
234235 ... ${tx_id } ${ss } True ${None }
235- ${response } = Exchange PKIMessage PQ ${protected_ir }
236+ ${response } = Exchange PKIMessage ${protected_ir }
236237 PKIStatus Must Be ${response } rejection
237238 PKIStatusInfo Failinfo Bit Must Be ${response } badMessageCheck,badRequest,systemFailure
238239
0 commit comments