@@ -315,11 +315,11 @@ def test_cose_usage_examples_cose_encrypt0_hpke(self):
315315 },
316316 unprotected = {
317317 4 : b"01" , # kid: "01"
318- - 4 : { # HPKE sender information
319- 1 : 0x0010 , # kem: DHKEM(P-256, HKDF-SHA256)
320- 2 : 0x0001 , # kdf: HKDF-SHA256
321- 3 : 0x0001 , # aead: AES-128-GCM
322- } ,
318+ - 4 : [ # HPKE sender information
319+ 0x0010 , # kem: DHKEM(P-256, HKDF-SHA256)
320+ 0x0001 , # kdf: HKDF-SHA256
321+ 0x0001 , # aead: AES-128-GCM
322+ ] ,
323323 },
324324 )
325325
@@ -391,11 +391,11 @@ def test_cose_usage_examples_cose_encrypt_hpke(self):
391391 },
392392 unprotected = {
393393 4 : b"01" , # kid: "01"
394- - 4 : { # HPKE sender information
395- 1 : 0x0010 , # kem: DHKEM(P-256, HKDF-SHA256)
396- 2 : 0x0001 , # kdf: HKDF-SHA256
397- 3 : 0x0001 , # aead: AES-128-GCM
398- } ,
394+ - 4 : [ # HPKE sender information
395+ 0x0010 , # kem: DHKEM(P-256, HKDF-SHA256)
396+ 0x0001 , # kdf: HKDF-SHA256
397+ 0x0001 , # aead: AES-128-GCM
398+ ] ,
399399 },
400400 recipient_key = rpk ,
401401 )
@@ -440,11 +440,11 @@ def test_cose_usage_examples_cose_encrypt_hpke_with_1st_layer_hpke(self):
440440 },
441441 unprotected = {
442442 4 : b"01" , # kid: "01"
443- - 4 : { # HPKE sender information
444- 1 : 0x0010 , # kem: DHKEM(P-256, HKDF-SHA256)
445- 2 : 0x0001 , # kdf: HKDF-SHA256
446- 3 : 0x0001 , # aead: AES-128-GCM
447- } ,
443+ - 4 : [ # HPKE sender information
444+ 0x0010 , # kem: DHKEM(P-256, HKDF-SHA256)
445+ 0x0001 , # kdf: HKDF-SHA256
446+ 0x0001 , # aead: AES-128-GCM
447+ ] ,
448448 },
449449 recipient_key = rpk ,
450450 )
@@ -457,11 +457,11 @@ def test_cose_usage_examples_cose_encrypt_hpke_with_1st_layer_hpke(self):
457457 },
458458 unprotected = {
459459 4 : b"xx" , # kid: "xx"
460- - 4 : { # HPKE sender information
461- 1 : 0x0010 , # kem: DHKEM(P-256, HKDF-SHA256)
462- 2 : 0x0001 , # kdf: HKDF-SHA256
463- 3 : 0x0001 , # aead: AES-128-GCM
464- } ,
460+ - 4 : [ # HPKE sender information
461+ 0x0010 , # kem: DHKEM(P-256, HKDF-SHA256)
462+ 0x0001 , # kdf: HKDF-SHA256
463+ 0x0001 , # aead: AES-128-GCM
464+ ] ,
465465 },
466466 recipients = [r ],
467467 )
@@ -486,11 +486,11 @@ def test_cose_usage_examples_cose_encrypt_hpke_with_nonce(self):
486486 },
487487 unprotected = {
488488 4 : b"01" , # kid: "01"
489- - 4 : { # HPKE sender information
490- 1 : 0x0010 , # kem: DHKEM(P-256, HKDF-SHA256)
491- 2 : 0x0001 , # kdf: HKDF-SHA256
492- 3 : 0x0001 , # aead: AES-128-GCM
493- } ,
489+ - 4 : [ # HPKE sender information
490+ 0x0010 , # kem: DHKEM(P-256, HKDF-SHA256)
491+ 0x0001 , # kdf: HKDF-SHA256
492+ 0x0001 , # aead: AES-128-GCM
493+ ] ,
494494 },
495495 recipient_key = rpk ,
496496 )
@@ -503,11 +503,11 @@ def test_cose_usage_examples_cose_encrypt_hpke_with_nonce(self):
503503 },
504504 unprotected = {
505505 4 : b"xx" , # kid: "xx"
506- - 4 : { # HPKE sender information
507- 1 : 0x0010 , # kem: DHKEM(P-256, HKDF-SHA256)
508- 2 : 0x0001 , # kdf: HKDF-SHA256
509- 3 : 0x0001 , # aead: AES-128-GCM
510- } ,
506+ - 4 : [ # HPKE sender information
507+ 0x0010 , # kem: DHKEM(P-256, HKDF-SHA256)
508+ 0x0001 , # kdf: HKDF-SHA256
509+ 0x0001 , # aead: AES-128-GCM
510+ ] ,
511511 },
512512 recipients = [r ],
513513 )
0 commit comments