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
ExtensionEncryption
Whether the encryption algorithm encrypts the extension.
bool ExtensionEncryption { get; }
Property Value
Name
The name of the encryption algorithm.
string Name { get; }
Property Value
Methods
Decrypt(RtpPacket, Span<byte>)
Decrypts a datagram using the encryption algorithm.
void Decrypt(RtpPacket packet, Span<byte> plaintext)
Parameters
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
RtpPacketWriterThe resulting packet.
SetKey(byte[])
Sets the key for the encryption algorithm.
void SetKey(byte[] key)
Parameters
key
byte[]The key to set.