@@ -84,27 +84,31 @@ class DBPS_EXPORT DBPSEncryptor {
8484 virtual std::vector<uint8_t > DecryptBlock (tcb::span<const uint8_t > data) = 0;
8585
8686 /* *
87- * Integration point: Encryption function based on typed list values that will be implemented by Protegrity.
88- *
87+ * Integration point: Encryption function based on list of values that will be implemented by Protegrity.
88+ *
8989 * The context-rich encryptor can use the additional parameters stored in the constructor:
9090 * column_name, user_id, key_id, application_context.
91- *
92- * @param typed_list A TypedListValues variant containing the decoded values.
93- * @return The encrypted data as a vector of bytes containing encrypted per-value payloads.
94- * @throws InvalidInputException if the input data is invalid or empty.
91+ *
92+ * This method encrypts individual values from a typed list (e.g., integers, floats, strings).
93+ *
94+ * @param typed_list The typed list of values to encrypt (variant type supporting multiple data types)
95+ * @return The encrypted data as a vector of bytes containing the encrypted typed list values
96+ * @throws InvalidInputException if the input data is invalid or empty
9597 */
96- virtual std::vector<uint8_t > EncryptValueList (const TypedListValues& typed_list) = 0;
98+ virtual std::vector<uint8_t > EncryptValueList (
99+ const TypedListValues& typed_list) = 0;
97100
98101 /* *
99102 * Integration point: Decryption function based on encrypted bytes that will be implemented by Protegrity.
100- *
101- * This method decrypts the encrypted byte vector containing only the typed value payloads .
102- *
103- * @param encrypted_bytes The encrypted data as a vector of bytes containing only the encrypted typed list.
104- * @return The decrypted typed list values.
105- * @throws InvalidInputException if the input data is invalid, empty, or corrupted.
103+ *
104+ * This method decrypts the encrypted byte vector containing only the typed list values .
105+ *
106+ * @param encrypted_bytes The encrypted data as a vector of bytes containing only the encrypted typed list
107+ * @return The decrypted TypedListValues
108+ * @throws InvalidInputException if the input data is invalid, empty, or corrupted
106109 */
107- virtual TypedListValues DecryptValueList (tcb::span<const uint8_t > encrypted_bytes) = 0;
110+ virtual TypedListValues DecryptValueList (
111+ tcb::span<const uint8_t > encrypted_bytes) = 0;
108112
109113protected:
110114 // Context parameters stored from constructor
@@ -113,4 +117,4 @@ class DBPS_EXPORT DBPSEncryptor {
113117 std::string user_id_;
114118 std::string application_context_;
115119 dbps::external::Type::type datatype_;
116- };
120+ };
0 commit comments