confluent-kafka-dotnet
Show / Hide Table of Contents

Class Hkdf

Simplified HKDF implementation for use in the Confluent Schema Registry Encryption library. This is a subset of the original HKDF.Standard library, containing only the methods needed. Original source: https://github.com/andreimilto/HKDF.Standard

Inheritance
object
Hkdf
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Confluent.SchemaRegistry.Encryption.Vendored.HkdfStandard
Assembly: Confluent.SchemaRegistry.Encryption.dll
Syntax
public static class Hkdf

Methods

DeriveKey(HashAlgorithmName, byte[], int, byte[], byte[])

Derives a key from the provided input key material using HKDF.

Declaration
public static byte[] DeriveKey(HashAlgorithmName hashAlgorithmName, byte[] ikm, int outputLength, byte[] salt = null, byte[] info = null)
Parameters
TypeNameDescription
HashAlgorithmNamehashAlgorithmName

The hash algorithm to use.

byte[]ikm

The input key material.

intoutputLength

The desired length of the output key in bytes.

byte[]salt

Optional salt value (defaults to hash output length of zeros if null).

byte[]info

Optional context information (defaults to empty if null).

Returns
TypeDescription
byte[]

The derived key.

In this article