Bouke/HKDF
HMAC-based Extract-and-Expand Key Derivation Function (HKDF) in Swift
Usage:
// Input Key Material (ikm): weak input key material.
let ikm = Data(bytes: try! Random.generate(byteCount: 16))
// Output Key Material (okm): strong key material.
let okm = deriveKey(algorithm: .sha256, seed: ikm, count: 32)More information can be found in the documentation.
Swift Compatibility
Swift 4 is required with version 3 of this package. Use version 2 if you need Swift 3 compatibility.
References:
- [RFC 5869 - HMAC-based Extract-and-Expand Key Derivation Function (HKDF)][0]
Credits
This library was written by [Bouke Haarsma][1].
[0]: https://tools.ietf.org/html/rfc5869 [1]: https://twitter.com/BoukeHaarsma
Package Metadata
Repository: Bouke/HKDF
Homepage: http://boukehaarsma.nl/HKDF
Stars: 7
Forks: 4
Open issues: 0
Default branch: master
Primary language: swift
License: MIT
Topics: hkdf, rfc-5869, security, swift
README: README.md
Archived: yes