Skip to content

Latest commit

 

History

History
380 lines (344 loc) · 10.7 KB

test-vectors.md

File metadata and controls

380 lines (344 loc) · 10.7 KB

AES_CTR_128_HMAC_SHA256_4

CipherSuite:    0x01
Base Key:       101112131415161718191a1b1c1d1e1f
Key:            343d3290f5c0b936415bea9a43c6f5a2
Salt:           42d662fbad5cd81eb3aad79a
Plaintext:      46726f6d2068656176656e6c79206861
                726d6f6e79202f2f205468697320756e
                6976657273616c206672616d65206265
                67616e
KID:            0x7
CTR:            0x0
Header:         1700
Nonce:          42d662fbad5cd81eb3aad79a
Ciphertext:     1700c5095af9dbbbed6a952de114ea7b
                42768509f1ffc9749abb1e95bf4514d8
                d82a0eef4b5ecac16fa193977fa1aa1c
                9fa5c7e73093ab2a43
KID:            0x7
CTR:            0x1
Header:         1701
Nonce:          42d662fbad5cd81eb3aad79b
Ciphertext:     1701559e262525382885c6c93be8f61a
                9064db2dd1e1e96ab1dbd829ca4af4f4
                5f2b97a4889217a3f8a2159fb8201b7d
                71db01702bd4bab5c7
KID:            0x7
CTR:            0x2
Header:         1702
Nonce:          42d662fbad5cd81eb3aad798
Ciphertext:     17020a8f21e052eaa09e50da0a909d15
                6cc55b9ef2f2abbcca765f7af3cfb1af
                234e3eac1dbc376631c83cf1ff1f8ab3
                39dbc41044cc930d87
KID:            0xf
CTR:            0xaa
Header:         190faa
Nonce:          42d662fbad5cd81eb3aad730
Ciphertext:     190faa9c65aa5b167873f25827f17bc3
                4879a4aaa6b38dd9584472e1849d5da5
                1555f288d08f03166a5f26af01794006
                255c88b58986246287c9
KID:            0x1ff
CTR:            0xaa
Header:         1a01ffaa
Nonce:          42d662fbad5cd81eb3aad730
Ciphertext:     1a01ffaa9c65aa5b167873f25827f17b
                c34879a4aaa6b38dd9584472e1849d5d
                a51555f288d08f03166a5f26af017940
                06255c88b589863003872e
KID:            0x1ff
CTR:            0xaaaa
Header:         2a01ffaaaa
Nonce:          42d662fbad5cd81eb3aa7d30
Ciphertext:     2a01ffaaaa990cbeb4ae2e3a76be8bb9
                54b62591e791d0fa53c0553bc1d1e021
                d270b1a10688cd89195203b019789253
                73b04f9c08c3a4e5fb0173ef
KID:            0xffffffffffffff
CTR:            0xffffffffffffff
Header:         7fffffffffffffffffffffffffffff
Nonce:          42d662fbada327e14c552865
Ciphertext:     7fffffffffffffffffffffffffffff41
                2c43c8077c286f7df3dd9988d1bd033f
                1067493e09421e5bfc363e50a3c803b4
                da9239514cb924dbcb5f33e33112083e
                99103ef272e8

AES_CTR_128_HMAC_SHA256_8

CipherSuite:    0x02
Base Key:       202122232425262728292a2b2c2d2e2f
Key:            3fce747d505e46ec9b92d9f58ee7a5d4
Salt:           77fbf5f1d82c73f6d2b353c9
Plaintext:      46726f6d2068656176656e6c79206861
                726d6f6e79202f2f205468697320756e
                6976657273616c206672616d65206265
                67616e
KID:            0x7
CTR:            0x0
Header:         1700
Nonce:          77fbf5f1d82c73f6d2b353c9
Ciphertext:     17009d89e5753e06edf3025f1ccd70b0
                95ebaf10c250e11da740f50f57b6ce86
                0d7321dfa49688a2cd6c6d9a71ae9d5c
                14ad0978efe0216ae5f6788ffe
KID:            0x7
CTR:            0x1
Header:         1701
Nonce:          77fbf5f1d82c73f6d2b353c8
Ciphertext:     1701becd2e9d10e3eed586491b3e0ece
                dba89407ae2151787c5117b55707d6b8
                a0754f4dc937e30ebdf7cafbd3769d65
                85d7991b1aa6f36e418fdec6fa
