Ejemplo n.º 1
0
/*
* Get a PK_Verifier object
*/
PK_Verifier* get_pk_verifier(const PK_Verifying_wo_MR_Key& key,
                             const std::string& emsa,
                             Signature_Format sig_format)
   {
   PK_Verifier* verifier = new PK_Verifier_wo_MR(key, get_emsa(emsa));
   verifier->set_input_format(sig_format);
   return verifier;
   }
Ejemplo n.º 2
0
/*
* Get a PK_Signer object
*/
PK_Signer* get_pk_signer(const PK_Signing_Key& key,
                         const std::string& emsa,
                         Signature_Format sig_format)
   {
   PK_Signer* signer = new PK_Signer(key, get_emsa(emsa));
   signer->set_output_format(sig_format);
   return signer;
   }
Ejemplo n.º 3
0
PK_Ops::Signature_with_EMSA::Signature_with_EMSA(const std::string& emsa)
   {
   m_emsa.reset(get_emsa(emsa));
   if(!m_emsa)
      throw Algorithm_Not_Found(emsa);
   }
Ejemplo n.º 4
0
PK_Ops::Verification_with_EMSA::Verification_with_EMSA(const std::string& emsa)
   {
   m_emsa.reset(get_emsa(emsa));
   if(!m_emsa)
      throw Algorithm_Not_Found(emsa);
   }