[Openswan dev] algorithm code - ipsec_alg.h
Michael Richardson
mcr at sandelman.ottawa.on.ca
Sun Mar 21 19:44:21 CET 2004
-----BEGIN PGP SIGNED MESSAGE-----
JuanJo, why did you do:
#define IPSEC_ALG_STRUCT_COMMON stuff
struct ipsec_alg {
IPSEC_ALG_STRUCT_COMMON
};
/*
* Note the const in cbc_encrypt IV arg:
* some ciphers like to toast passed IV (eg. 3DES): make a local IV copy
*/
struct ipsec_alg_enc {
IPSEC_ALG_STRUCT_COMMON
unsigned ixt_e_keylen; /* raw key length in bytes */
instead of doing:
struct ipsec_alg {
stuff;
};
struct ipsec_alg_eng {
struct ipsec_alg common;
unsigned ixt_e_keylen;
....
};
- --
] ON HUMILITY: to err is human. To moo, bovine. | firewalls [
] Michael Richardson, Xelerance Corporation, Ottawa, ON |net architect[
] mcr at xelerance.com http://www.sandelman.ottawa.on.ca/mcr/ |device driver[
] panic("Just another Debian GNU/Linux using, kernel hacking, security guy"); [
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)
Comment: Finger me for keys
iQCVAwUBQF4244qHRg3pndX9AQFGVQQAw8EzlOBdY6x6QsLBCtpWOYFqJyyuyzl7
t54emylmxhBwYN2jRCddsi5+aUB4MjnwWyJxZFIo0r40p/u+BeDeykzojIBXE6IU
ZEixvFD+Dk1oHk0Q/P/yu4YIU6sve80eqGxgwXHpxCVLUdFj6kvJ5PGmfg1ySHmF
rx6tJAury0E=
=qyT1
-----END PGP SIGNATURE-----
More information about the Dev
mailing list