Show / Hide Table of Contents

Class StretchedKey

Symmetric keys for SECIO.

Inheritance
Object
StretchedKey
Inherited Members
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
Namespace: PeerTalk.Cryptography
Assembly: PeerTalk.dll
Syntax
public class StretchedKey
Remarks

Keys derived from a shared secret.

Properties

| Improve this Doc View Source

CipherKey

The encyption key.

Declaration
public byte[] CipherKey { get; set; }
Property Value
Type Description
Byte[]
| Improve this Doc View Source

IV

The nonce.

Declaration
public byte[] IV { get; set; }
Property Value
Type Description
Byte[]
| Improve this Doc View Source

MacKey

The message authentication code.

Declaration
public byte[] MacKey { get; set; }
Property Value
Type Description
Byte[]

Methods

| Improve this Doc View Source

Generate(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

  • Improve this Doc
  • View Source
Back to top Generated by DocFX