Class Aes256GcmRtpSizeEncryption
- Namespace
- NetCord.Gateway.Voice.Encryption
- Assembly
- NetCord.dll
public sealed class Aes256GcmRtpSizeEncryption : IVoiceEncryption, IDisposable
- Inheritance
-
Aes256GcmRtpSizeEncryption
- Implements
- Inherited Members
Constructors
Aes256GcmRtpSizeEncryption()
public Aes256GcmRtpSizeEncryption()
Properties
Expansion
The expansion of the encryption algorithm.
public int Expansion { get; }
Property Value
ExtensionEncryption
Whether the encryption algorithm encrypts the extension.
public bool ExtensionEncryption { get; }
Property Value
Name
The name of the encryption algorithm.
public string Name { get; }
Property Value
Methods
Decrypt(RtpPacket, Span<byte>)
Decrypts a datagram using the encryption algorithm.
public void Decrypt(RtpPacket packet, Span<byte> plaintext)
Parameters
Dispose()
public void Dispose()
Encrypt(ReadOnlySpan<byte>, RtpPacketWriter)
Encrypts plaintext using the encryption algorithm.
public 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.
public void SetKey(byte[] key)
Parameters
key
byte[]The key to set.