I pushed a version with the testvector. The hmac signatures match.The
aes_key entry matches the aes_key concatenated with the hmac_key. What
is the "ecies_key_derivation" entry? Greetings!
On 27.12.2015 18:32, Miguel Freitas wrote:
On Sun, Dec 27, 2015 at 2:16 PM, Julian Steinwachs
<[email protected] <mailto:[email protected]>> wrote:
no it does not work with the testvector. The problem is the new
version of bitcoinjs-lib . The code from the twister-html repo is
incompatible with the new version. They changed some method
signatures.
hmmm, got it.
we may compare intermediate steps to pinpoint where it starts to fail
(eg. the "secret" derived from EC multiplication before computing the
sha512 etc).
Also i find it strange to use an empty buffer als iv. Thoughts
thats just for the testvector.
That's correct: the IV is actually initialized to all zeros (16
bytes), see here
https://github.com/miguelfreitas/twister-core/blob/master/src/key.cpp#L379
Which is fine, btw, since we don't reuse the key between DMs.
(You may try if "empty IV" is the same as "all zeros IV" for this new
bitcoinjs-lib)
regards,
Miguel
--
You received this message because you are subscribed to the Google
Groups "twister-dev" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to [email protected]
<mailto:[email protected]>.
To post to this group, send email to [email protected]
<mailto:[email protected]>.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups
"twister-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/d/optout.