OpenVPN 3 Core Library
Loading...
Searching...
No Matches
openvpn::PKCS1::DigestPrefix::Parse< T > Class Template Reference

#include <pkcs1.hpp>

Public Member Functions

 Parse (const T none, const T md2, const T md5, const T sha1, const T sha256, const T sha384, const T sha512)
 
 Parse (const T none, const T md5, const T sha1, const T sha256, const T sha384, const T sha512)
 
alg_from_prefix (Buffer &buf) const
 

Private Member Functions

bool match (Buffer &buf, const unsigned char *data, const size_t size) const
 

Private Attributes

const T none_
 
const T md2_
 
const T md5_
 
const T sha1_
 
const T sha256_
 
const T sha384_
 
const T sha512_
 

Detailed Description

template<typename T>
class openvpn::PKCS1::DigestPrefix::Parse< T >

Class that parses an PKCS #1 header (RFC 3447) to identify the used digest type

Template Parameters
Tthe type of the crypto library that used should be used for the digest algorithm identification

Definition at line 64 of file pkcs1.hpp.

Constructor & Destructor Documentation

◆ Parse() [1/2]

template<typename T >
openvpn::PKCS1::DigestPrefix::Parse< T >::Parse ( const T  none,
const T  md2,
const T  md5,
const T  sha1,
const T  sha256,
const T  sha384,
const T  sha512 
)
inline

Definition at line 67 of file pkcs1.hpp.

◆ Parse() [2/2]

template<typename T >
openvpn::PKCS1::DigestPrefix::Parse< T >::Parse ( const T  none,
const T  md5,
const T  sha1,
const T  sha256,
const T  sha384,
const T  sha512 
)
inline

Constructor for TLS libraries that no longer support MD2

Definition at line 85 of file pkcs1.hpp.

Member Function Documentation

◆ alg_from_prefix()

template<typename T >
T openvpn::PKCS1::DigestPrefix::Parse< T >::alg_from_prefix ( Buffer buf) const
inline

Definition at line 101 of file pkcs1.hpp.

◆ match()

template<typename T >
bool openvpn::PKCS1::DigestPrefix::Parse< T >::match ( Buffer buf,
const unsigned char *  data,
const size_t  size 
) const
inlineprivate

Definition at line 120 of file pkcs1.hpp.

Here is the caller graph for this function:

Member Data Documentation

◆ md2_

template<typename T >
const T openvpn::PKCS1::DigestPrefix::Parse< T >::md2_
private

Definition at line 133 of file pkcs1.hpp.

◆ md5_

template<typename T >
const T openvpn::PKCS1::DigestPrefix::Parse< T >::md5_
private

Definition at line 133 of file pkcs1.hpp.

◆ none_

template<typename T >
const T openvpn::PKCS1::DigestPrefix::Parse< T >::none_
private

Definition at line 133 of file pkcs1.hpp.

◆ sha1_

template<typename T >
const T openvpn::PKCS1::DigestPrefix::Parse< T >::sha1_
private

Definition at line 133 of file pkcs1.hpp.

◆ sha256_

template<typename T >
const T openvpn::PKCS1::DigestPrefix::Parse< T >::sha256_
private

Definition at line 133 of file pkcs1.hpp.

◆ sha384_

template<typename T >
const T openvpn::PKCS1::DigestPrefix::Parse< T >::sha384_
private

Definition at line 133 of file pkcs1.hpp.

◆ sha512_

template<typename T >
const T openvpn::PKCS1::DigestPrefix::Parse< T >::sha512_
private

Definition at line 133 of file pkcs1.hpp.


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