vx20220002
Added one more cryptographic hash primitive and some support for incremental hash emulation.
Features
-
Added
BLAKE3hash algorithm. The library implementation supports the three current available modes for this brand new hash algorithm:hash,keyed_hashandderive_key. For the sake of simplicity, concurrency were not handled by this implementation. Synchronization primitives would be out of library's scope, its is an operating system business and very oriented to user's status quo. I believe that a user facing this kind of requirement will be capable of pick the implementation and shift it to concurrency if she/he wants to. -
Added
kryptos_hash_init,kryptos_hash_updateandkryptos_hash_finalizeconveniences. By defaultkryptosdoes not implement incremental hashing since all its hash primitives have been implemented taking into consideration that all data to be hashed will be in memory. Those three new primitives are only for emulating the incremental hashing behavior. It could be useful on somesmall/medium/large/hugebut notHUGEbuffered input reading and hashing tasks. Variable sized and keyed hashes are also supported by these conveniences.
Bugfixes
TWOFISH HMACtests were enabled duringuser-modetests (it was lacking). Anyway everything is fine, since it was running already onkernel-modetests and passing. So, no bugfixes. 🥇