Skip to content
This repository was archived by the owner on Nov 11, 2021. It is now read-only.

Commit bef61bc

Browse files
author
John Coggeshall
committed
Initial Import
1 parent edd71a2 commit bef61bc

20 files changed

+1271
-0
lines changed

CREDITS

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
blenc
2+
John Coggeshall

EXPERIMENTAL

Whitespace-only changes.

bf_algo.c

+447
Large diffs are not rendered by default.

bf_algo.h

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
/*
2+
blowfish.h: Header file for blowfish.c
3+
4+
Copyright (C) 1997 by Paul Kocher
5+
6+
This library is free software; you can redistribute it and/or
7+
modify it under the terms of the GNU Lesser General Public
8+
License as published by the Free Software Foundation; either
9+
version 2.1 of the License, or (at your option) any later version.
10+
This library is distributed in the hope that it will be useful,
11+
but WITHOUT ANY WARRANTY; without even the implied warranty of
12+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13+
Lesser General Public License for more details.
14+
You should have received a copy of the GNU Lesser General Public
15+
License along with this library; if not, write to the Free Software
16+
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17+
18+
19+
See blowfish.c for more information about this file.
20+
*/
21+
22+
23+
typedef struct {
24+
unsigned long P[16 + 2];
25+
unsigned long S[4][256];
26+
} BLOWFISH_CTX;
27+
28+
void Blowfish_Init(BLOWFISH_CTX *ctx, unsigned char *key, int keyLen);
29+
void Blowfish_Encrypt(BLOWFISH_CTX *ctx, unsigned long *xl, unsigned long *xr);
30+
void Blowfish_Decrypt(BLOWFISH_CTX *ctx, unsigned long *xl, unsigned long *xr);
31+
32+
33+

blenc-1.0alpha.tgz

14.3 KB
Binary file not shown.

0 commit comments

Comments
 (0)