[haiku-development] Crypto Kit Future?

  • From: "Alexander von Gluck IV" <kallisti5@xxxxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Thu, 03 Mar 2016 15:53:14 +0000

Good morning,

The crypto kit hashing features are complete.

https://github.com/kallisti5/haiku/blob/crypto/headers/os/crypto/CryptoHash.h

The work has been sitting in my branch for a while unmerged.

A few questions since "taking back" shipped API's can be difficult.

  * Is the API desirable?
    - I personally think it is as it lets you pass in Be API objects and get a 
meaningful hash for
      them in an efficient way.
  * Should this be a post-R1 feature or a pre-R1 feature?
  * Should it be merged before the encryption / decryption portions are defined 
/ complete?
    - The encryption portion is more complex, however the kit is still useful 
without it being complete.
    - MD4, MD5, Blake2, SHA256 are complete and functional.

(I've had push-back on support of MD4, but that isn't the point of this 
thread... it is a 2 minute procedure to rip out a hashing algorithm and an hour 
or two procedure to add support for a new one)

Feedback *very* desired.  I don't like merging big things without community 
input :-)

 -- Alex

Other related posts: