StormByte-Crypto 2.0.0
C++26 cryptography module of the StormByte suite
 
Loading...
Searching...
No Matches
StormByte::Crypto::Secret Namespace Reference

Key agreement of the Crypto module. More...

Classes

class  ECDH
 ECDH shared-secret derivation. More...
 
class  Exception
 Exception from the secret component. More...
 
class  Generic
 Abstract key-agreement object. More...
 
class  X25519
 X25519 shared-secret derivation. More...
 

Enumerations

enum class  Type { ECDH , X25519 }
 Available agreement algorithms. More...
 

Functions

Generic::PointerType Create (Type type, KeyPair::Generic::PointerType keypair) noexcept
 Create an agreement object.
 

Detailed Description

Key agreement of the Crypto module.

Enumeration Type Documentation

◆ Type

Available agreement algorithms.

Enumerator
ECDH 

ECDH.

X25519 

X25519.

Function Documentation

◆ Create()

Generic::PointerType StormByte::Crypto::Secret::Create ( Type  type,
KeyPair::Generic::PointerType  keypair 
)
noexcept

Create an agreement object.

Parameters
typeAlgorithm.
keypairMatching keypair.
Returns
Object pointer, or nullptr if the pair is null or mismatched.
Note
ECDH defaults to 256 bits. For secp384r1/secp521r1 construct ECDH with the bit size.