Love Hörnquist Åstrand 
							
						 
					 
					
						
						
							
						
						fee0482b36 
					 
					
						
						
							
							simplify by using the variable  
						
						... 
						
						
						
						git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24674 ec53bebd-3082-4978-b11e-865c3cabbd6b 
						
						
					 
					
						2009-02-11 05:58:42 +00:00 
						 
				 
			
				
					
						
							
							
								Love Hörnquist Åstrand 
							
						 
					 
					
						
						
							
						
						15205a1900 
					 
					
						
						
							
							drop printf within the library  
						
						... 
						
						
						
						git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24669 ec53bebd-3082-4978-b11e-865c3cabbd6b 
						
						
					 
					
						2009-02-09 17:18:49 +00:00 
						 
				 
			
				
					
						
							
							
								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 
							
						 
					 
					
						
						
							
						
						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 
							
						 
					 
					
						
						
							
						
						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 
							
						 
					 
					
						
						
							
						
						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 
							
						 
					 
					
						
						
							
						
						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 
							
						 
					 
					
						
						
							
						
						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 
							
						 
					 
					
						
						
							
						
						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 
							
						 
					 
					
						
						
							
						
						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 
							
						 
					 
					
						
						
							
						
						ffb414b233 
					 
					
						
						
							
							make refcount slightly more sane.  
						
						... 
						
						
						
						git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22855 ec53bebd-3082-4978-b11e-865c3cabbd6b 
						
						
					 
					
						2008-04-07 18:49:24 +00:00 
						 
				 
			
				
					
						
							
							
								Love Hörnquist Åstrand 
							
						 
					 
					
						
						
							
						
						c9f443454e 
					 
					
						
						
							
							Add a PKCS11 provider supporting signing and verifing sigatures.  
						
						... 
						
						
						
						git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22435 ec53bebd-3082-4978-b11e-865c3cabbd6b 
						
						
					 
					
						2008-01-14 20:53:56 +00:00 
						 
				 
			
				
					
						
							
							
								Love Hörnquist Åstrand 
							
						 
					 
					
						
						
							
						
						15c8bb00e6 
					 
					
						
						
							
							Split out the iv creation from hx509_crypto_encrypt since  
						
						... 
						
						
						
						_hx509_pbe_encrypt needs to use the iv from the s2k function.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21318 ec53bebd-3082-4978-b11e-865c3cabbd6b 
						
						
					 
					
						2007-06-25 19:46:32 +00:00 
						 
				 
			
				
					
						
							
							
								Love Hörnquist Åstrand 
							
						 
					 
					
						
						
							
						
						000a661cad 
					 
					
						
						
							
							Free memory in failure case.  
						
						... 
						
						
						
						git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21139 ec53bebd-3082-4978-b11e-865c3cabbd6b 
						
						
					 
					
						2007-06-18 21:23:26 +00:00 
						 
				 
			
				
					
						
							
							
								Love Hörnquist Åstrand 
							
						 
					 
					
						
						
							
						
						e32c43989d 
					 
					
						
						
							
							Free memory in failure case.  
						
						... 
						
						
						
						git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21137 ec53bebd-3082-4978-b11e-865c3cabbd6b 
						
						
					 
					
						2007-06-18 21:18:45 +00:00 
						 
				 
			
				
					
						
							
							
								Love Hörnquist Åstrand 
							
						 
					 
					
						
						
							
						
						8d185f280c 
					 
					
						
						
							
							(rsa_create_signature): make oid_id_pkcs1_rsaEncryption mean  
						
						... 
						
						
						
						rsa-with-sha1 but oid oid_id_pkcs1_rsaEncryption in algorithm field.
