Commit Graph

12 Commits

Author SHA1 Message Date
Juhani Krekelä 900c7b4c93 Implement the KDF 2021-04-08 22:45:08 +03:00
Juhani Krekelä c9defbaafe Fix the MDC-2 implementation, again 2021-04-08 21:41:35 +03:00
Juhani Krekelä 9a0b35609b Implement (modified) HMAC 2021-04-08 21:30:09 +03:00
Juhani Krekelä 08c8d33b20 Remove derive_subkey() as it is not needed when deriving a key from passphrase 2021-04-08 20:43:56 +03:00
Juhani Krekelä d4ed30a592 Improve explanation of the XXTEA algorithm 2021-04-08 20:43:16 +03:00
Juhani Krekelä 21ed995281 Fix the implementation of MDC-2. The state is chained as the key, not as the plaintext, through the block cipher 2021-04-08 20:35:34 +03:00
Juhani Krekelä d4b2d07c6e Actually encode the number of bits in big endian 2021-04-08 20:26:59 +03:00
Juhani Krekelä cf2b617b39 C conversion to unsigned types implictly mods 2021-04-08 20:25:07 +03:00
Juhani Krekelä 7e91a099fe += is preincrement, not postincrement 2021-04-05 02:15:57 +03:00
Juhani Krekelä debac6c434 Fix uninitialized loop variable 2021-04-05 02:15:31 +03:00
Juhani Krekelä 96f9b11cf2 Clear hash state object once hash is finalized 2021-04-04 23:17:49 +03:00
Juhani Krekelä 92041f9fbf First commit 2021-04-04 23:05:31 +03:00