Displaying 1 result from an estimated 1 matches for "esegment_size".
2007 Feb 24
1
Bigcrypt password patch
...length in segments of 8 characters this
+ * function can deal with (16 segments of 8 chars= max 128 character
+ * password).
+ */
+
+#define MAX_PASS_LEN 16
+#define SEGMENT_SIZE 8
+#define SALT_SIZE 2
+#define KEYBUF_SIZE ((MAX_PASS_LEN*SEGMENT_SIZE)+SALT_SIZE)
+#define ESEGMENT_SIZE 11
+#define CBUF_SIZE ((MAX_PASS_LEN*ESEGMENT_SIZE)+SALT_SIZE+1)
@@ -19,3 +64,74 @@ char *mycrypt(const char *key, const cha
{
- return crypt(key, salt);
+ char *dec_c2_cryptbuf;
+
+ unsigned long int keylen, n_seg, j;
+ char *cipher_ptr, *plaintext_ptr, *tmp_p...