XXX should probably use another algorithmIdentifier for this.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20939 ec53bebd-3082-4978-b11e-865c3cabbd6b 
						
						
					 
					
						2007-06-06 20:53:02 +00:00 
						 
				 
			
				
					
						
							
							
								Love Hörnquist Åstrand 
							
						 
					 
					
						
						
							
						
						7fb311a15d 
					 
					
						
						
							
							Provide default AlgorithmIdentifier and use them.  
						
						... 
						
						
						
						git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20790 ec53bebd-3082-4978-b11e-865c3cabbd6b 
						
						
					 
					
						2007-06-02 02:30:29 +00:00 
						 
				 
			
				
					
						
							
							
								Love Hörnquist Åstrand 
							
						 
					 
					
						
						
							
						
						ec39bb7e2a 
					 
					
						
						
							
							Also add some secret key encryption types to the supported list.  
						
						... 
						
						
						
						git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20750 ec53bebd-3082-4978-b11e-865c3cabbd6b 
						
						
					 
					
						2007-05-31 19:57:53 +00:00 
						 
				 
			
				
					
						
							
							
								Love Hörnquist Åstrand 
							
						 
					 
					
						
						
							
						
						7cf5b55729 
					 
					
						
						
							
							(hx509_crypto_select): copy AI to the right place.  
						
						... 
						
						
						
						git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20723 ec53bebd-3082-4978-b11e-865c3cabbd6b 
						
						
					 
					
						2007-05-31 02:46:17 +00:00 
						 
				 
			
				
					
						
							
							
								Love Hörnquist Åstrand 
							
						 
					 
					
						
						
							
						
						217f3d4680 
					 
					
						
						
							
							Add selection code for secret key crypto.  
						
						... 
						
						
						
						git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20704 ec53bebd-3082-4978-b11e-865c3cabbd6b 
						
						
					 
					
						2007-05-30 18:42:34 +00:00 
						 
				 
			
				
					
						
							
							
								Love Hörnquist Åstrand 
							
						 
					 
					
						
						
							
						
						324afe4009 
					 
					
						
						
							
							Try both the empty password and the NULL password (nothing vs the  
						
						... 
						
						
						
						octet string \x00\x00).
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20656 ec53bebd-3082-4978-b11e-865c3cabbd6b 
						
						
					 
					
						2007-05-10 21:37:44 +00:00 
						 
				 
			
				
					
						
							
							
								Love Hörnquist Åstrand 
							
						 
					 
					
						
						
							
						
						cbb9bd8b2b 
					 
					
						
						
							
							Fix sha2 oids.  
						
						... 
						
						
						
						git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20035 ec53bebd-3082-4978-b11e-865c3cabbd6b 
						
						
					 
					
						2007-01-21 10:38:54 +00:00 
						 
				 
			
				
					
						
							
							
								Love Hörnquist Åstrand 
							
						 
					 
					
						
						
							
						
						5820ca3c54 
					 
					
						
						
							
							switch to sha256 as default digest for signinging  
						
						... 
						
						
						
						git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20017 ec53bebd-3082-4978-b11e-865c3cabbd6b 
						
						
					 
					
						2007-01-20 23:58:14 +00:00 
						 
				 
			
				
					
						
							
							
								Love Hörnquist Åstrand 
							
						 
					 
					
						
						
							
						
						e59e71f307 
					 
					
						
						
							
							Allow setting parameters to private key generation.  
						
						... 
						
						
						
						git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19871 ec53bebd-3082-4978-b11e-865c3cabbd6b 
						
						
					 
					
						2007-01-12 22:01:58 +00:00 
						 
				 
			
				
					
						
							
							
								Love Hörnquist Åstrand 
							
						 
					 
					
						
						
							
						
						82a45c7036 
					 
					
						
						
							
							constify  
						
						... 
						
						
						
						git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19839 ec53bebd-3082-4978-b11e-865c3cabbd6b 
						
						
					 
					
						2007-01-11 09:55:09 +00:00 
						 
				 
			
				
					
						
							
							
								Love Hörnquist Åstrand 
							
						 
					 
					
						
						
							
						
						9efb0df9f1 
					 
					
						
						
							
							remove no longer used stuff, move set_digest_alg here from cms.c since  
						
						... 
						
						
						
						its only used here.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19836 ec53bebd-3082-4978-b11e-865c3cabbd6b 
						
						
					 
					
						2007-01-11 09:35:25 +00:00 
						 
				 
			
				
					
						
							
							
								Love Hörnquist Åstrand 
							
						 
					 
					
						
						
							
						
						80977a02f6 
					 
					
						
						
							
							Factor out private key operation out of the signing, operations, support import, export, and generation of private keys. Add support for writing PEM and PKCS12 files with private keys in them.  
						
						... 
						
						
						
						git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19778 ec53bebd-3082-4978-b11e-865c3cabbd6b 
						
						
					 
					
						2007-01-09 10:52:13 +00:00 
						 
				 
			
				
					
						
							
							
								Love Hörnquist Åstrand 
							
						 
					 
					
						
						
							
						
						1c95c59dab 
					 
					
						
						
							
							Add _hx509_create_signature_bitstring.  
						
						... 
						
						
						
						git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19563 ec53bebd-3082-4978-b11e-865c3cabbd6b 
						
						
					 
					
						2006-12-29 15:53:42 +00:00 
						 
				 
			
				
					
						
							
							
								Love Hörnquist Åstrand 
							
						 
					 
					
						
						
							
						
						7a0fadc477 
					 
					
						
						
							
							(_hx509_private_key_assign_rsa): set a default sig alg  
						
						... 
						
						
						
						git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19301 ec53bebd-3082-4978-b11e-865c3cabbd6b 
						
						
					 
					
						2006-12-09 12:56:34 +00:00 
						 
				 
			
				
					
						
							
							
								Love Hörnquist Åstrand 
							
						 
					 
					
						
						
							
						
						e99ef09706 
					 
					
						
						
							
							(rsa_create_signature): Abort when signature is longer, not shorter.  
						
						... 
						
						
						
						git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19235 ec53bebd-3082-4978-b11e-865c3cabbd6b 
						
						
					 
					
						2006-12-06 10:23:14 +00:00 
						 
				 
			
				
					
						
							
							
								Love Hörnquist Åstrand 
							
						 
					 
					
						
						
							
						
						1d8f59cfa1 
					 
					
						
						
							
							sprinkle more error strings  
						
						... 
						
						
						
						git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19171 ec53bebd-3082-4978-b11e-865c3cabbd6b 
						
						
					 
					
						2006-11-28 12:00:08 +00:00 
						 
				 
			
				
					
						
							
							
								Love Hörnquist Åstrand 
							
						 
					 
					
						
						
							
						
						444753045a 
					 
					
						
						
							
							use unsigned int as counter to fit better with the asn1 compiler  
						
						... 
						
						
						
						git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19166 ec53bebd-3082-4978-b11e-865c3cabbd6b 
						
						
					 
					
						2006-11-28 03:59:34 +00:00 
						 
				 
			
				
					
						
							
							
								Love Hörnquist Åstrand 
							
						 
					 
					
						
						
							
						
						d51986d91e 
					 
					
						
						
							
							rewrite comment to make more sense  
						
						... 
						
						
						
						git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19159 ec53bebd-3082-4978-b11e-865c3cabbd6b 
						
						
					 
					
						2006-11-27 14:11:03 +00:00 
						 
				 
			
				
					
						
							
							
								Love Hörnquist Åstrand 
							
						 
					 
					
						
						
							
						
						18b698ae86 
					 
					
						
						
							
							(hx509_crypto_select): check sig_algs[j]->key_oid  
						
						... 
						
						
						
						git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19157 ec53bebd-3082-4978-b11e-865c3cabbd6b 
						
						
					 
					
						2006-11-27 13:29:19 +00:00 
						 
				 
			
				
					
						
							
							
								Love Hörnquist Åstrand 
							
						 
					 
					
						
						
							
						
						cbcc5adfc3 
					 
					
						
						
							
							(hx509_crypto_available): let alg pass if its keyless  
						
						... 
						
						
						
						git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19153 ec53bebd-3082-4978-b11e-865c3cabbd6b 
						
						
					 
					
						2006-11-27 12:14:07 +00:00 
						 
				 
			
				
					
						
							
							
								Love Hörnquist Åstrand 
							
						 
					 
					
						
						
							
						
						93f60d5dae 
					 
					
						
						
							
							(hx509_crypto_available): use right index.  
						
						... 
						
						
						
						(hx509_crypto_free_algs): new function
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19139 ec53bebd-3082-4978-b11e-865c3cabbd6b 
						
						
					 
					
						2006-11-27 10:36:04 +00:00 
						 
				 
			
				
					
						
							
							
								Love Hörnquist Åstrand 
							
						 
					 
					
						
						
							
						
						8fea309b05 
					 
					
						
						
							
							(hx509_crypto_select): improve  
						
						... 
						
						
						
						(hx509_crypto_available): new function
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19137 ec53bebd-3082-4978-b11e-865c3cabbd6b 
						
						
					 
					
						2006-11-27 10:16:05 +00:00 
						 
				 
			
				
					
						
							
							
								Love Hörnquist Åstrand 
							
						 
					 
					
						
						
							
						
						0a531062bd 
					 
					
						
						
							
							print return value for RSA_private_decrypt  
						
						... 
						
						
						
						git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19134 ec53bebd-3082-4978-b11e-865c3cabbd6b 
						
						
					 
					
						2006-11-27 08:30:53 +00:00 
						 
				 
			
				
					
						
							
							
								Love Hörnquist Åstrand 
							
						 
					 
					
						
						
							
						
						e37704f850 
					 
					
						
						
							
							Sprinkle error string and hx509_contexts.  
						
						... 
						
						
						
						git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19128 ec53bebd-3082-4978-b11e-865c3cabbd6b 
						
						
					 
					
						2006-11-26 17:53:25 +00:00 
						 
				 
			
				
					
						
							
							
								Love Hörnquist Åstrand 
							
						 
					 
					
						
						
							
						
						15d0393660 
					 
					
						
						
							
							Add some more comments about how this works.  
						
						... 
						
						
						
						git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19126 ec53bebd-3082-4978-b11e-865c3cabbd6b 
						
						
					 
					
						2006-11-26 16:56:54 +00:00 
						 
				 
			
				
					
						
							
							
								Love Hörnquist Åstrand 
							
						 
					 
					
						
						
							
						
						d27456dd83 
					 
					
						
						
							
							(hx509_select): new function.  
						
						... 
						
						
						
						git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19122 ec53bebd-3082-4978-b11e-865c3cabbd6b 
						
						
					 
					
						2006-11-26 15:53:12 +00:00 
						 
				 
			
				
					
						
							
							
								Love Hörnquist Åstrand 
							
						 
					 
					
						
						
							
						
						85ee798833 
					 
					
						
						
							
							Sprinkle context and error strings.  
						
						... 
						
						
						
						git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19111 ec53bebd-3082-4978-b11e-865c3cabbd6b 
						
						
					 
					
						2006-11-25 12:31:34 +00:00 
						 
				 
			
				
					
						
							
							
								Love Hörnquist Åstrand 
							
						 
					 
					
						
						
							
						
						a6ad00f6e0 
					 
					
						
						
							
							return less EINVAL  
						
						... 
						
						
						
						git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18864 ec53bebd-3082-4978-b11e-865c3cabbd6b 
						
						
					 
					
						2006-10-24 13:57:59 +00:00 
						 
				 
			
				
					
						
							
							
								Love Hörnquist Åstrand 
							
						 
					 
					
						
						
							
						
						f58f609484 
					 
					
						
						
							
							Sprinkle more hx509_context so we can return propper errors.  
						
						... 
						
						
						
						git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18861 ec53bebd-3082-4978-b11e-865c3cabbd6b 
						
						
					 
					
						2006-10-24 13:34:21 +00:00 
						 
				 
			
				
					
						
							
							
								Love Hörnquist Åstrand 
							
						 
					 
					
						
						
							
						
						35e6948538 
					 
					
						
						
							
							(_hx509_private_key2SPKI): indent  
						
						... 
						
						
						
						git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18798 ec53bebd-3082-4978-b11e-865c3cabbd6b 
						
						
					 
					
						2006-10-21 22:43:34 +00:00 
						 
				 
			
				
					
						
							
							
								Love Hörnquist Åstrand 
							
						 
					 
					
						
						
							
						
						24e79ac572 
					 
					
						
						
							
							Try to not leak memory.  
						
						... 
						
						
						
						git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18788 ec53bebd-3082-4978-b11e-865c3cabbd6b 
						
						
					 
					
						2006-10-21 20:32:41 +00:00 
						 
				 
			
				
					
						
							
							
								Love Hörnquist Åstrand 
							
						 
					 
					
						
						
							
						
						1860dc7db2 
					 
					
						
						
							
							(hx509_crypto_destroy): free oid.  
						
						... 
						
						
						
						git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18785 ec53bebd-3082-4978-b11e-865c3cabbd6b 
						
						
					 
					
						2006-10-21 20:04:06 +00:00