1KEY: 404142434445464748494a4b4c4d4e4f 2NONCE: 101112131415161718191a1b1c 3IN: 20212223 4AD: 0001020304050607 5CT: 69915dad 6TAG: 064617ca 7 8KEY: 404142434445464748494a4b4c4d4e4f 9NONCE: 101112131415161718191a1b1c 10IN: 202122232425262728292a2b2c2d2e2f 11AD: 0001020304050607 12CT: 69915dad1e84c6376a68c2967e4dab61 13TAG: 99763ebb 14 15KEY: 404142434445464748494a4b4c4d4e4f 16NONCE: 101112131415161718191a1b1c 17IN: 202122232425262728292a2b2c2d2e2f 18AD: 19CT: 69915dad1e84c6376a68c2967e4dab61 20TAG: c4630026 21 22# From the Bluetooth Mesh Profile Specification v1.0. 23# 24# The relevant AES-CCM calls are: 25# 26# KEY: EncryptionKey 27# NONCE: Network Nonce 28# IN: DST || TransportPDU 29# AD: (none) 30# CT: EncTransportPDU 31# TAG: NetMIC 32# 33# KEY: DevKey if present, otherwise AppKey 34# NONCE: Application Nonce 35# IN: Access Payload 36# AD: Label UUID, if present 37# CT: EncAccessPayload 38# TAG: TransMIC 39 40# Section 8.3.6. 41KEY: 9d6dd0e96eb25dc19a40ed9914f8f03f 42NONCE: 02003129ab0003120112345678 43IN: 0056341263964771734fbd76e3b40519d1d94a48 44AD: 45CT: ee9dddfd2169326d23f3afdfcfdc18c52fdef772 46TAG: e0e17308 47 48KEY: 0953fa93e7caac9638f58820220a398e 49NONCE: 00043129ab0003000012345678 50IN: 12018026ac01ee9dddfd2169326d23f3afdf 51AD: 52CT: 0afba8c63d4e686364979deaf4fd40961145 53TAG: 939cda0e 54 55KEY: 0953fa93e7caac9638f58820220a398e 56NONCE: 00043129ac0003000012345678 57IN: 12018026ac21cfdc18c52fdef772e0e17308 58AD: 59CT: 6cae0c032bf0746f44f1b8cc8ce5edc57e55 60TAG: beed49c0 61 62# Section 8.3.8. 63KEY: 0953fa93e7caac9638f58820220a398e 64NONCE: 00043129ad0003000012345678 65IN: 12018026ac01ee9dddfd2169326d23f3afdf 66AD: 67CT: 0e2f91add6f06e66006844cec97f973105ae 68TAG: 2534f958 69 70# Section 8.3.11. 71KEY: be635105434859f484fc798e043ce40e 72NONCE: 00033129ad0003000012345678 73IN: 1201c026ac01ee9dddfd2169326d23f3afdf 74AD: 75CT: d5e748a20ecfd98ddfd32de80befb400213d 76TAG: 113813b5 77 78# Section 8.3.13's test vector is identical to 8.3.11. 79 80# Section 8.3.15. 81KEY: be635105434859f484fc798e043ce40e 82NONCE: 00033129ac0003000012345678 83IN: 12018026ac21cfdc18c52fdef772e0e17308 84AD: 85CT: f1d29805664d235eacd707217dedfe78497f 86TAG: efec7391 87 88# Section 8.3.16. 89KEY: 9d6dd0e96eb25dc19a40ed9914f8f03f 90NONCE: 02000000061201000312345678 91IN: 800300563412 92AD: 93CT: 89511bf1d1a8 94TAG: 1c11dcef 95 96KEY: 0953fa93e7caac9638f58820220a398e 97NONCE: 000b0000061201000012345678 98IN: 00030089511bf1d1a81c11dcef 99AD: 100CT: 6b9be7f5a642f2f98680e61c3a 101TAG: 8b47f228 102 103# Section 8.3.17's test vector is identical to 8.3.16. 104 105# Section 8.3.18. 106KEY: 63964771734fbd76e3b40519d1d94a48 107NONCE: 01000000071201ffff12345678 108IN: 0400000000 109AD: 110CT: 5a8bde6d91 111TAG: 06ea078a 112 113KEY: 0953fa93e7caac9638f58820220a398e 114NONCE: 00030000071201000012345678 115IN: ffff665a8bde6d9106ea078a 116AD: 117CT: 5673728a627fb938535508e2 118TAG: 1a6baf57 119 120# Section 8.3.19. 121KEY: 63964771734fbd76e3b40519d1d94a48 122NONCE: 01000000091201ffff12345678 123IN: 04000000010703 124AD: 125CT: ca6cd88e698d12 126TAG: 65f43fc5 127 128KEY: 0953fa93e7caac9638f58820220a398e 129NONCE: 00030000091201000012345678 130IN: ffff66ca6cd88e698d1265f43fc5 131AD: 132CT: 3010a05e1b23a926023da75d25ba 133TAG: 91793736 134 135# Section 8.3.20. 136KEY: 63964771734fbd76e3b40519d1d94a48 137NONCE: 01000708091234ffff12345677 138IN: 04000000010703 139AD: 140CT: 9c9803e110fea9 141TAG: 29e9542d 142 143KEY: 0953fa93e7caac9638f58820220a398e 144NONCE: 00030708091234000012345677 145IN: ffff669c9803e110fea929e9542d 146AD: 147CT: 8c3dc87344a16c787f6b08cc897c 148TAG: 941a5368 149 150# Section 8.3.21. 151KEY: 63964771734fbd76e3b40519d1d94a48 152NONCE: 010007080a1234810512345677 153IN: d50a0048656c6c6f 154AD: 155CT: 2fa730fd98f6e4bd 156TAG: 120ea9d6 157 158KEY: 0953fa93e7caac9638f58820220a398e 159NONCE: 000307080a1234000012345677 160IN: 8105662fa730fd98f6e4bd120ea9d6 161AD: 162CT: e4d611358eaf17796a6c98977f69e5 163TAG: 872c4620 164 165# Section 8.3.22. 166KEY: 63964771734fbd76e3b40519d1d94a48 167NONCE: 010007080b1234b52912345677 168IN: d50a0048656c6c6f 169AD: 0073e7e4d8b9440faf8415df4c56c0e1 170CT: 3871b904d4315263 171TAG: 16ca48a0 172 173KEY: 0953fa93e7caac9638f58820220a398e 174NONCE: 000307080b1234000012345677 175IN: b529663871b904d431526316ca48a0 176AD: 177CT: ed31f3fdcf88a411135fea55df730b 178TAG: 6b28e255 179 180# Section 8.3.23. 181KEY: 63964771734fbd76e3b40519d1d94a48 182NONCE: 010007080c1234973612345677 183IN: d50a0048656c6c6f 184AD: f4a002c7fb1e4ca0a469a021de0db875 185CT: 2456db5e3100eef6 186TAG: 5daa7a38 187 188KEY: 0953fa93e7caac9638f58820220a398e 189NONCE: 000307080c1234000012345677 190IN: 9736662456db5e3100eef65daa7a38 191AD: 192CT: 7a9d696d3dd16a75489696f0b70c71 193TAG: 1b881385 194 195# Section 8.3.24. 196KEY: 0953fa93e7caac9638f58820220a398e 197NONCE: 000307080d1234000012345677 198IN: 9736e6a03401de1547118463123e5f6a17b9 199AD: 200CT: 94e998b4081f5a7308ce3edbb3b06cdecd02 201TAG: 8e307f1c 202 203KEY: 0953fa93e7caac9638f58820220a398e 204NONCE: 000307080e1234000012345677 205IN: 9736e6a034219dbca387 206AD: 207CT: dc2f4dd6fb4d32870129 208TAG: 1be4aafe 209