Commit Graph

609 Commits

Author SHA1 Message Date
Love Hörnquist Åstrand
800d5b5cc8 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19274 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-07 16:37:53 +00:00
Love Hörnquist Åstrand
758f8afd95 CLEANFILES += test_crypto
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19270 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-07 16:28:14 +00:00
Love Hörnquist Åstrand
9de2bce244 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19232 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-06 07:48:46 +00:00
Love Hörnquist Åstrand
e7a2d233f5 Add rsakey.der to EXTRA_DIST.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19231 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-06 07:48:27 +00:00
Love Hörnquist Åstrand
38f4b80b48 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19225 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-05 22:45:42 +00:00
Love Hörnquist Åstrand
db71758e08 Add test_crypto.in to EXTRA_DIST.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19224 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-05 22:28:00 +00:00
Love Hörnquist Åstrand
8079e0a3dd Split built programs and scripts for tests
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19223 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-05 19:57:07 +00:00
Love Hörnquist Åstrand
fb4bac7d1a x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19220 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-05 07:44:08 +00:00
Love Hörnquist Åstrand
7930ababe4 Add more spaces to allow sh to parse this
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19219 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-05 07:39:08 +00:00
Love Hörnquist Åstrand
0afbff54bc x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19218 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-04 23:55:05 +00:00
Love Hörnquist Åstrand
084786dcf9 Explain what the fixed "sha1" checksum test tries to test.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19217 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-04 23:53:30 +00:00
Love Hörnquist Åstrand
768fb6de89 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19211 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-04 23:22:01 +00:00
Love Hörnquist Åstrand
a4990b9b3c x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19210 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-04 21:56:34 +00:00
Love Hörnquist Åstrand
7a5f41d9a1 rsa and crypto engine test cases
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19209 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-04 21:40:56 +00:00
Love Hörnquist Åstrand
26b0f36b4f Make faster and less verbose
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19208 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-04 21:40:19 +00:00
Love Hörnquist Åstrand
31bfa2d1cb test rsa key
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19207 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-04 21:36:19 +00:00
Love Hörnquist Åstrand
c50d6599af Test rsa operations
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19206 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-04 21:33:05 +00:00
Love Hörnquist Åstrand
49c442c958 Fix the rsa-decrypt failed case that been hauting me for a while.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19205 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-04 21:31:30 +00:00
Love Hörnquist Åstrand
d37ea650ff Revert preious, something fishy is going on.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19204 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-02 09:14:55 +00:00
Love Hörnquist Åstrand
ded1164b42 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19203 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-02 09:00:29 +00:00
Love Hörnquist Åstrand
9dc51937ea Use mp_int_to_binary to encode bignums
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19202 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-02 08:59:59 +00:00
Love Hörnquist Åstrand
89f9b6b049 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19201 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-02 08:49:39 +00:00
Love Hörnquist Åstrand
548ec1a806 Check if header is there
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19200 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-02 08:49:16 +00:00
Love Hörnquist Åstrand
b54d852966 add RSA_PKCS1_OAEP_PADDING
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19193 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-29 11:51:50 +00:00
Love Hörnquist Åstrand
da9641ef4f split return values.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19170 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-28 11:48:01 +00:00
Love Hörnquist Åstrand
d2857fa912 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19150 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-27 11:41:03 +00:00
Love Hörnquist Åstrand
28229b426f Return -1 for failure.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19149 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-27 11:24:33 +00:00
Love Hörnquist Åstrand
96df083d5d Its ok with smaller signatures.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19148 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-27 11:12:11 +00:00
Love Hörnquist Åstrand
efaed32112 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19136 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-27 10:06:06 +00:00
Love Hörnquist Åstrand
81798cfcd3 Split error codes for now
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19135 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-27 10:04:30 +00:00
Love Hörnquist Åstrand
25622c7c44 (d2i_RSAPrivateKey): Return NULL on failure
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18857 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-24 12:52:38 +00:00
Love Hörnquist Åstrand
3c74296627 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18800 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-21 23:09:08 +00:00
Love Hörnquist Åstrand
51f86669ef Try to not leak memory.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18799 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-21 23:07:32 +00:00
Love Hörnquist Åstrand
6968267966 (unix_bytes): read until the other side give us all or fail.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18794 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-21 21:09:14 +00:00
Love Hörnquist Åstrand
2f361edfd3 x
x


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18783 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-21 19:53:42 +00:00
Love Hörnquist Åstrand
7eadb147b2 (RSA_free): free the whole key
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18782 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-21 19:53:00 +00:00
Love Hörnquist Åstrand
b4c55d807b add imath-1.7
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18759 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-21 16:32:36 +00:00
Love Hörnquist Åstrand
8833c418b6 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18758 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-21 15:47:52 +00:00
Love Hörnquist Åstrand
dd7de52a6f Add more dh tests.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18756 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-21 15:44:55 +00:00
Love Hörnquist Åstrand
5186425a4c x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18650 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-20 15:07:09 +00:00
Love Hörnquist Åstrand
20b7f3a475 Allocate more bits.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18649 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-20 15:04:51 +00:00
Love Hörnquist Åstrand
52d3f32887 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18646 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-20 06:57:58 +00:00
Love Hörnquist Åstrand
c766b40350 (dh_compute_key): fix signness test
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18645 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-20 06:56:57 +00:00
Love Hörnquist Åstrand
aa144a7ac6 make compile
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18644 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-20 06:49:45 +00:00
Love Hörnquist Åstrand
3b8b6b225b x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18643 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-20 06:40:01 +00:00
Love Hörnquist Åstrand
4c4e6c6307 Try harder to generate a good keypair.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18642 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-20 06:37:33 +00:00
Love Hörnquist Åstrand
a8c422b4c0 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18640 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-20 06:06:03 +00:00
Love Hörnquist Åstrand
cbc95607d5 Return -1 dh_compute_key on failure, pointed out by Olga Kornievskaia.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18639 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-20 05:58:22 +00:00
Love Hörnquist Åstrand
5638b99725 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18635 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-19 20:54:55 +00:00
Love Hörnquist Åstrand
acdc89e5b0 Add hash.h and des-tables.h.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18634 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-19 20:54:20 +00:00