Class StretchedKey
Symmetric keys for SECIO.
Inherited Members
Namespace: PeerTalk.Cryptography
Assembly: PeerTalk.dll
Syntax
public class StretchedKey
Remarks
Keys derived from a shared secret.
Properties
| Improve this Doc View SourceCipherKey
The encyption key.
Declaration
public byte[] CipherKey { get; set; }
Property Value
Type | Description |
---|---|
Byte[] |
IV
The nonce.
Declaration
public byte[] IV { get; set; }
Property Value
Type | Description |
---|---|
Byte[] |
MacKey
The message authentication code.
Declaration
public byte[] MacKey { get; set; }
Property Value
Type | Description |
---|---|
Byte[] |
Methods
| Improve this Doc View SourceGenerate(String, String, Byte[], out StretchedKey, out StretchedKey)
Create two streched keys from the shared secret.
Declaration
public static void Generate(string cipherName, string hashName, byte[] secret, out StretchedKey k1, out StretchedKey k2)
Parameters
Type | Name | Description |
---|---|---|
String | cipherName | |
String | hashName | |
Byte[] | secret | |
StretchedKey | k1 | |
StretchedKey | k2 |
Remarks
The is no spec for this. Copied https://github.com/libp2p/go-libp2p-crypto/blob/0f79fbebcb64f746a636aba79ece0635ec5919e9/key.go#L183