enum

Beryl::TLS::CipherSuite

Inherits Enum < Comparable < Value < Object

The TLS 1.3 cipher suites (RFC 9846 §B.4). Beryl offers the first three, in this order (plan §2).

Constants

TLS_AES_128_GCM_SHA256 = 4865_u16
TLS_AES_256_GCM_SHA384 = 4866_u16
TLS_CHACHA20_POLY1305_SHA256 = 4867_u16

Class methods

supported_value?(value : UInt16) : Bool

Returns whether value names one of the three suites.

Source

Instance methods

build_authenticated_encryption(key : Bytes) : Crypto::V1::AuthenticatedEncryption

Returns a new AEAD keyed with key.

Source
hash_algorithm

Returns the hash the key schedule runs on.

Source
key_bytesize

Returns the AEAD key size in bytes.

Source
tls_aes_128_gcm_sha256?

Returns true if this enum value equals TLS_AES_128_GCM_SHA256

Source
tls_aes_256_gcm_sha384?

Returns true if this enum value equals TLS_AES_256_GCM_SHA384

Source
tls_chacha20_poly1305_sha256?

Returns true if this enum value equals TLS_CHACHA20_POLY1305_SHA256

Source