Sese Framework  2.3.0
A cross-platform framework
Loading...
Searching...
No Matches
sese::security::evp::Encrypter Class Referencefinal

Encrypter. More...

#include <Crypter.h>

Inheritance diagram for sese::security::evp::Encrypter:
sese::security::evp::Crypter

Public Member Functions

 Encrypter (const CrypterContext::Ptr &crypter_context)
 
 ~Encrypter () override
 
int update (void *out, int &out_len, const void *in, int in_len) const noexcept override
 Process data.
 
int final (void *out, int &out_len) const noexcept override
 Process final data.
 
- Public Member Functions inherited from sese::security::evp::Crypter
virtual ~Crypter ()=default
 

Private Attributes

void * ctx_
 
const CrypterContext::Ptrcrypter_context_
 

Detailed Description

Constructor & Destructor Documentation

◆ Encrypter()

Encrypter::Encrypter ( const CrypterContext::Ptr & crypter_context)
explicit

References crypter_context_, and ctx_.

◆ ~Encrypter()

Encrypter::~Encrypter ( )
override

References ctx_.

Member Function Documentation

◆ final()

int Encrypter::final ( void * out,
int & out_len ) const
overridevirtualnoexcept

Process final data.

Parameters
outPointer to the output buffer
out_lenNumber of bytes in the output buffer
Returns
Number of bytes processed, negative if failed

Implements sese::security::evp::Crypter.

◆ update()

int Encrypter::update ( void * out,
int & out_len,
const void * in,
int in_len ) const
overridevirtualnoexcept

Process data.

Parameters
outPointer to the output buffer
out_lenNumber of bytes in the output buffer
inPointer to the input buffer
in_lenSize of the input buffer
Returns
Number of bytes processed, negative if failed

Implements sese::security::evp::Crypter.

References in().

Member Data Documentation

◆ crypter_context_

const CrypterContext::Ptr& sese::security::evp::Encrypter::crypter_context_
private

Referenced by Encrypter().

◆ ctx_

void* sese::security::evp::Encrypter::ctx_
private

Referenced by Encrypter(), and ~Encrypter().


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