Botan

TLS Cipher Suites

License
Botan is released under the Simplified BSD License (see LICENSE.md)

struct  TLSCiphersuite;

 TLSCiphersuite Information


static TLSCiphersuite  byId(ushort suite);

Convert an SSL/TLS ciphersuite to algorithm fields

Parameters
ushort suite the ciphersuite code number
Returns
ciphersuite object

static TLSCiphersuite  byName(in string name);

Lookup a ciphersuite by name

Parameters
string name the name (eg TLS_RSA_WITH_RC4_128_SHA)
Returns
ciphersuite object

static Vector!TLSCiphersuite  allKnownCiphersuites();

Generate a static list of all known ciphersuites and return it.

Returns
list of all known ciphersuites

const string  toString();

Formats the ciphersuite back to an RFC-style ciphersuite string

Returns
RFC ciphersuite string identifier

const ushort  ciphersuiteCode();

Returns
ciphersuite number

const bool  pskCiphersuite();

Returns
true if this is a PSK ciphersuite

const bool  eccCiphersuite();

Returns
true if this is an ECC ciphersuite

const string  kexAlgo();

Returns
key exchange algorithm used by this ciphersuite

const string  sigAlgo();

Returns
signature algorithm used by this ciphersuite

const string  cipherAlgo();

Returns
symmetric cipher algorithm used by this ciphersuite

const string  macAlgo();

Returns
message authentication algorithm used by this ciphersuite

const size_t  cipherKeylen();

Returns
cipher key length used by this ciphersuite

const bool  valid();

Returns
true if this is a  valid/known ciphersuite