summaryrefslogtreecommitdiff
path: root/source4/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
commitf3f19158bb3e1307337c77f06991441f3c70a1e6 (patch)
treefcbe0741414cadabc1b0c3abb208f01a2b5c244e /source4/lib/crypto
parentf8fdbc967c774a1d62f87a534e4990d83ecc6b67 (diff)
downloadsamba-f3f19158bb3e1307337c77f06991441f3c70a1e6.tar.gz
samba-f3f19158bb3e1307337c77f06991441f3c70a1e6.tar.bz2
samba-f3f19158bb3e1307337c77f06991441f3c70a1e6.zip
r13953: make more functions public
metze (This used to be commit 6aa9675924c32a83122e7ebe86a736233b46c54f)
Diffstat (limited to 'source4/lib/crypto')
-rw-r--r--source4/lib/crypto/arcfour.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source4/lib/crypto/arcfour.c b/source4/lib/crypto/arcfour.c
index cc5d2df567..7cf6188594 100644
--- a/source4/lib/crypto/arcfour.c
+++ b/source4/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);