Skip to content

A Swift implementation of HKDF for both iOS and OS X

License

Notifications You must be signed in to change notification settings

silenteh/HKDFKit

Repository files navigation

Build Status

HKDFKit Swift framework for both iOS and OS X

HKDF utility in Swift for both iOS and OS X

This is a porting of Frederic Jacobs KDFKit to Swift with the addition it supports also OS X

Usage

RFC5869-compliant key derivation function.

let derivedData = HKDFKit.deriveKey(HKDFKit.Hash.SHA256, seed: aSeed, info: anInfo, salt: aSalt, outputSize: anOutputSize)

TextSecure v2 protocol uses different bounds for the HKDF function.

let derivedData = let derivedData = HKDFKit.TextSecureV2deriveKey(HKDFKit.Hash.SHA256, seed: aSeed, info: anInfo, salt: aSalt, outputSize: anOutputSize)

Documentation

API reference is available on CocoaDocs.

Installation

Add this line to your Podfile

pod 'HKDFKit', '~> version number'

License

Licensed under the GPLv3: http://www.gnu.org/licenses/gpl-3.0.html

About

A Swift implementation of HKDF for both iOS and OS X

Resources

License

Stars

Watchers

Forks

Packages

No packages published