KID:            0x7
CTR:            0x2
Header:         1702
Nonce:          77fbf5f1d82c73f6d2b353cb
Ciphertext:     170298508be6b16d034f15b504ced45a
                86d1bb43ed7cd3a62bf25557d1b082b0
                4e8e6ba6fe76160835dd8953e1be9640
                c988627ea4f1bb846e87523f8b
KID:            0xf
CTR:            0xaa
Header:         190faa
Nonce:          77fbf5f1d82c73f6d2b35363
Ciphertext:     190faae7eec4b0556ddfb8068998351c
                d670ce95f0ce9cd4c6dca2eeee73fb14
                d20a0d0fd487337ed43fa7f98dad0995
                b8b870325aa349ac0590c2745d5d
KID:            0x1ff
CTR:            0xaa
Header:         1a01ffaa
Nonce:          77fbf5f1d82c73f6d2b35363
Ciphertext:     1a01ffaae7eec4b0556ddfb806899835
                1cd670ce95f0ce9cd4c6dca2eeee73fb
                14d20a0d0fd487337ed43fa7f98dad09
                95b8b870325aa31d576e8a34093320
KID:            0x1ff
CTR:            0xaaaa
Header:         2a01ffaaaa
Nonce:          77fbf5f1d82c73f6d2b3f963
Ciphertext:     2a01ffaaaa8c1789aa0abcd6abc27006
                aae4df5cba4ba07f8113080e9726baac
                d16c18539974a6204a36b9dc3dcd36ed
                9ab48e590d95d4ad1b05f8375508c55d
KID:            0xffffffffffffff
CTR:            0xffffffffffffff
Header:         7fffffffffffffffffffffffffffff
Nonce:          77fbf5f1d8d38c092d4cac36
Ciphertext:     7fffffffffffffffffffffffffffffa9
                bc6c7edde0fdfd13255a5b145c5ce84d
                b8f8960858eb998b8ea8f3e770160150
                813c5806441b64251bdd2be9e8cec138
                6b6f5e73eaa6c19e6555

AES_GCM_128_SHA256

CipherSuite:    0x03
Base Key:       303132333435363738393a3b3c3d3e3f
Key:            2ea2e8163ff56c0613e6fa9f20a213da
Salt:           a80478b3f6fba19983d540d5
Plaintext:      46726f6d2068656176656e6c79206861
                726d6f6e79202f2f205468697320756e
                6976657273616c206672616d65206265
                67616e
KID:            0x7
CTR:            0x0
Header:         1700
Nonce:          a80478b3f6fba19983d540d5
Ciphertext:     17000e426255e47ed70dd7d15d69d759
                bf459032ca15f5e8b2a91e7d348aa7c1
                86d403f620801c495b1717a35097411a
                a97cbb140671eb3b49ac3775926db74d
                57b91e8e6c
KID:            0x7
CTR:            0x1
Header:         1701
Nonce:          a80478b3f6fba19983d540d4
Ciphertext:     170103bbafa34ada8a6b9f2066bc34a1
                959d87384c9f4b1ce34fed58e938bde1
                43393910b1aeb55b48d91d5b0db3ea67
                e3d0e02b843afd41630c940b1948e72d
                d45396a43a
KID:            0x7
CTR:            0x2
Header:         1702
Nonce:          a80478b3f6fba19983d540d7
Ciphertext:     170258d58adebd8bf6f3cc0c1fcacf34
                ba4d7a763b2683fe302a57f1be7f2a27
                4bf81b2236995fec1203cadb146cd402
                e1c52d5e6a10989dfe0f4116da1ee4c2
                fad0d21f8f
KID:            0xf
CTR:            0xaa
Header:         190faa
Nonce:          a80478b3f6fba19983d5407f
Ciphertext:     190faad0b1743bf5248f90869c945636
                6d55724d16bbe08060875815565e90b1
                14f9ccbdba192422b33848a1ae1e3bd2
                66a001b2f5bb727112772e0072ea8679
                ca1850cf11d8
KID:            0x1ff
CTR:            0xaa
Header:         1a01ffaa
Nonce:          a80478b3f6fba19983d5407f
Ciphertext:     1a01ffaad0b1743bf5248f90869c9456
                366d55724d16bbe08060875815565e90
                b114f9ccbdba192422b33848a1ae1e3b
                d266a001b2f5bbc9c63bd3973c19bd57
                127f565380ed4a
