js-libp2p-crypto/test/fixtures/go-stretch-key.js

32 lines
1.1 KiB
JavaScript
Raw Permalink Normal View History

2016-05-20 15:55:19 +02:00
'use strict'
2016-05-20 15:55:19 +02:00
module.exports = [{
cipher: 'AES-256',
hash: 'SHA256',
secret: Uint8Array.from([
2016-05-20 15:55:19 +02:00
195, 191, 209, 165, 209, 201, 127, 122, 136, 111, 31, 66, 111, 68, 38, 155, 216, 204, 46, 181, 200, 188, 170, 204, 104, 74, 239, 251, 173, 114, 222, 234
]),
k1: {
iv: Uint8Array.from([
2016-05-20 15:55:19 +02:00
208, 132, 203, 169, 253, 52, 40, 83, 161, 91, 17, 71, 33, 136, 67, 96
]),
cipherKey: Uint8Array.from([
2016-05-20 15:55:19 +02:00
156, 48, 241, 157, 92, 248, 153, 186, 114, 127, 195, 114, 106, 104, 215, 133, 35, 11, 131, 137, 123, 70, 74, 26, 15, 60, 189, 32, 67, 221, 115, 137
]),
macKey: Uint8Array.from([
2016-05-20 15:55:19 +02:00
6, 179, 91, 245, 224, 56, 153, 120, 77, 140, 29, 5, 15, 213, 187, 65, 137, 230, 202, 120
])
},
k2: {
iv: Uint8Array.from([
2016-05-20 15:55:19 +02:00
236, 17, 34, 141, 90, 106, 197, 56, 197, 184, 157, 135, 91, 88, 112, 19
]),
cipherKey: Uint8Array.from([
2016-05-20 15:55:19 +02:00
151, 145, 195, 219, 76, 195, 102, 109, 187, 231, 100, 150, 132, 245, 251, 130, 254, 37, 178, 55, 227, 34, 114, 39, 238, 34, 2, 193, 107, 130, 32, 87
]),
macKey: Uint8Array.from([
2016-05-20 15:55:19 +02:00
3, 229, 77, 212, 241, 217, 23, 113, 220, 126, 38, 255, 18, 117, 108, 205, 198, 89, 1, 236
])
}
}]