Table of Contents

Interface IVoiceEncryption

Namespace
NetCord.Gateway.Voice.Encryption
Assembly
NetCord.dll

Voice encryption.

public interface IVoiceEncryption : IDisposable
Inherited Members

Properties

Expansion

The expansion of the encryption algorithm.

int Expansion { get; }

Property Value

int

ExtensionEncryption

Whether the encryption algorithm encrypts the extension.

bool ExtensionEncryption { get; }

Property Value

bool

Name

The name of the encryption algorithm.

string Name { get; }

Property Value

string

Methods

Decrypt(RtpPacket, Span<byte>)

Decrypts a datagram using the encryption algorithm.

void Decrypt(RtpPacket packet, Span<byte> plaintext)

Parameters

packet RtpPacket

The packet to decrypt.

plaintext Span<byte>

The resulting plaintext.

Encrypt(ReadOnlySpan<byte>, RtpPacketWriter)

Encrypts plaintext using the encryption algorithm.

void Encrypt(ReadOnlySpan<byte> plaintext, RtpPacketWriter packet)

Parameters

plaintext ReadOnlySpan<byte>

The plaintext to encrypt.

packet RtpPacketWriter

The resulting packet.

SetKey(byte[])

Sets the key for the encryption algorithm.

void SetKey(byte[] key)

Parameters

key byte[]

The key to set.