Method Decapsulate
- Namespace
- Rotherprivat.KemBasedNet.Cryptography
- Assembly
- KemBasedNet.dll
Decapsulate(byte[])
Decapsulate the shared secret from ciphertext
public byte[] Decapsulate(byte[] ciphertext)
Parameters
ciphertextbyte[]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
ciphertextReadOnlySpan<byte>Combined ciphertext
sharedSecretSpan<byte>Combined shared secret