summaryrefslogtreecommitdiff
path: root/src/common/des.c
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2018-07-01 21:51:00 +0200
committerGitHub <noreply@github.com>2018-07-01 21:51:00 +0200
commit0a151c27ebef40f965cd87f436c72c044a3284ac (patch)
treed2892f1fe37846f56da93c89aa0b29e9442205ca /src/common/des.c
parent392238d4a9fe4ca3cc68098d9709c27c92409c8b (diff)
parent42f7eb821648b0076163faf968a83ab5dd2ce672 (diff)
downloadhercules-0a151c27ebef40f965cd87f436c72c044a3284ac.tar.gz
hercules-0a151c27ebef40f965cd87f436c72c044a3284ac.tar.bz2
hercules-0a151c27ebef40f965cd87f436c72c044a3284ac.tar.xz
hercules-0a151c27ebef40f965cd87f436c72c044a3284ac.zip
Merge pull request #2112 from MishimaHaruna/staticfunctions
Staticfunctions
Diffstat (limited to 'src/common/des.c')
-rw-r--r--src/common/des.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/common/des.c b/src/common/des.c
index 2223f4744..fbd158265 100644
--- a/src/common/des.c
+++ b/src/common/des.c
@@ -29,7 +29,7 @@
* Implementation of the des interface.
*/
-struct des_interface des_s;
+static struct des_interface des_s;
struct des_interface *des;
/// Bitmask for accessing individual bits of a byte.
@@ -228,7 +228,7 @@ static void des_RoundFunction(struct des_bit64 *src)
}
/// @copydoc des_interface::decrypt_block()
-void des_decrypt_block(struct des_bit64 *block)
+static void des_decrypt_block(struct des_bit64 *block)
{
des_IP(block);
des_RoundFunction(block);
@@ -236,7 +236,7 @@ void des_decrypt_block(struct des_bit64 *block)
}
/// @copydoc des_interface::decrypt()
-void des_decrypt(unsigned char *data, size_t size)
+static void des_decrypt(unsigned char *data, size_t size)
{
struct des_bit64 *p = (struct des_bit64 *)data;
size_t i;