obrien
a061b503b2
Use __FBSDID().
2004-06-14 00:38:54 +00:00
des
526709ddfc
Fix a reentrancy issue in md5_calc().
2004-01-27 18:57:21 +00:00
ume
1570e45741
avoid module name conflict with opencrypto/rijndael.c.
...
Reported by: tinderbox
2003-11-12 04:22:37 +00:00
ume
45eaec6e09
cleanup rijndael API.
...
since there are naming conflicts with opencrypto, #define was
added to rename functions intend to avoid conflicts.
Obtained from: KAME
2003-11-11 18:58:54 +00:00
ume
c837f7353a
rijndael-alg-fst.[ch]:
...
- redo updating.
rijndael-api-fst.[ch]:
- switch to use new low level rijndael api.
- stop using u8, u16 and u32.
- space cleanup.
Tested by: gbde(8) and phk's test program
2003-11-10 10:33:39 +00:00
phk
a9be5f1dd2
Add a testcase which validates that the same buffer can be passed to
...
rijndael_blockDecrypt() as both input and output.
This property is important because inside rijndael we can get away
with allocating just a 16 byte "work" buffer on the stack (which
is very cheap), whereas the calling code would need to allocate the
full sized buffer, and in all likelyhood would have to do so with
an expensive malloc(9).
2003-10-19 22:12:23 +00:00
ume
3fbe7f497d
- revert to old rijndael code. new rijndael code broke gbde.
...
- since aes-xcbc-mac and aes-ctr require functions in new
rijndael code, aes-xcbc-mac and aes-ctr are disabled for now.
2003-10-19 21:28:34 +00:00
ume
5179f35bb1
Fix alignment problem on 64 bit arch.
...
I only tested if it doesn't break anything on i368. Since I
have no 64 bit machine, I cannot test it, actually.
Reported by: jmallett
2003-10-14 13:37:37 +00:00
ume
7008e2cbf3
use BF_ecb_encrypt().
...
Obtained from: KAME
2003-10-13 19:26:08 +00:00
ume
efe21e875c
simplify and update rijndael code.
...
Obtained from: KAME
2003-10-12 21:05:05 +00:00
ume
a2306a7a4f
use opencrypto for RMD160.
...
Requested by: sam
2003-10-12 18:25:38 +00:00
ume
a9223f3830
drop useless define.
2003-10-12 14:47:24 +00:00
ume
03914e55e9
use bswap32() for big endian arch.
...
Reported by: tinderbox via kris
2003-10-12 14:32:13 +00:00
ume
086e3c2e3d
RIPEMD160 support
...
Obtained from: KAME
2003-10-12 09:43:48 +00:00
ume
608a16c286
switch cast128 implementation to implementation by Steve Reid;
...
smaller footprint.
Obtained from: KAME
2003-10-10 15:06:16 +00:00
ume
459b267b54
one more opossite conditiion.
...
Reported by: "lg" <zevlg@yandex.ru>
2003-09-18 17:26:56 +00:00
ume
24d3a57a8a
condition of padLen check was opposite.
...
Reported by: "lg" <zevlg@yandex.ru>
Reviewed by: Lev Walkin <vlm@netli.com>
2003-09-17 08:51:43 +00:00
phk
f001498bd6
Correctly bzero the entire context, not just the first sizeof(void *) bytes.
...
Found by: Juergen Buchmueller <pullmoll@stop1984.com>
2003-09-08 18:32:33 +00:00
obrien
d3e0f93248
Use __FBSDID().
2003-06-10 21:44:29 +00:00
obrien
c7823555a5
Assembly files put thru the C preprocessor need to have C style comments.
2003-04-21 16:30:12 +00:00
silby
419ecf1e9a
Remove some unnecessary casts.
2003-01-25 22:41:22 +00:00
sam
dfb24ad602
make rc4 crypto support a module so other modules can depend on it
...
Submitted by: imp
Reviewed by: imp
2003-01-15 19:55:17 +00:00
phk
65c88c61e7
Make this compilable from userland as well.
2002-11-01 08:56:39 +00:00
phk
a98111752e
Don't panic when we can just return an error code.
2002-10-14 11:21:05 +00:00
markm
80d125c324
Fix some really pedantic GCC warnings.
2002-07-15 13:45:15 +00:00
suz
4f2a6f39e2
Fixed AES encryption algorithm bug
...
PR: kern/38465
Obtained from: Ramana Yarlagadda <ramana.yarlagadda@analog.com>
2002-05-24 07:26:17 +00:00
markm
6b7b2fccb8
Remove macros that are defined elsewhere.
2002-04-21 10:32:48 +00:00
suz
1646c3c0d2
just merged cosmetic changes from KAME to ease sync between KAME and FreeBSD.
...
(based on freebsd4-snap-20020128)
Reviewed by: ume
MFC after: 1 week
2002-04-19 04:46:24 +00:00
alfred
7894a6f8a7
Remove __P.
2002-03-20 05:14:42 +00:00
ume
d175ccea58
- Speedup 3DES by using assembly code for i386.
...
- Sync des/blowfish to more recent openssl.
Obtained from: KAME/NetBSD
MFC after: 2 weeks
2002-03-05 09:19:02 +00:00
ume
0a1dde7902
off by one error in Aaron Gifford's code. KAME PR 393.
...
PR: kern/34242
Submitted by: Aaron D. Gifford <agifford@infowest.com>
MFC after: 1 week
2002-02-26 16:58:58 +00:00
ume
34779a7b1f
fixed the cast128 calculation with a short cipher key length.
...
the memory was overridden when the key length was less than 16 bytes.
Obtained from: KAME
MFC after: 1 week
2001-11-27 14:11:47 +00:00
ume
ab36530fcd
properly check DES weak key. KAME PR 363.
...
Obtained from: KAME
MFC after: 1 week
2001-07-03 17:46:48 +00:00
ume
05426787d2
less warning
...
warning: cast discards qualifiers from pointer target type
2001-06-16 19:32:37 +00:00
ume
0a280413cc
Sync with recent KAME.
...
This work was based on kame-20010528-freebsd43-snap.tgz and some
critical problem after the snap was out were fixed.
There are many many changes since last KAME merge.
TODO:
- The definitions of SADB_* in sys/net/pfkeyv2.h are still different
from RFC2407/IANA assignment because of binary compatibility
issue. It should be fixed under 5-CURRENT.
- ip6po_m member of struct ip6_pktopts is no longer used. But, it
is still there because of binary compatibility issue. It should
be removed under 5-CURRENT.
Reviewed by: itojun
Obtained from: KAME
MFC after: 3 weeks
2001-06-11 12:39:29 +00:00
markm
2014aab37e
Kernel crypto need binary key material, not symbolic ascii.
2001-03-10 13:02:58 +00:00
kris
4428898a98
This commit was generated by cvs2svn to compensate for changes in r67957,
...
which included commits to RCS files with non-trunk default branches.
2000-10-30 11:03:32 +00:00
kris
39f0a768bf
Initial import of AES algorithm code (aka Rijndael) from KAME.
2000-10-30 11:03:32 +00:00
archie
539931c1c6
Fix broken const'ness in declaration of sha1_loop().
2000-10-09 18:49:14 +00:00
itojun
7babc58a35
sync with kame tree as of july00. tons of bug fixes/improvements.
...
API changes:
- additional IPv6 ioctls
- IPsec PF_KEY API was changed, it is mandatory to upgrade setkey(8).
(also syntax change)
2000-07-04 16:35:15 +00:00
phk
43018e3fb6
Remove ~25 unneeded #include <sys/conf.h>
...
Remove ~60 unneeded #include <sys/malloc.h>
2000-04-19 14:58:28 +00:00
archie
a987047e0f
A simplified RC4 implementation for kernel use.
2000-04-09 21:01:01 +00:00
archie
9899817f0b
Fix bogus const-ness in declaration of sha1_loop().
2000-04-09 20:10:55 +00:00
shin
405dcaec84
Prototype fix for IPsec authentication related functions
...
Some of IPsec authentication related functions should have
'const' for its 2nd argument, but not now.
But if someone try to use them, and passed const data for
those functions, then much bogus compile warnings will be
generated.
So those funcs prototype should be modified.
Requested by: archie
Approved by: jkh
2000-02-10 19:35:53 +00:00
peter
4a06465a4e
Change #ifdef KERNEL to #ifdef _KERNEL in the public headers. "KERNEL"
...
is an application space macro and the applications are supposed to be free
to use it as they please (but cannot). This is consistant with the other
BSD's who made this change quite some time ago. More commits to come.
1999-12-29 05:07:58 +00:00
shin
d880477697
IPSEC support in the kernel.
...
pr_input() routines prototype is also changed to support IPSEC and IPV6
chained protocol headers.
Reviewed by: freebsd-arch, cvs-committers
Obtained from: KAME project
1999-12-22 19:13:38 +00:00