jedisct1 / swift-sodium

Safe and easy to use crypto for iOS and macOS
ISC License
519 stars 185 forks source link

Add hmacsha256 auth functions #201

Closed justinsinger closed 4 years ago

justinsinger commented 4 years ago

I needed to use crypto_auth_hmacsha256 in my Swift app and couldn't find a way to do it. This PR doesn't include the tagging methods for HMAC-SHA-512 or HMAC-SHA512-256 (truncated HMAC-SHA-512), but consumers of this library may want to use those in the future as well. Let me know if I missed a way to use crypto_auth_hmacsha256 with the existing Swift bindings, or if the purpose of this project it to provide a simplified subset of the functionality of LibSodium.

jedisct1 commented 4 years ago

These bindings are only for the stable, high-level APIs.

crypto_auth_hmacsha256 is not one of these, sorry.