KID:            0x1ff
CTR:            0xaaaa
Header:         2a01ffaaaa
Nonce:          a80478b3f6fba19983d5ea7f
Ciphertext:     2a01ffaaaa9de65e21e4f1ca2247b879
                43c03c5cb7b182090e93d508dcfb76e0
                8174c6397356e682d2eaddabc0b3c101
                8d2c13c3570f61c1beaab805f27b565e
                1329a823a7a649b6
KID:            0xffffffffffffff
CTR:            0xffffffffffffff
Header:         7fffffffffffffffffffffffffffff
Nonce:          a80478b3f6045e667c2abf2a
Ciphertext:     7fffffffffffffffffffffffffffff09
                981bdcdad80e380b6f74cf6afdbce946
                839bedadd57578bfcd809dbcea535546
                cc24660613d2761adea852155785011e
                633534f4ecc3b8257c8d34321c27854a
                1422

AES_GCM_256_SHA512

CipherSuite:    0x04
Base Key:       404142434445464748494a4b4c4d4e4f
                505152535455565758595a5b5c5d5e5f
Key:            436774b0b5ae45633d96547f8f3cb06c
                8e6628eff2e4255b5c4d77e721aa3355
Salt:           31ed26f90a072e6aee646298
Plaintext:      46726f6d2068656176656e6c79206861
                726d6f6e79202f2f205468697320756e
                6976657273616c206672616d65206265
                67616e
KID:            0x7
CTR:            0x0
Header:         1700
Nonce:          31ed26f90a072e6aee646298
Ciphertext:     1700f3e297c1e95207710bd31ccc4ba3
                96fbef7b257440bde638ff0f3c891154
                0136df61b26220249d6c432c245ae8d5
                5ef45bfccf32530a15aeaaf313a03838
                e51bd45652
KID:            0x7
CTR:            0x1
Header:         1701
Nonce:          31ed26f90a072e6aee646299
Ciphertext:     170193268b0bf030071bff443bb6b447
                1bdfb1cc81bc9625f4697b0336ff4665
                d15f152f02169448d8a967fb06359a87
                d2145398de0ce3fbe257b0992a3da153
                7590459f3c
KID:            0x7
CTR:            0x2
Header:         1702
Nonce:          31ed26f90a072e6aee64629a
Ciphertext:     1702649691ba27c4c01a41280fba4657
                c03fa7fe21c8f5c862e9094227c3ca3e
                c0d9468b1a2cb060ff0978f25a24e6b1
                06f5a6e1053c1b8f5fce794d88a0e481
                8c081e18ea
KID:            0xf
CTR:            0xaa
Header:         190faa
Nonce:          31ed26f90a072e6aee646232
Ciphertext:     190faa2858c10b5ddd231c1f26819490
                521678603a050448d563c503b1fd890d
                02ead01d754f074ecb6f32da9b2f3859
                f380b4f47d4edd1e15f42f9a2d7ecfac
                99067e238321
KID:            0x1ff
CTR:            0xaa
Header:         1a01ffaa
Nonce:          31ed26f90a072e6aee646232
Ciphertext:     1a01ffaa2858c10b5ddd231c1f268194
                90521678603a050448d563c503b1fd89
                0d02ead01d754f074ecb6f32da9b2f38
                59f380b4f47d4e3bf7040eb10ec25b81
                26b2ce7b1d9d31
KID:            0x1ff
CTR:            0xaaaa
Header:         2a01ffaaaa
Nonce:          31ed26f90a072e6aee64c832
Ciphertext:     2a01ffaaaad9bc6a258a07d210a814d5
                45eca70321c0e87498ada6e5c708b7ea
                d162ffcf4fbaba1eb82650590a87122b
                4d95fe36bd88b278812166d26e046ed0
                a530b7ee232ee0f2
KID:            0xffffffffffffff
CTR:            0xffffffffffffff
Header:         7fffffffffffffffffffffffffffff
Nonce:          31ed26f90af8d195119b9d67
Ciphertext:     7fffffffffffffffffffffffffffffaf
                480d4779ce0c02b5137ee6a61e026c04
                ac999cb0c97319feceeb258d58df23bc
                e14979e5c67a431777b34498062e72f9
                39ca42ec84ffbc7b50eff923f515a2df
                760c