Botan 1.10.17
Botan::EMSA4 Class Reference

#include <emsa4.h>

Inheritance diagram for Botan::EMSA4:
Botan::EMSA

Public Member Functions

 EMSA4 (HashFunction *hash)
 EMSA4 (HashFunction *hash, size_t salt_size)
 ~EMSA4 ()

Detailed Description

EMSA4 aka PSS-R

Definition at line 20 of file emsa4.h.

Constructor & Destructor Documentation

◆ EMSA4() [1/2]

Botan::EMSA4::EMSA4 ( HashFunction * hash)
Parameters
hashthe hash object to use

Definition at line 130 of file emsa4.cpp.

130 :
131 SALT_SIZE(h->output_length()), hash(h)
132 {
133 mgf = new MGF1(hash->clone());
134 }
MGF1(HashFunction *hash)
Definition mgf1.cpp:42

References Botan::MGF1::MGF1().

Referenced by Botan::get_emsa().

◆ EMSA4() [2/2]

Botan::EMSA4::EMSA4 ( HashFunction * hash,
size_t salt_size )
Parameters
hashthe hash object to use
salt_sizethe size of the salt to use in bytes

Definition at line 139 of file emsa4.cpp.

139 :
140 SALT_SIZE(salt_size), hash(h)
141 {
142 mgf = new MGF1(hash->clone());
143 }

References Botan::MGF1::MGF1().

◆ ~EMSA4()

Botan::EMSA4::~EMSA4 ( )
inline

Definition at line 34 of file emsa4.h.

34{ delete hash; delete mgf; }

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