psalami / HKDFKit

A Swift implementation of HKDF for both iOS and OS X

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

License:GNU General Public License v3.0


Languages

Language:Swift 65.0%Language:Ruby 29.3%Language:Objective-C 5.7%