You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
52 lines
1.5 KiB
52 lines
1.5 KiB
// Go reference values of the IBE of tlock that the tests running on Node.js
|
|
// use: they read no file. Each is copied from the JSON that Go wrote,
|
|
// test/vectors/ibe_vectors.json or tlock_vectors.json, and
|
|
// ibe_constants_test.dart checks it against that JSON on the VM.
|
|
library;
|
|
|
|
// The encryption of a 16-byte message for round 1000 with a given sigma
|
|
// (tlock_vectors.json).
|
|
|
|
/// The identity of round 1000.
|
|
const encrypt1000Id =
|
|
'f652498d092acd949bad74e40683bf3824fb817980504a0c7e6722cfc5a9c0a3';
|
|
|
|
/// The message.
|
|
const encrypt1000Msg = '16e27bcb7ff0267cd0db9c1dc1459696';
|
|
|
|
/// sigma.
|
|
const encrypt1000Sigma = '3d4725349d1d12947a3195aa2cb5dd00';
|
|
|
|
/// U.
|
|
const encrypt1000U =
|
|
'80364e97a868ee0dcdcf79a71ab7901f97ae9d38069110e5eacf630842857a52685ebaaf'
|
|
'41b3e8682664893748443a3f1137cc7e1298814bab8d47d13416083a3b32d224713eaf14'
|
|
'1bef1c3775d580a939ffb316a603b68bd3d8799a95feb355';
|
|
|
|
/// V.
|
|
const encrypt1000V = '518c9d924cdd84ef24472ee2dae6c5f5';
|
|
|
|
/// W.
|
|
const encrypt1000W = '3cb104bcb0c445ea0b576a9aa64bfa01';
|
|
|
|
// H3 of an input whose r is accepted at the third iteration, and H4
|
|
// (ibe_vectors.json).
|
|
|
|
/// sigma of H3.
|
|
const h3Sigma = 'fdaa01708026990ff60ed74e8875f1b9';
|
|
|
|
/// The message of H3.
|
|
const h3Msg = 'a2eefa73eaa7028f29dfddf86cb2a2bb';
|
|
|
|
/// r.
|
|
const h3R = '6773be5dbb0ac8cbd3aebe463ff5911eee6d6d7f7b012de9f55382a3e99572da';
|
|
|
|
/// The iteration that accepts r.
|
|
const h3Iterations3 = 3;
|
|
|
|
/// sigma of H4.
|
|
const h4Sigma = '00000000000000000000000000000000';
|
|
|
|
/// H4 truncated to 16 bytes.
|
|
const h4Of16 = 'e98934fb796adfa42b207a1b701a473d';
|