From 7ef1c47c6d85ed505721de20e9d90d1450f8e389 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Thu, 28 Sep 2017 04:06:59 -0400 Subject: [PATCH] Update documentation --- pubkey.h | 61 +++++++++++++++++++++++++++++++++++++++++++++----------- 1 file changed, 49 insertions(+), 12 deletions(-) diff --git a/pubkey.h b/pubkey.h index d24d67d9..5e5fba0a 100644 --- a/pubkey.h +++ b/pubkey.h @@ -480,7 +480,10 @@ public: HashTransformation & AccessHash() {return this->m_object;} }; -//! _ +//! \class TF_SignatureSchemeBase +//! \brief Trapdoor Function (TF) Signature Scheme base class +//! \tparam INTFACE interface +//! \tparam BASE base class template class CRYPTOPP_NO_VTABLE TF_SignatureSchemeBase : public INTFACE, protected BASE { @@ -509,7 +512,8 @@ protected: virtual size_t GetDigestSize() const =0; }; -//! _ +//! \class TF_SignerBase +//! \brief Trapdoor Function (TF) Signer base class class CRYPTOPP_DLL CRYPTOPP_NO_VTABLE TF_SignerBase : public TF_SignatureSchemeBase > { public: @@ -519,7 +523,8 @@ public: size_t SignAndRestart(RandomNumberGenerator &rng, PK_MessageAccumulator &messageAccumulator, byte *signature, bool restart=true) const; }; -//! _ +//! \class TF_VerifierBase +//! \brief Trapdoor Function (TF) Verifier base class class CRYPTOPP_DLL CRYPTOPP_NO_VTABLE TF_VerifierBase : public TF_SignatureSchemeBase > { public: @@ -532,7 +537,11 @@ public: // ******************************************************** -//! _ +//! \class TF_CryptoSchemeOptions +//! \brief Trapdoor Function (TF) scheme options +//! \tparam T1 algorithm info class +//! \tparam T2 keys class with public and private key +//! \tparam T3 message encoding class template struct TF_CryptoSchemeOptions { @@ -543,14 +552,23 @@ struct TF_CryptoSchemeOptions typedef T3 MessageEncodingMethod; }; -//! _ +//! \class TF_SignatureSchemeOptions +//! \brief Trapdoor Function (TF) signature scheme options +//! \tparam T1 algorithm info class +//! \tparam T2 keys class with public and private key +//! \tparam T3 message encoding class +//! \tparam T4 HashTransformation class template struct TF_SignatureSchemeOptions : public TF_CryptoSchemeOptions { typedef T4 HashFunction; }; -//! _ +//! \class TF_ObjectImplBase +//! \brief Trapdoor Function (TF) base implementation +//! \tparam BASE base class +//! \tparam SCHEME_OPTIONS scheme options class +//! \tparam KEY_CLASS key class template class CRYPTOPP_NO_VTABLE TF_ObjectImplBase : public AlgorithmImpl { @@ -602,7 +620,12 @@ protected: } }; -//! _ +//! \class TF_ObjectImplExtRef +//! \brief Trapdoor Function (TF) signature with external reference +//! \tparam BASE base class +//! \tparam SCHEME_OPTIONS scheme options class +//! \tparam KEY_CLASS key class +//! \details TF_ObjectImplExtRef() holds a pointer to an external key structure template class TF_ObjectImplExtRef : public TF_ObjectImplBase { @@ -619,7 +642,12 @@ private: const KEY * m_pKey; }; -//! _ +//! \class TF_ObjectImpl +//! \brief Trapdoor Function (TF) signature scheme options +//! \tparam BASE base class +//! \tparam SCHEME_OPTIONS scheme options class +//! \tparam KEY_CLASS key class +//! \details TF_ObjectImpl() holds a reference to a trapdoor function template class CRYPTOPP_NO_VTABLE TF_ObjectImpl : public TF_ObjectImplBase { @@ -635,25 +663,34 @@ private: KeyClass m_trapdoorFunction; }; -//! _ +//! \class TF_DecryptorImpl +//! \brief Trapdoor Function (TF) decryptor options +//! \tparam SCHEME_OPTIONS scheme options class +template template class TF_DecryptorImpl : public TF_ObjectImpl { }; -//! _ +//! \class TF_EncryptorImpl +//! \brief Trapdoor Function (TF) encryptor options +//! \tparam SCHEME_OPTIONS scheme options class template class TF_EncryptorImpl : public TF_ObjectImpl { }; -//! _ +//! \class TF_SignerImpl +//! \brief Trapdoor Function (TF) encryptor options +//! \tparam SCHEME_OPTIONS scheme options class template class TF_SignerImpl : public TF_ObjectImpl { }; -//! _ +//! \class TF_VerifierImpl +//! \brief Trapdoor Function (TF) encryptor options +//! \tparam SCHEME_OPTIONS scheme options class template class TF_VerifierImpl : public TF_ObjectImpl {