LibLogicalAccess  2.5.0
An Open Source RFID Library
Loading...
Searching...
No Matches
Classes | Private Member Functions | Private Attributes | Friends | List of all members
logicalaccess::openssl::OpenSSLSymmetricCipherContext Class Reference

An OpenSSL context class. More...

#include <openssl_symmetric_cipher_context.hpp>

Classes

struct  Information
 The context information structure. More...
 

Private Member Functions

 OpenSSLSymmetricCipherContext (OpenSSLSymmetricCipher::Method method)
 Constructor.
 
void setPadding (bool padding) const
 Set the padding.
 
EVP_CIPHER_CTX * ctx () const
 Get the data.
 
size_t blockSize () const
 Get the block size.
 
OpenSSLSymmetricCipher::Method method () const
 Get the method.
 
ByteVectordata () const
 Get the data.
 
void reset ()
 Reset the context.
 

Private Attributes

std::shared_ptr< Informationd_information
 The information.
 

Friends

class OpenSSLSymmetricCipher
 

Detailed Description

An OpenSSL context class.

The Context class is used by OpenSSLSymmetricCipher to perform block cipherement. It cannot be publicly instanciated.

Constructor & Destructor Documentation

◆ OpenSSLSymmetricCipherContext()

logicalaccess::openssl::OpenSSLSymmetricCipherContext::OpenSSLSymmetricCipherContext ( OpenSSLSymmetricCipher::Method  method)
explicitprivate

Constructor.

Parameters
methodThe method.

Member Function Documentation

◆ blockSize()

size_t logicalaccess::openssl::OpenSSLSymmetricCipherContext::blockSize ( ) const
private

Get the block size.

Returns
The block size.

◆ ctx()

EVP_CIPHER_CTX * logicalaccess::openssl::OpenSSLSymmetricCipherContext::ctx ( ) const
inlineprivate

Get the data.

Returns
The data.

◆ data()

ByteVector & logicalaccess::openssl::OpenSSLSymmetricCipherContext::data ( ) const
inlineprivate

Get the data.

Returns
The data.

◆ method()

OpenSSLSymmetricCipher::Method logicalaccess::openssl::OpenSSLSymmetricCipherContext::method ( ) const
inlineprivate

Get the method.

Returns
The method.

◆ reset()

void logicalaccess::openssl::OpenSSLSymmetricCipherContext::reset ( )
private

Reset the context.

◆ setPadding()

void logicalaccess::openssl::OpenSSLSymmetricCipherContext::setPadding ( bool  padding) const
private

Set the padding.

Parameters
paddingtrue to enable padding, false to disable it.

Padding is disabled by default.

Friends And Related Function Documentation

◆ OpenSSLSymmetricCipher

friend class OpenSSLSymmetricCipher
friend

Member Data Documentation

◆ d_information

std::shared_ptr<Information> logicalaccess::openssl::OpenSSLSymmetricCipherContext::d_information
private

The information.


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