Manuel Pégourié-Gonnard
|
bfe32efb9b
|
pk_{sign,verify}() now accept hash_len = 0
|
2013-08-27 22:21:21 +02:00 |
|
Manuel Pégourié-Gonnard
|
0d42049440
|
Merge code for RSA and ECDSA in SSL
|
2013-08-27 22:21:20 +02:00 |
|
Manuel Pégourié-Gonnard
|
12c1ff0ecb
|
Add RSA-alt to the PK layer
|
2013-08-27 22:21:20 +02:00 |
|
Manuel Pégourié-Gonnard
|
a2d3f22007
|
Add and use pk_encrypt(), pk_decrypt()
|
2013-08-27 22:21:20 +02:00 |
|
Manuel Pégourié-Gonnard
|
8df2769178
|
Introduce pk_sign() and use it in ssl
|
2013-08-27 22:21:20 +02:00 |
|
Manuel Pégourié-Gonnard
|
fff80f8879
|
PK: use NULL for unimplemented operations
|
2013-08-20 20:46:05 +02:00 |
|
Manuel Pégourié-Gonnard
|
f73da02962
|
PK: change pk_verify arguments (md_info "optional")
|
2013-08-20 20:46:04 +02:00 |
|
Manuel Pégourié-Gonnard
|
ab46694558
|
Change pk_set_type to pk_init_ctx for consistency
|
2013-08-20 20:46:04 +02:00 |
|
Manuel Pégourié-Gonnard
|
15699380e5
|
Small PK cleanups
- better error codes
- rm now-useless include
|
2013-08-20 20:46:04 +02:00 |
|
Manuel Pégourié-Gonnard
|
3fb5c5ee1c
|
PK: rename members for consistency CIPHER, MD
Also add pk_get_name() to remove a direct access to pk_type
|
2013-08-20 20:46:04 +02:00 |
|
Manuel Pégourié-Gonnard
|
c6ac8870d5
|
Nicer interface between PK and debug.
Finally get rid of pk_context.type member, too.
|
2013-08-20 20:46:04 +02:00 |
|
Manuel Pégourié-Gonnard
|
b3d9187cea
|
PK: add nice interface functions
Also fix a const-corectness issue.
|
2013-08-20 20:46:04 +02:00 |
|
Manuel Pégourié-Gonnard
|
765db07dfb
|
PK: use alloc and free function pointers
|
2013-08-20 20:46:04 +02:00 |
|
Manuel Pégourié-Gonnard
|
3053f5bcb4
|
Get rid of pk_wrap_rsa()
|
2013-08-20 20:46:04 +02:00 |
|
Manuel Pégourié-Gonnard
|
f8c948a674
|
Add name and get_size() members in PK
|
2013-08-20 20:46:04 +02:00 |
|
Manuel Pégourié-Gonnard
|
f18c3e0378
|
Add a PK can_do() method and simplify code
|
2013-08-20 20:46:04 +02:00 |
|
Manuel Pégourié-Gonnard
|
d73b3c13be
|
PK: use wrappers and function pointers for verify
|
2013-08-20 20:46:03 +02:00 |
|
Manuel Pégourié-Gonnard
|
211a64c79f
|
Add eckey to ecdsa conversion in the PK layer
|
2013-08-20 20:26:28 +02:00 |
|
Manuel Pégourié-Gonnard
|
fd5164e283
|
Fix some more ifdef's RSA/EC, in pk and debug
|
2013-07-17 15:59:44 +02:00 |
|
Manuel Pégourié-Gonnard
|
a2d4e644ac
|
Some more EC pubkey parsing refactoring
Fix a bug in pk_rsa() and pk_ec() along the way
|
2013-07-17 15:59:43 +02:00 |
|
Manuel Pégourié-Gonnard
|
360a583029
|
Adapt x509parse_cert_info() for EC
|
2013-07-17 15:59:41 +02:00 |
|
Manuel Pégourié-Gonnard
|
2692a30c1b
|
Relax ifdef's in pk.h by analogy with md.h
|
2013-07-17 15:59:41 +02:00 |
|
Manuel Pégourié-Gonnard
|
1e60cd09b0
|
Expand oid_get_sig_alg() for ECDSA-based algs
|
2013-07-17 15:59:40 +02:00 |
|
Manuel Pégourié-Gonnard
|
244569f4b1
|
Use generic x509_get_pubkey() for RSA functions
|
2013-07-17 15:59:40 +02:00 |
|
Manuel Pégourié-Gonnard
|
374e4b87d4
|
pk_set_type() cannot be used to reset key type
|
2013-07-17 15:59:39 +02:00 |
|
Manuel Pégourié-Gonnard
|
81c313ccc6
|
Add #ifdef's on RSA and EC in PK
|
2013-07-09 10:49:09 +02:00 |
|
Manuel Pégourié-Gonnard
|
7a6c946446
|
Fix error code in pk.h
|
2013-07-09 10:37:27 +02:00 |
|
Manuel Pégourié-Gonnard
|
12e0ed9115
|
Add pk_context and associated functions
|
2013-07-08 17:32:27 +02:00 |
|
Manuel Pégourié-Gonnard
|
5a9b82e234
|
Make oid_get_pk_alg handle EC algorithms
|
2013-07-08 17:32:26 +02:00 |
|
Paul Bakker
|
ed27a041e4
|
More granular define selections within code to allow for smaller code
sizes
|
2013-04-18 23:12:34 +02:00 |
|