Commit Graph

18 Commits

Author SHA1 Message Date
Nicolas Williams
5b1c69b424 hcrypto: Fix UB 2022-11-01 16:10:57 -05:00
Joseph Sutton
20f038f4f0 hcrypto: Use memset_s() when clearing sensitive buffers
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
2022-04-30 13:35:52 -04:00
Jeffrey Altman
2e54dc7aae lib/hcrypto: DES_cfb64_encrypt init buffer in decrypt path 2022-01-20 21:29:11 -05:00
Joseph Sutton
1c93a6ff26 heimdal: Avoid overflow when performing bitwise shift operations
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
2022-01-18 00:31:45 -05:00
Jeffrey Altman
0f97855826 hcrypto: config/roken cleanup
All source files in lib/hcrypto should be built the same way.
Since this source directory is dependent on libroken then all source
files must be built using the roken.h declarations and included headers.

Also, there is no config.h in the local directory so angle brackets
include of quotes should be used.

Finally, because roken.h includes stdio.h, stdlib.h, stdarg.h, limits.h,
strings.h, sys/types.h, etc., do not include them separately.

Start all source files with

  #include <config.h>
  #include <roken.h>

Change-Id: I09ab47f8a5472018efe6c8b59a0e51fde8f24724
2016-04-10 17:05:07 -05:00
Love Hornquist Astrand
0879b9831a remove trailing whitespace 2011-05-21 11:57:31 -07:00
Love Hornquist Astrand
dd04b1d7ba make DES_is_weak_key ct 2010-01-01 13:08:04 +01:00
Love Hornquist Astrand
1cd2e05d82 ct comment 2009-08-15 13:27:55 +02:00
Love Hornquist Astrand
3a031244bc Drop RCSID and HAVE_CONFIG_H 2009-08-05 13:37:37 +02:00
Love Hörnquist Åstrand
6937d41a02 remove trailing whitespace
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23815 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-09-13 09:21:03 +00:00
Love Hörnquist Åstrand
e172367898 switch to utf8 encoding of all files
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23814 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-09-13 08:53:55 +00:00
Love Hörnquist Åstrand
ef8fb15a24 Remove inifinite loop in DES_set_key().
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23117 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-04-28 10:29:36 +00:00
Love Hörnquist Åstrand
d19258fc90 Document missing functions, add DES_check_key_parity().
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23108 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-04-27 18:51:08 +00:00
Love Hörnquist Åstrand
c4be15581c DES is withdrawn.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23055 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-04-18 13:03:52 +00:00
Love Hörnquist Åstrand
70739a0c3c Document using doxygen.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23053 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-04-18 13:03:44 +00:00
Love Hörnquist Åstrand
53db625805 History of DES.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23050 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-04-18 13:03:31 +00:00
Love Hörnquist Åstrand
e2e068dbf0 Add documentation.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23036 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-04-18 10:02:04 +00:00
Love Hörnquist Åstrand
7ba2b2006c rename des to hcrypto
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20466 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-04-20 08:29:05 +00:00