Love Hörnquist Åstrand
252f0b771d
Fix output length, with this the code sign and verfies cms data.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24668 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-02-09 17:18:34 +00:00
Love Hörnquist Åstrand
0d03799468
spelling
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24667 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-02-09 17:18:16 +00:00
Love Hörnquist Åstrand
18512a864c
fix quoting
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24666 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-02-09 17:17:59 +00:00
Love Hörnquist Åstrand
fd5c282f7d
Default to hx509_signature_ecdsa_with_sha1 since private crypto
...
backend must be the one that selects the credential since the ec group
might not be able to handle sha256.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24665 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-02-09 17:17:43 +00:00
Love Hörnquist Åstrand
76b621899b
signing alg selection based on private key type.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24664 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-02-09 17:17:27 +00:00
Love Hörnquist Åstrand
6017ed211c
make error unique
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24663 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-02-09 17:17:11 +00:00
Love Hörnquist Åstrand
0254c6a681
Test signing cms data with ecdsa.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24662 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-02-09 17:16:54 +00:00
Love Hörnquist Åstrand
0f2af8c10f
more EC bits, now parses the private key
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24661 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-02-09 17:16:32 +00:00
Love Hörnquist Åstrand
647dde211f
more bits for ecdsa signing
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24660 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-02-09 17:16:14 +00:00
Love Hörnquist Åstrand
fead259d5d
use hx509_err
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24659 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-02-09 17:15:52 +00:00
Love Hörnquist Åstrand
8331f55413
Remove bits that never been used.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24658 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-02-07 15:13:56 +00:00
Love Hörnquist Åstrand
82c71ee5db
Make parsing of private key generic, prepare for EC private keys.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24657 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-02-07 15:13:48 +00:00
Love Hörnquist Åstrand
0dfb6450fe
Hooks for ECDSA private key ops
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24656 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-02-07 15:13:39 +00:00
Love Hörnquist Åstrand
1ebe934837
regen
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24655 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-02-07 15:13:28 +00:00
Love Hörnquist Åstrand
9d14f64819
gen ec-cert
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24654 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-02-07 15:13:19 +00:00
Love Hörnquist Åstrand
929121644a
add pre-generated ec certs
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24653 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-02-07 15:13:11 +00:00
Love Hörnquist Åstrand
7ff6e45302
add test for eccerts
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24652 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-02-07 15:13:02 +00:00
Love Hörnquist Åstrand
1e95e97550
Add ecdsa-with-sha1 and secp160r1, secp160r2 since openssl uses.
...
Make ECDSA test case work.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24651 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-02-07 15:12:53 +00:00
Love Hörnquist Åstrand
9eeecd7419
First drop of EC support.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24637 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-02-07 04:06:33 +00:00
Love Hörnquist Åstrand
8ffd509d0a
pass hx509_context to the matching function
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24619 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-02-04 22:11:01 +00:00
Love Hörnquist Åstrand
ad7bb6ffad
pass hx509_context to the matching function
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24618 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-02-04 22:10:52 +00:00
Love Hörnquist Åstrand
baf73c2f8b
doxygen
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24613 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-02-04 22:10:01 +00:00
Love Hörnquist Åstrand
2fbb6ab934
Change prototype of hx509_certs_filter().
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24612 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-02-04 22:09:51 +00:00
Love Hörnquist Åstrand
27ca60fe93
Change prototype of hx509_certs_filter().
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24611 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-02-04 22:09:41 +00:00
Love Hörnquist Åstrand
1228f20e92
spelling and doxygen
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24591 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-02-04 22:06:22 +00:00
Love Hörnquist Åstrand
08e864fbe9
spelling
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24590 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-02-04 22:06:12 +00:00
Love Hörnquist Åstrand
9b8c1d9569
spelling
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24589 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-02-04 22:06:01 +00:00
Love Hörnquist Åstrand
d45c54a7f9
spelling
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24588 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-02-04 22:05:51 +00:00
Love Hörnquist Åstrand
74ed9683a6
handle unsigned SignedData in cms-create-sd and cms-verify-sd
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24587 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-02-04 22:05:41 +00:00
Love Hörnquist Åstrand
896e99c291
test unsigned SignedData
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24586 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-02-04 22:05:31 +00:00
Love Hörnquist Åstrand
2e00892ffd
handle unsigned signeddata
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24585 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-02-04 22:05:20 +00:00
Love Hörnquist Åstrand
f374e9b14f
add hx509_certs_filter
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24584 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-02-04 22:05:08 +00:00
Love Hörnquist Åstrand
e1ae936e65
doxygen
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24583 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-02-04 22:04:58 +00:00
Love Hörnquist Åstrand
651c4a0ec6
Add hx509_certs_filter().
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24582 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-02-04 22:04:48 +00:00
Love Hörnquist Åstrand
de35928c20
add HX509_CMS_SIGATURE_NO_SIGNER and indent
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24581 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-02-04 22:04:38 +00:00
Love Hörnquist Åstrand
90a9ed5fd2
Add hx509_cms_create_signed() that allows signing with 0 or more certs.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24580 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-02-04 22:04:28 +00:00
Love Hörnquist Åstrand
f0214c8843
use hx509_cms_create_signed to create signed data
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24579 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-02-04 22:04:18 +00:00
Love Hörnquist Åstrand
afb2abb65d
Add HX509_CMS_VS_ALLOW_ZERO_SIGNER and HX509_CMS_VS_NO_VALIDATE
...
Doxygen.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24576 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-02-04 22:03:47 +00:00
Love Hörnquist Åstrand
7e1b5d3a55
better name for zero signer
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24575 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-02-04 22:03:37 +00:00
Love Hörnquist Åstrand
2e93ad7a9f
add more hx509_cms_verify_signed flags.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24573 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-02-04 22:03:17 +00:00
Love Hörnquist Åstrand
0efc14ab95
fix warning
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24478 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-01-25 20:49:13 +00:00
Love Hörnquist Åstrand
b2744f137f
(c)
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24475 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-01-25 20:48:44 +00:00
Love Hörnquist Åstrand
92d16c8a19
use wind to convert strings
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24474 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-01-25 20:48:34 +00:00
Love Hörnquist Åstrand
a10f8dad8e
drop libnhx509
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24445 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-01-25 00:45:18 +00:00
Love Hörnquist Åstrand
e3f707ea2c
add ALGORITHM_BEST_BEFORE
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24261 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-01-11 21:45:27 +00:00
Love Hörnquist Åstrand
4b553afa07
Skip the leaf certificate HX509_VERIFY_CTX_F_NO_BEST_BEFORE_CHECK check for now
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24254 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-01-11 21:44:19 +00:00
Love Hörnquist Åstrand
3ee9a138f6
add hx509_verify_ctx_f_allow_best_before_signature_algs
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24253 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-01-11 21:44:10 +00:00
Love Hörnquist Åstrand
98d48f25d7
use _hx509_signature_best_before
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24252 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-01-11 21:44:00 +00:00
Love Hörnquist Åstrand
8bd4ae305f
add _hx509_signature_best_before
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24251 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-01-11 21:43:50 +00:00
Love Hörnquist Åstrand
26abb7e637
option to turn off the KeyUsage check in CMS verify SignedData
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24204 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-12-15 04:32:49 +00:00