From d42b2348f8ea0b501172b9306a26e702fef6bfbf Mon Sep 17 00:00:00 2001 From: Cedric Sirianni Date: Sun, 10 Dec 2023 18:18:06 -0500 Subject: [PATCH] docs: add description of offset parameter --- backend/src/cryptography.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backend/src/cryptography.hpp b/backend/src/cryptography.hpp index 10542e0..32a6f1d 100644 --- a/backend/src/cryptography.hpp +++ b/backend/src/cryptography.hpp @@ -28,6 +28,7 @@ namespace cryptography * * @param password the password to encrypt * @param b the secret key + * @param offset the number of bytes to leak * @return std::string the encrypted password */ std::string encryptPassword(const std::string &password, unsigned char *b, size_t offset = 0); @@ -37,6 +38,7 @@ namespace cryptography * * @param passwords the set of passwords to encrypt * @param b the secret key + * @param offset the number of bytes to leak * @return std::vector the encrypted passwords */ std::vector encrypt(const std::unordered_set &passwords,