|
147 | 147 | }, |
148 | 148 | { |
149 | 149 | "id": "sdk.crypto.aes.11", |
150 | | - "description": "AES-GCM SymmetricKey decrypt: known ciphertext with known key (base64-encoded)", |
| 150 | + "description": "AES-GCM SymmetricKey decrypt: known ciphertext with known key (hex-encoded iv+ciphertext+tag)", |
151 | 151 | "input": { |
152 | 152 | "algorithm": "aes-gcm-symmetrickey", |
153 | | - "ciphertext_b64": "8c8d25348dfd5240be833215a123173c64919779ab8845a700a4520311504c168ade2d4b728cc53a254f0aba857caaf6af97453ac2ff61487d0d52", |
| 153 | + "ciphertext_hex": "8c8d25348dfd5240be833215a123173c64919779ab8845a700a4520311504c168ade2d4b728cc53a254f0aba857caaf6af97453ac2ff61487d0d52", |
154 | 154 | "key": "5a90d59d829197983a54d887fdea2dc4c38098f00ba3110f2645633b6ea11458", |
155 | 155 | "key_encoding": "hex" |
156 | 156 | }, |
157 | 157 | "expected": { "plaintext_utf8": "hello there" }, |
158 | 158 | "tags": ["happy-path", "symmetrickey", "round-trip"] |
| 159 | + }, |
| 160 | + { |
| 161 | + "id": "sdk.crypto.aes.12", |
| 162 | + "description": "AES-GCM encrypt: NIST Test Case 8 — 16-byte zero plaintext, 192-bit zero key", |
| 163 | + "input": { |
| 164 | + "algorithm": "aes-gcm", |
| 165 | + "plaintext": "00000000000000000000000000000000", |
| 166 | + "key": "000000000000000000000000000000000000000000000000", |
| 167 | + "iv": "000000000000000000000000" |
| 168 | + }, |
| 169 | + "expected": { |
| 170 | + "ciphertext": "98e7247c07f0fe411c267e4384b0f600", |
| 171 | + "authentication_tag": "2ff58d80033927ab8ef4d4587514f0fb" |
| 172 | + }, |
| 173 | + "tags": ["happy-path", "nist", "aes-gcm", "aes-192"] |
| 174 | + }, |
| 175 | + { |
| 176 | + "id": "sdk.crypto.aes.13", |
| 177 | + "description": "AES-GCM encrypt: NIST Test Case 9 — 60-byte plaintext, 192-bit key, cafebabe IV", |
| 178 | + "input": { |
| 179 | + "algorithm": "aes-gcm", |
| 180 | + "plaintext": "d9313225f88406e5a55909c5aff5269a86a7a9531534f7da2e4c303d8a318a721c3c0c95956809532fcf0e2449a6b525b16aedf5aa0de657ba637b391aafd255", |
| 181 | + "key": "feffe9928665731c6d6a8f9467308308feffe9928665731c", |
| 182 | + "iv": "cafebabefacedbaddecaf888" |
| 183 | + }, |
| 184 | + "expected": { |
| 185 | + "ciphertext": "3980ca0b3c00e841eb06fac4872a2757859e1ceaa6efd984628593b40ca1e19c7d773d00c144c525ac619d18c84a3f4718e2448b2fe324d9ccda2710acade256", |
| 186 | + "authentication_tag": "9924a7c8587336bfb118024db8674a14" |
| 187 | + }, |
| 188 | + "tags": ["happy-path", "nist", "aes-gcm", "aes-192"] |
| 189 | + }, |
| 190 | + { |
| 191 | + "id": "sdk.crypto.aes.14", |
| 192 | + "description": "AES-128 block encrypt: zero plaintext with zero key", |
| 193 | + "input": { |
| 194 | + "algorithm": "aes-block", |
| 195 | + "plaintext": "00000000000000000000000000000000", |
| 196 | + "key": "00000000000000000000000000000000" |
| 197 | + }, |
| 198 | + "expected": { "ciphertext": "66e94bd4ef8a2c3b884cfa59ca342b2e" }, |
| 199 | + "tags": ["happy-path", "aes-128", "edge-case"] |
| 200 | + }, |
| 201 | + { |
| 202 | + "id": "sdk.crypto.aes.15", |
| 203 | + "description": "AES-128 block encrypt: zero plaintext with sequential key 00..0f", |
| 204 | + "input": { |
| 205 | + "algorithm": "aes-block", |
| 206 | + "plaintext": "00000000000000000000000000000000", |
| 207 | + "key": "000102030405060708090a0b0c0d0e0f" |
| 208 | + }, |
| 209 | + "expected": { "ciphertext": "c6a13b37878f5b826f4f8162a1c8d879" }, |
| 210 | + "tags": ["happy-path", "aes-128"] |
159 | 211 | } |
160 | 212 | ] |
161 | 213 | } |
0 commit comments