X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;ds=inline;f=ucw%2Fdoc%2Fhash.txt;h=3e01b94156c23de6d9a79f7732f7992954787a89;hb=f501fcf311379b78506474478a17d82382b753e4;hp=bac3b9c9aeb1f3d44adc5ea6988f9ba243302052;hpb=b5b7b2641b00a18b53c48a1335846133f1d53168;p=libucw.git diff --git a/ucw/doc/hash.txt b/ucw/doc/hash.txt index bac3b9c9..3e01b941 100644 --- a/ucw/doc/hash.txt +++ b/ucw/doc/hash.txt @@ -6,33 +6,38 @@ Libucw contains two cryptographic hash algorithms: MD5 (RFC 1321) and SHA1 (RFC There are non-cryptographic hashes as well. -Cryptographic ones ------------------- +<>: - <> - <> - <> - <> -Non-cryptographic ones ----------------------- +<>: +- <> + +<>: - <> - <> +[[crypto]] +Cryptographic hashes +-------------------- + [[md5]] MD5 ---- +~~~ !!ucw/md5.h [[sha1]] SHA1 ----- +~~~~ !!ucw/sha1.h [[usage]] Common usage ------------- +~~~~~~~~~~~~ There are two ways you can use the hashing routines. @@ -61,4 +66,23 @@ SHA1 has the same interface, so the same two ways apply. See also <>. +[[checksum]] +Checksums +--------- + +Their purpose is checking against random data changes, hardware +failures and alike. They are not to be used against aimed attacks. + +The <> is documented in the +<>. + +[[nocrypto]] +Non-cryptographic hashes +------------------------ + +They are usually used to identify values in hash tables. + +All these functions expect to be moduled by the size of a hash table. +The size should be a prime number (it gives better distribution). + !!ucw/hashfunc.h