summaryrefslogtreecommitdiff
path: root/source/lib/crypto
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-03-07 16:25:28 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:52:31 -0500
commit6aa9675924c32a83122e7ebe86a736233b46c54f (patch)
treed4b4e34962aebbdbac5901e9b46604611ad707ed /source/lib/crypto
parentf87debeb12cebd734b47314554ab671c9e06237e (diff)
downloadsamba-6aa9675924c32a83122e7ebe86a736233b46c54f.tar.gz
r13953: make more functions public
metze
Diffstat (limited to 'source/lib/crypto')
-rw-r--r--source/lib/crypto/arcfour.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/lib/crypto/arcfour.c b/source/lib/crypto/arcfour.c
index cc5d2df5675..7cf61885949 100644
--- a/source/lib/crypto/arcfour.c
+++ b/source/lib/crypto/arcfour.c
@@ -24,7 +24,7 @@
#include "lib/crypto/crypto.h"
/* initialise the arcfour sbox with key */
-void arcfour_init(struct arcfour_state *state, const DATA_BLOB *key)
+_PUBLIC_ void arcfour_init(struct arcfour_state *state, const DATA_BLOB *key)
{
int ind;
uint8_t j = 0;
@@ -46,7 +46,7 @@ void arcfour_init(struct arcfour_state *state, const DATA_BLOB *key)
}
/* crypt the data with arcfour */
-void arcfour_crypt_sbox(struct arcfour_state *state, uint8_t *data, int len)
+_PUBLIC_ void arcfour_crypt_sbox(struct arcfour_state *state, uint8_t *data, int len)
{
int ind;
@@ -69,7 +69,7 @@ void arcfour_crypt_sbox(struct arcfour_state *state, uint8_t *data, int len)
/*
arcfour encryption with a blob key
*/
-void arcfour_crypt_blob(uint8_t *data, int len, const DATA_BLOB *key)
+_PUBLIC_ void arcfour_crypt_blob(uint8_t *data, int len, const DATA_BLOB *key)
{
struct arcfour_state state;
arcfour_init(&state, key);
@@ -80,7 +80,7 @@ void arcfour_crypt_blob(uint8_t *data, int len, const DATA_BLOB *key)
a variant that assumes a 16 byte key. This should be removed
when the last user is gone
*/
-void arcfour_crypt(uint8_t *data, const uint8_t keystr[16], int len)
+_PUBLIC_ void arcfour_crypt(uint8_t *data, const uint8_t keystr[16], int len)
{
DATA_BLOB key = data_blob(keystr, 16);