darlinghq / darling-corecrypto

CoreCrypto reimplementation under GPL-3
http://www.darlinghq.org
GNU General Public License v3.0
23 stars 9 forks source link

Add the required headers and a stub for cchkdf #1

Closed ahyattdev closed 7 years ago

ahyattdev commented 7 years ago

I am not sure if I did enough to not violate the license. Please verify that, some guidelines on what is acceptable and what is not regarding reimplementing corecrypto in the README would be great.

LubosD commented 7 years ago

I'm a little worried about cc_priv.h, because it's an internal implementation detail of Apple's corecrypto - which we really don't need to have in Darling corecrypto for compatibility.

We will however need cchmac first.

ahyattdev commented 7 years ago

Understood. What do we need to implement for compatibility? Is there a public set of headers we are using? Is it just things that Security.framework uses?

LubosD commented 7 years ago

This is hard to answer :-) The dependencies kind of go in chains, so in order to have recent CommonCrypto, you need to have full CoreCrypto etc.

I think the best thing would be to have sha1 & sha2 digests (I've already added md2/4/5) and hmac and then add stuff as needed.

ahyattdev commented 7 years ago

I deleted the worrisome commits (kept a backup of course).