14 #define DISABLE_DEBUGLOG
19 #include <gwenhywfar/mdigest.h>
20 #include <gwenhywfar/cryptkey.h>
21 #include <gwenhywfar/cryptdefs.h>
22 #include <gwenhywfar/cryptkeysym.h>
23 #include <gwenhywfar/padd.h>
24 #include <gwenhywfar/text.h>
25 #include <gwenhywfar/debug.h>
29 #define BLOWFISH_KEYSIZE 32
38 const uint8_t *pKey) {
77 for (i=0; i<iterations; i++) {
139 len=((v1[0]<<8)+v1[1]) & 0x3fff;
159 const uint8_t *pKey) {
191 for (i=0; i<iterations; i++) {
195 memmove(key, p+(len-
sizeof(key)),
sizeof(key));
236 const char *password,
238 int passwordIterations,
239 int cryptIterations) {
342 const char *password,
344 int passwordIterations,
345 int cryptIterations) {
360 lDest=(p[0]<<8)+p[1];
403 rv=
_decode(p, len, tbuf2, cryptIterations);
423 lDest=(p[0]<<8)+p[1];
433 lDest=(p[0]<<8)+p[1];