C# Class SecurityDriven.Inferno.Kdf.SP800_108_Ctr

Concepts from: http://dx.doi.org/10.6028/NIST.SP.800-108 http://referencesource.microsoft.com/#System.Web/Security/Cryptography/SP800_108.cs
Mostra file Open project: sdrapkin/SecurityDriven.Inferno

Public Methods

Method Description
DeriveKey ( Func hmacFactory, byte key, ArraySegment label, ArraySegment context, ArraySegment derivedOutput, uint counter = 1 ) : void

Private Methods

Method Description
CreateBuffer ( ArraySegment label, ArraySegment context, uint keyLengthInBits ) : byte[]
DeriveKey ( HMAC keyedHmac, ArraySegment bufferSegment, ArraySegment derivedOutput, uint counter = 1 ) : void

Method Details

DeriveKey() public static method

public static DeriveKey ( Func hmacFactory, byte key, ArraySegment label, ArraySegment context, ArraySegment derivedOutput, uint counter = 1 ) : void
hmacFactory Func
key byte
label ArraySegment
context ArraySegment
derivedOutput ArraySegment
counter uint
return void