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
Inherited Members
Namespace: Confluent.SchemaRegistry.Encryption.Vendored.HkdfStandard
Assembly: Confluent.SchemaRegistry.Encryption.dll
Syntax
public static class HkdfMethods
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
| Type | Name | Description |
|---|---|---|
| HashAlgorithmName | hashAlgorithmName | The hash algorithm to use. |
| byte[] | ikm | The input key material. |
| int | outputLength | 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
| Type | Description |
|---|---|
| byte[] | The derived key. |