Commit Graph

63 Commits

Author SHA1 Message Date
Assar Westerlund
f2cf913bd2 (HMAC_SHA1_DES3_checksum): don't include the length
(checksum_sha1, checksum_hmac_sha1_des3): blocksize should be 64
(encrypt_internal_derived): don't include the length and don't
decrease by the checksum size twice
(_get_derived_key): the constant should be 5 bytes


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6295 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-06-03 23:06:10 +00:00
Assar Westerlund
03adfaa3b1 (DES3_postproc): new version that does the right thing
(*): don't put and recover length in 3DES encoding
other small fixes


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6294 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-06-03 17:36:04 +00:00
Assar Westerlund
fa88e29d84 (verify_checksum): call (*ct->checksum) directly, avoiding redundant
lookups and memory leaks


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6271 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-05-21 12:46:38 +00:00
Assar Westerlund
52df3677bb (F_PSEUDO): new flag for non-protocol encryption types
(do_checksum): new function
(verify_checksum): take the checksum to use from the checksum message
and not from the crypto struct
(etypes): add F_PSEUDO flags
(krb5_keytype_to_enctypes): new function


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6049 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-04-25 17:39:48 +00:00
Assar Westerlund
65f29bd32d (encrypt_internal): free checksum if lengths fail to match.
(krb5_get_wrapped_length): new function


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5904 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-04-10 15:10:00 +00:00
Johan Danielsson
9ae1fb3e0d (encrypt_internal): free checksum
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5829 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-04-01 17:02:55 +00:00
Johan Danielsson
586bae403b k_{put,get}_int -> _krb5_{put,get}_int
crc_{init_table,update} -> _krb5_crc_{init_table,update}


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5802 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-03-29 19:24:58 +00:00
Johan Danielsson
0eeee9f3fc n_fold -> _krb5_n_fold
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5776 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-03-27 16:48:42 +00:00
Assar Westerlund
f0c5eadce8 (krb5_crypto_destroy): free `crypto'
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5752 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-03-24 22:25:47 +00:00
Assar Westerlund
4ce9048b86 (krb5_verify_checksum): rename C -> cksum to be consistent
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5553 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-03-16 13:31:27 +00:00
Johan Danielsson
8f5094b857 (DES3_string_to_key): make this actually do what the draft said it
should


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5401 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-02-20 16:30:11 +00:00
Assar Westerlund
ad82c58082 (krb5_salttype_to_string): new function
(RSA_MD5_DES_verify, RSA_MD5_DES3_verify): initialize ret


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5365 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-02-15 21:03:38 +00:00
Johan Danielsson
aaae186ab9 merge new-crypto branch
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5332 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-02-11 21:03:59 +00:00