KnownCipher

enum KnownCipher : ProtocolMessageEnum
Specifies known ciphers to this version of the protocol.
Protobuf enum elide.crypto.KnownCipher

Entries

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Properties

Link copied to clipboard
Specifies the AES-128 cipher, operating in CBC mode.
AES_128_CBC = 1;
Link copied to clipboard
Specifies the AES-128 cipher, operating in GCM mode.
AES_128_GCM = 3;
Link copied to clipboard
Specifies the AES-256 cipher, operating in CBC mode.
AES_256_CBC = 2;
Link copied to clipboard
Specifies the AES-256 cipher, operating in GCM mode.
AES_256_GCM = 4;
Link copied to clipboard
Specifies the ChaCha20 cipher, operating in Poly1305 mode.
CHACHA20_POLY1305 = 5;
Link copied to clipboard
Specifies an unrecognized cipher for this version of the protocol; should not be used by regular code.
CIPHER_UNRECOGNIZED = 0;

Functions

Link copied to clipboard
open fun forNumber(value: Int): KnownCipher
Link copied to clipboard
fun getDescriptor(): Descriptors.EnumDescriptor
Link copied to clipboard
fun getDescriptorForType(): Descriptors.EnumDescriptor
Link copied to clipboard
fun getNumber(): Int
Link copied to clipboard
fun getValueDescriptor(): Descriptors.EnumValueDescriptor
Link copied to clipboard
open fun internalGetValueMap(): Internal.EnumLiteMap<KnownCipher>
Link copied to clipboard
open fun valueOf(desc: Descriptors.EnumValueDescriptor): KnownCipher
open fun valueOf(value: Int): KnownCipher

open fun valueOf(name: String): KnownCipher

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard
open fun values(): Array<KnownCipher>

Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants.