summaryrefslogtreecommitdiff
path: root/source4/lib/crypto
diff options
context:
space:
mode:
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);