Table of Contents

Method Decapsulate

Namespace
Rotherprivat.KemBasedNet.Cryptography
Assembly
KemBasedNet.dll

Decapsulate(byte[])

Decapsulate the shared secret from ciphertext

public byte[] Decapsulate(byte[] ciphertext)

Parameters

ciphertext byte[]

Combined ciphertext

Returns

byte[]

Combined shared secret

Decapsulate(ReadOnlySpan<byte>, Span<byte>)

Decapsulate the shared key from combined ciphertext

public void Decapsulate(ReadOnlySpan<byte> ciphertext, Span<byte> sharedSecret)

Parameters

ciphertext ReadOnlySpan<byte>

Combined ciphertext

sharedSecret Span<byte>

Combined shared secret