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

Ciphers of the Crypto module. More...

Classes

class  AES
 AES-CBC crypter. More...
 
class  AES_GCM
 AES-GCM crypter. More...
 
class  Asymmetric
 Keypair-based asymmetric crypter. More...
 
class  Camellia
 Camellia-CBC crypter. More...
 
class  ChaChaPoly
 ChaCha20-Poly1305 crypter. More...
 
class  ECC
 Elliptic-curve crypter. More...
 
class  Exception
 Exception from the crypter component. More...
 
class  Generic
 Abstract crypter. More...
 
class  RSA
 RSA crypter. More...
 
class  Serpent
 Serpent-CBC crypter. More...
 
class  Symmetric
 Password-based symmetric crypter. More...
 
class  TwoFish
 Twofish-CBC crypter. More...
 

Enumerations

enum class  Type {
  AES_GCM , AES , Camellia , ChaChaPoly ,
  ECC , Serpent , RSA , TwoFish
}
 Available ciphers. More...
 

Functions

Generic::PointerType Create (enum Type type, KeyPair::Generic::PointerType keypair) noexcept
 Factory from a keypair pointer.
 
Generic::PointerType Create (enum Type type, const KeyPair::Generic &keypair) noexcept
 Factory by cloning a keypair.
 
Generic::PointerType Create (enum Type type, KeyPair::Generic &&keypair) noexcept
 Factory by moving a keypair.
 
Generic::PointerType Create (enum Type type, Secure::Password password) noexcept
 Factory for a symmetric crypter.
 

Detailed Description

Ciphers of the Crypto module.

Enumeration Type Documentation

◆ Type

Available ciphers.

Enumerator
AES_GCM 

AES-GCM.

AES 

AES-CBC.

Camellia 

Camellia-CBC.

ChaChaPoly 

ChaCha20-Poly1305.

ECC 

Elliptic-curve encryption.

Serpent 

Serpent-CBC.

RSA 

RSA.

TwoFish 

Twofish-CBC.

Function Documentation

◆ Create() [1/4]

Generic::PointerType StormByte::Crypto::Crypter::Create ( enum Type  type,
const KeyPair::Generic &  keypair 
)
noexcept

Factory by cloning a keypair.

Parameters
typeCipher.
keypairKeypair.
Returns
Crypter pointer.

◆ Create() [2/4]

Generic::PointerType StormByte::Crypto::Crypter::Create ( enum Type  type,
KeyPair::Generic &&  keypair 
)
noexcept

Factory by moving a keypair.

Parameters
typeCipher.
keypairKeypair.
Returns
Crypter pointer.

◆ Create() [3/4]

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

Factory from a keypair pointer.

Parameters
typeCipher.
keypairKeypair.
Returns
Crypter pointer.

◆ Create() [4/4]

Generic::PointerType StormByte::Crypto::Crypter::Create ( enum Type  type,
Secure::Password  password 
)
noexcept

Factory for a symmetric crypter.

Parameters
typeCipher.
passwordPassword.
Returns
Crypter pointer, or nullptr on failure.