10Duke Enterprise C++ SDK
Loading...
Searching...
No Matches
tenduke::crypto::Crypto Class Reference

#include <Crypto.h>

Detailed Description

Cryptographic services.

This is a "service locator" for cryptographic services.

Public Member Functions

 Crypto (const std::shared_ptr<::tenduke::crypto::Ciphers > &ciphersService, const std::shared_ptr<::tenduke::crypto::HashFactory > &hashFactory, const std::shared_ptr<::tenduke::crypto::KDFProvider > &kdf, const std::shared_ptr<::tenduke::crypto::PublicKeyFactory > &publicKeyFactory, const std::shared_ptr<::tenduke::utl::random::RandomBytes > &randomBytes)
 Constructs a new instance.
virtual std::shared_ptr< const ::tenduke::crypto::Ciphersciphers () const
 Returns "Ciphers"-service.
virtual std::shared_ptr< const ::tenduke::crypto::KDFProviderkdf () const
 Returns registered Key Derivation Functions.
virtual std::shared_ptr< const ::tenduke::crypto::HashFactoryhash () const
 Returns hash factory.
virtual std::shared_ptr< const ::tenduke::crypto::PublicKeyFactorypublicKeys () const
 Returns "Public keys"-service.
virtual std::shared_ptr<::tenduke::utl::random::RandomBytesrandomBytes ()
 Returns cryptographically secure random number generator.

Constructor & Destructor Documentation

◆ Crypto()

tenduke::crypto::Crypto::Crypto ( const std::shared_ptr<::tenduke::crypto::Ciphers > & ciphersService,
const std::shared_ptr<::tenduke::crypto::HashFactory > & hashFactory,
const std::shared_ptr<::tenduke::crypto::KDFProvider > & kdf,
const std::shared_ptr<::tenduke::crypto::PublicKeyFactory > & publicKeyFactory,
const std::shared_ptr<::tenduke::utl::random::RandomBytes > & randomBytes )
inlineexplicit

Constructs a new instance.

Parameters
ciphersServiceCiphers service
hashFactoryHash factory
publicKeyFactoryPublic keys service
kdfRegistered key generators
randomBytesCryptographically secure random number generator

The documentation for this class was generated from the following file: