mirror_corosync/exec
Fabio M. Di Nitto 737de4dbd4 crypto: change network packets and add dynamic crypto header/data
The new network packet will look:

struct crypto_config_header * that provides info on crypto/hashing
hash_block[size based on hashing function] (if hash is selected)
salt[SALT_SIZE] (if crypto is selected)
...data...

and we kill the concept of crypto_security_header completely since
values are now dynamic for hash_block_size.

the reason why hash_block needs to be there, is because we do
hash salt in case both hashing and crypto are selected.

the crypto_config_header is totally transparent to totem
and to any underlaying crypto functions.

as we go cleaning, also use HASH_BLOCK_SIZE to generate hash_block.
the input buffer and output buffer size are dependent on the algo
used to hash.

we can now determine the real header size and adjust net_mtu properly
at startup. This will allow in future to use any algorithm since
size is dynamic.

some part of the code still needs some polishing to make it more
readable (specially the mapping of pointers into the packet
is still a bit obscure).

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Reviewed-by: Jan Friesse <jfriesse@redhat.com>
2012-03-14 15:57:01 +01:00
..
.gitignore Add .gitignore files. 2010-10-21 07:43:46 -07:00
apidef.c sync: kill evil and syncv1 in one shot 2012-03-09 11:15:08 +01:00
apidef.h Update copyright header dates in exec directory 2012-02-13 17:05:04 -07:00
cfg.c cfg: remove crypto_set 2012-03-13 12:23:10 +01:00
cmap.c Move hdb_error_to_cs to corotypes.h 2012-02-14 11:10:14 +11:00
coroparse.c Parse and use hash and crypto from config file 2012-03-13 17:38:59 +01:00
cpg.c sync: kill evil and syncv1 in one shot 2012-03-09 11:15:08 +01:00
cs_queue.h Update copyright header dates in exec directory 2012-02-13 17:05:04 -07:00
fsm.h Update copyright header dates in exec directory 2012-02-13 17:05:04 -07:00
icmap.c cmap: Handle NULL in [i]cmap_set_string value 2012-02-16 10:47:57 +01:00
ipc_glue.c drop evs service 2012-03-12 15:51:50 +01:00
logsys.c Remove unused function logsys_priority_name_get() 2012-03-09 21:54:51 +11:00
main.c utils: cleanup main daemon exit codes 2012-03-09 11:15:44 +01:00
main.h Update copyright header dates in exec directory 2012-02-13 17:05:04 -07:00
mainconfig.c sync: kill evil and syncv1 in one shot 2012-03-09 11:15:08 +01:00
mainconfig.h sync: kill evil and syncv1 in one shot 2012-03-09 11:15:08 +01:00
Makefile.am Rename totemcrypto 2012-03-13 17:38:46 +01:00
mon.c sync: kill evil and syncv1 in one shot 2012-03-09 11:15:08 +01:00
pload.c pload: make it a test service and not a public one 2012-03-12 07:11:51 +01:00
quorum.c sync: kill evil and syncv1 in one shot 2012-03-09 11:15:08 +01:00
quorum.h Update copyright header dates in exec directory 2012-02-13 17:05:04 -07:00
schedwrk.c Update copyright header dates in exec directory 2012-02-13 17:05:04 -07:00
schedwrk.h Update copyright header dates in exec directory 2012-02-13 17:05:04 -07:00
service.c drop evs service 2012-03-12 15:51:50 +01:00
service.h drop evs service 2012-03-12 15:51:50 +01:00
sync.c sync: kill evil and syncv1 in one shot 2012-03-09 11:15:08 +01:00
sync.h sync: kill evil and syncv1 in one shot 2012-03-09 11:15:08 +01:00
timer.c Update copyright header dates in exec directory 2012-02-13 17:05:04 -07:00
timer.h Update copyright header dates in exec directory 2012-02-13 17:05:04 -07:00
totemconfig.c crypto: drop secauth and make crypto none work again 2012-03-14 11:28:36 +01:00
totemconfig.h Tweak nodeid warning 2012-02-21 16:33:56 +01:00
totemcrypto.c crypto: change network packets and add dynamic crypto header/data 2012-03-14 15:57:01 +01:00
totemcrypto.h crypto: change network packets and add dynamic crypto header/data 2012-03-14 15:57:01 +01:00
totemiba.c iba: Use configured node id 2012-02-21 16:27:16 +01:00
totemiba.h Update copyright header dates in exec directory 2012-02-13 17:05:04 -07:00
totemip.c Always set interface_up in totemip_iface_check 2012-03-02 09:41:36 +01:00
totemmrp.c totemmrp: Allow compilation without warnings 2011-10-24 17:43:32 +02:00
totemmrp.h Update copyright header dates in exec directory 2012-02-13 17:05:04 -07:00
totemnet.c Update copyright header dates in exec directory 2012-02-13 17:05:04 -07:00
totemnet.h libqb: convert coropoll calls to qb_loop calls. 2011-08-09 10:37:14 +10:00
totempg.c Update copyright header dates in exec directory 2012-02-13 17:05:04 -07:00
totemrrp.c Update copyright header dates in exec directory 2012-02-13 17:05:04 -07:00
totemrrp.h Store rrp faulty status of ring in cmap 2012-01-11 14:12:06 +01:00
totemsrp.c Remove libtomcrypt 2012-03-13 09:19:47 +01:00
totemsrp.h Update copyright header dates in exec directory 2012-02-13 17:05:04 -07:00
totemudp.c totem: don't send garbage onwire if we fail to crypt 2012-03-14 15:30:40 +01:00
totemudp.h Update copyright header dates in exec directory 2012-02-13 17:05:04 -07:00
totemudpu.c totem: don't send garbage onwire if we fail to crypt 2012-03-14 15:30:40 +01:00
totemudpu.h Update copyright header dates in exec directory 2012-02-13 17:05:04 -07:00
util.c drop evs service 2012-03-12 15:51:50 +01:00
util.h pload: make it a test service and not a public one 2012-03-12 07:11:51 +01:00
votequorum.c sync: kill evil and syncv1 in one shot 2012-03-09 11:15:08 +01:00
votequorum.h Remove include/engine/quorum and integrate it into exec/engine.h 2012-02-08 08:31:10 -07:00
vsf_quorum.c sync: kill evil and syncv1 in one shot 2012-03-09 11:15:08 +01:00
vsf_ykd.c Update copyright header dates in exec directory 2012-02-13 17:05:04 -07:00
vsf_ykd.h Remove include/engine/quorum and integrate it into exec/engine.h 2012-02-08 08:31:10 -07:00
vsf.h Update copyright header dates in exec directory 2012-02-13 17:05:04 -07:00
wd.c sync: kill evil and syncv1 in one shot 2012-03-09 11:15:08 +01:00