mirror of
https://github.com/bitcoin/bips.git
synced 2026-10-05 19:16:54 +00:00
37 lines
1.5 KiB
JSON
37 lines
1.5 KiB
JSON
|
|
[
|
||
|
|
{
|
||
|
|
"description": "Basic encryption with short plaintext",
|
||
|
|
"nonce": "000102030405060708090a0b",
|
||
|
|
"plaintext": "48656c6c6f",
|
||
|
|
"secret": "0000000000000000000000000000000000000000000000000000000000000000",
|
||
|
|
"ciphertext": "7df9cb9a0ac5851cc054b14d05f781127b2b0d31fa"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"description": "Empty plaintext should fail",
|
||
|
|
"nonce": "000102030405060708090a0b",
|
||
|
|
"plaintext": "",
|
||
|
|
"secret": "0000000000000000000000000000000000000000000000000000000000000000",
|
||
|
|
"ciphertext": null
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"description": "Encryption with zeroed nonce should fail",
|
||
|
|
"nonce": "000000000000000000000000",
|
||
|
|
"plaintext": "00000000000000000000000000000000",
|
||
|
|
"secret": "0000000000000000000000000000000000000000000000000000000000000000",
|
||
|
|
"ciphertext": null
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"description": "Encryption with all FFs",
|
||
|
|
"nonce": "ffffffffffffffffffffffff",
|
||
|
|
"plaintext": "ffffffffffffffffffffffffffffffff",
|
||
|
|
"secret": "ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",
|
||
|
|
"ciphertext": "22d8bfc313e141bd692c82cec7785b29a0e5d5014c0d3b2d3a8b00548cd8d221"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"description": "Longer plaintext",
|
||
|
|
"nonce": "0f1e2d3c4b5a69788796a5b4",
|
||
|
|
"plaintext": "546869732069732061206c6f6e67657220706c61696e746578742074686174207368756c6420626520656e637279707465642070726f7065726c792e",
|
||
|
|
"secret": "deadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeef",
|
||
|
|
"ciphertext": "2af094190e2b43a02b8dd6bfc25a8833f84f81bc6f690d75f0214e466ef392616c4644bee65118c444a926e1e365b3a7ba0509a5636524eb4e5722f5926938f32e4df79237acb6dd4a6ccbc4"
|
||
|
|
}
|
||
|
|
]
|