summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2024-03-10 15:58:58 +0000
committerSadie Powell <sadie@witchery.services>2024-03-10 15:58:58 +0000
commit3b85a8071f4d7238088834b4924af79b57cb36d1 (patch)
treede9d0cb005f9c81c8cb3f88a23cb647fdaa23d81 /include
parent9a8cac060d60aee638e368e96afb46967d6d8190 (diff)
Add some missing documentation comments.
Diffstat (limited to 'include')
-rw-r--r--include/modules/encryption.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/modules/encryption.h b/include/modules/encryption.h
index 71d35044a..b8ec8ff58 100644
--- a/include/modules/encryption.h
+++ b/include/modules/encryption.h
@@ -72,6 +72,7 @@ namespace Encryption
/** Creates a new encryption context. */
virtual std::unique_ptr<Context> CreateContext() = 0;
+ /** Quickly encrypts the specified values and returns the digest. */
template<typename... Args>
Anope::string Encrypt(Args &&...args)
{
@@ -80,6 +81,7 @@ namespace Encryption
return context->Finalize();
}
+ /** Calculates the RFC 2104 hash-based message authentication code for the specified data. */
inline Anope::string HMAC(const Anope::string &key, const Anope::string &data)
{
if (!block_size)