From 16d4392573829b5b02db449778cdc4bc4b2e0cbc Mon Sep 17 00:00:00 2001
From: Michael <heluecht@pirati.ca>
Date: Sat, 1 Apr 2017 09:05:56 +0000
Subject: [PATCH] Documentation added

---
 include/dfrn.php | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/include/dfrn.php b/include/dfrn.php
index acd16dc618..4002bb4268 100644
--- a/include/dfrn.php
+++ b/include/dfrn.php
@@ -864,10 +864,26 @@ class dfrn {
 		return $entry;
 	}
 
+	/**
+	 * @brief encrypts data via AES
+	 *
+	 * @param string $data The data that is to be encrypted
+	 * @param string $key The AES key
+	 *
+	 * @return string encrypted data
+	 */
 	private static function aes_encrypt($data, $key) {
 		return openssl_encrypt($data, 'aes-128-ecb', $key, OPENSSL_RAW_DATA);
 	}
 
+	/**
+	 * @brief decrypts data via AES
+	 *
+	 * @param string $encrypted The encrypted data
+	 * @param string $key The AES key
+	 *
+	 * @return string decrypted data
+	 */
 	public static function aes_decrypt($encrypted, $key) {
 		return openssl_decrypt($encrypted, 'aes-128-ecb', $key, OPENSSL_RAW_DATA);
 	}
-- 
2.39.5