[SCM] Samba Shared Repository - branch master updated - f10d8b84159b5708c1dcf854758cdbd18b2bc033

Jelmer Vernooij jelmer at samba.org
Wed Sep 24 16:50:30 GMT 2008


The branch, master has been updated
       via  f10d8b84159b5708c1dcf854758cdbd18b2bc033 (commit)
      from  d2062ab74f7684f8b6975a7415fac23389851278 (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit f10d8b84159b5708c1dcf854758cdbd18b2bc033
Author: Jelmer Vernooij <jelmer at samba.org>
Date:   Wed Sep 24 18:49:58 2008 +0200

    Add separate header file for arcfour.

-----------------------------------------------------------------------

Summary of changes:
 lib/crypto/arcfour.h |   15 +++++++++++++++
 lib/crypto/crypto.h  |   11 +----------
 2 files changed, 16 insertions(+), 10 deletions(-)
 create mode 100644 lib/crypto/arcfour.h


Changeset truncated at 500 lines:

diff --git a/lib/crypto/arcfour.h b/lib/crypto/arcfour.h
new file mode 100644
index 0000000..501b3f2
--- /dev/null
+++ b/lib/crypto/arcfour.h
@@ -0,0 +1,15 @@
+#ifndef ARCFOUR_HEADER_H
+#define ARCFOUR_HEADER_H
+
+struct arcfour_state {
+	uint8_t sbox[256];
+	uint8_t index_i;
+	uint8_t index_j;
+};
+
+void arcfour_init(struct arcfour_state *state, const DATA_BLOB *key);
+void arcfour_crypt_sbox(struct arcfour_state *state, uint8_t *data, int len);
+void arcfour_crypt_blob(uint8_t *data, int len, const DATA_BLOB *key);
+void arcfour_crypt(uint8_t *data, const uint8_t keystr[16], int len);
+
+#endif /* ARCFOUR_HEADER_H */
diff --git a/lib/crypto/crypto.h b/lib/crypto/crypto.h
index 9cb16ad..0a43cbe 100644
--- a/lib/crypto/crypto.h
+++ b/lib/crypto/crypto.h
@@ -23,15 +23,6 @@
 #include "../lib/crypto/hmacmd5.h"
 #include "../lib/crypto/sha256.h"
 #include "../lib/crypto/hmacsha256.h"
+#include "../lib/crypto/arcfour.h"
 
-struct arcfour_state {
-	uint8_t sbox[256];
-	uint8_t index_i;
-	uint8_t index_j;
-};
-
-void arcfour_init(struct arcfour_state *state, const DATA_BLOB *key);
-void arcfour_crypt_sbox(struct arcfour_state *state, uint8_t *data, int len);
-void arcfour_crypt_blob(uint8_t *data, int len, const DATA_BLOB *key);
-void arcfour_crypt(uint8_t *data, const uint8_t keystr[16], int len);
 


-- 
Samba Shared Repository


More information about the samba-cvs mailing list