StormByte-Crypto 3.1.0
C++26 cryptography module of the StormByte suite
Loading...
Searching...
No Matches
policy.hxx File Reference
#include <StormByte/crypto/aead.hxx>
#include <StormByte/crypto/hkdf.hxx>
#include <StormByte/crypto/visibility.h>
#include <StormByte/expected.hxx>
#include <StormByte/safe/pointers.hxx>
#include <StormByte/safe/vector.hxx>
#include <cstdint>
Include dependency graph for policy.hxx:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  StormByte::Crypto::TLS::Configuration
 Mutable input with independent ordered preference lists. More...
struct  StormByte::Crypto::TLS::CipherSuiteDefinition
 Fixed primitive mapping, not an independently selectable pair. More...
class  StormByte::Crypto::TLS::Policy
 Immutable validated TLS 1.3 policy snapshot. More...

Namespaces

namespace  StormByte
 Root namespace of the StormByte suite.
namespace  StormByte::Crypto
 Crypto module of the StormByte suite.
namespace  StormByte::Crypto::TLS
 TLS 1.3 policy and buffer-driven session engine.

Typedefs

using StormByte::Crypto::TLS::ExpectedPolicy = StormByte::Expected<Policy, Error>
 Validated policy or Base-owned typed configuration error.
using StormByte::Crypto::TLS::ExpectedCipherSuiteDefinition = StormByte::Expected<CipherSuiteDefinition, Error>
 Fixed suite definition or Base-owned unsupported-suite error.

Enumerations

enum class  StormByte::Crypto::TLS::Version : std::uint16_t { StormByte::Crypto::TLS::TLS13 = 0x0304 }
 Protocol versions designated for policy configuration. More...
enum class  StormByte::Crypto::TLS::CipherSuite : std::uint16_t { StormByte::Crypto::TLS::TLS_AES_128_GCM_SHA256 = 0x1301 , StormByte::Crypto::TLS::TLS_AES_256_GCM_SHA384 = 0x1302 }
 TLS 1.3 suites supported by the buffer-driven session engine. More...
enum class  StormByte::Crypto::TLS::Group : std::uint16_t { StormByte::Crypto::TLS::X25519 = 0x001d , StormByte::Crypto::TLS::Secp256r1 = 0x0017 }
 Named groups supported by the initial TLS 1.3 profile. More...
enum class  StormByte::Crypto::TLS::SignatureScheme : std::uint16_t { StormByte::Crypto::TLS::ECDSA_SECP256R1_SHA256 = 0x0403 , StormByte::Crypto::TLS::RSA_PSS_RSAE_SHA256 = 0x0804 }
 TLS 1.3 signature schemes supported by the session engine. More...
enum class  StormByte::Crypto::TLS::Error {
  StormByte::Crypto::TLS::UnsupportedVersion , StormByte::Crypto::TLS::EmptyCipherSuites , StormByte::Crypto::TLS::UnsupportedCipherSuite , StormByte::Crypto::TLS::DuplicateCipherSuite ,
  StormByte::Crypto::TLS::EmptyGroups , StormByte::Crypto::TLS::UnsupportedGroup , StormByte::Crypto::TLS::DuplicateGroup , StormByte::Crypto::TLS::EmptySignatureSchemes ,
  StormByte::Crypto::TLS::UnsupportedSignatureScheme , StormByte::Crypto::TLS::DuplicateSignatureScheme
}
 Configuration failures; no connection or backend is exercised. More...

Functions

ExpectedPolicy StormByte::Crypto::TLS::Validate (const Configuration &configuration)
 Validate only membership, nonempty lists and uniqueness for the profile.
Configuration StormByte::Crypto::TLS::InitialProfile ()
 All designated initial-profile entries in default preference order.
ExpectedCipherSuiteDefinition StormByte::Crypto::TLS::DescribeCipherSuite (CipherSuite suite)
 Describe a registered suite's fixed AEAD and HKDF/transcript hash.