summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Use SOCK_CLOEXEC to avoid leaking FDsHEADmasterMiloslav Trmač2010-12-151-24/+24
| | | | | This requires _GNU_SOURCE, which in turn requires renaming the "encrypt" identifier to avoid a conflict with a function from <crypt.h>.
* Merge branch 'local'Miloslav Trmač2010-12-021-24/+0
|\
| * Drop ncr_private_key_create ().localMiloslav Trmač2010-12-021-24/+0
| | | | | | | | | | The current API exposes NSS internal mechanisms, drop it for now. Perhaps a better interface can be added in the future.
* | Merge branch 'local', drop openssl helperMiloslav Trmač2010-12-022-20/+20
|\| | | | | | | | | Conflicts: lib/ncrypto_local.c
| * Add missing #includeMiloslav Trmač2010-12-021-0/+1
| |
| * Use NSS for random number generationMiloslav Trmač2010-12-022-11/+19
| |
* | Merge branch 'local'Miloslav Trmač2010-11-301-191/+545
|\|
| * Add DSAMiloslav Trmač2010-11-301-0/+347
| |
| * Validate structure version and algorithm ID on exportMiloslav Trmač2010-11-301-0/+13
| |
| * Use PKCS#8 privateKeyInfo for private keys in DER formMiloslav Trmač2010-11-301-85/+92
| |
| * Split rsa_validate_algorithm_id ()Miloslav Trmač2010-11-301-13/+19
| |
| * BeautifyMiloslav Trmač2010-11-301-2/+2
| |
| * Use subjectPublicKeyInfo for public keys in DER formMiloslav Trmač2010-11-301-105/+86
| | | | | | | | | | Also avoid subjectPublicKeyInfo encoding/decoding when handling RSA key details.
* | Merge branch 'local'Miloslav Trmač2010-11-291-104/+652
|\|
| * Make private key sensitivity visible to NSSMiloslav Trmač2010-11-291-5/+15
| |
| * Add RSA key generationMiloslav Trmač2010-11-291-0/+99
| |
| * Pass MPIs around in arrays, not named parametersMiloslav Trmač2010-11-261-134/+108
| |
| * Use an arena better in private_key_exportMiloslav Trmač2010-11-261-37/+35
| | | | | | | | | | Both allocate and free the arena in the caller. Use the arena to allocate der_info to make it invisible to the caller.
| * Both allocate and free arena in public_key_export callersMiloslav Trmač2010-11-261-38/+33
| |
| * Add ncr_private_key_export_rsa ()Miloslav Trmač2010-11-261-95/+217
| |
| * Report all required sizes if any one is too smallMiloslav Trmač2010-11-251-10/+4
| |
| * BeautifyMiloslav Trmač2010-11-251-3/+3
| |
| * Add private key extraction supportMiloslav Trmač2010-11-251-30/+193
| |
| * Fix buffer size computation when importing keysMiloslav Trmač2010-11-251-1/+1
| |
| * BeautifyMiloslav Trmač2010-11-251-19/+19
| |
| * Add ncr_public_key_export_rsa().Miloslav Trmač2010-11-251-44/+148
| |
| * Add ncr_public_key_exportMiloslav Trmač2010-11-251-0/+86
| |
| * BeautifyMiloslav Trmač2010-11-251-5/+6
| |
| * Fix failures with enabled NSS assertionsMiloslav Trmač2010-11-251-0/+2
| |
* | Merge branch 'local'Miloslav Trmač2010-11-243-10/+0
|\| | | | | | | | | Conflicts: lib/ncrypto_local.c
| * Drop redundant destination pointer checksMiloslav Trmač2010-11-242-10/+0
| |
| * Change "original IV" in the OpenSSL context as well.Miloslav Trmač2010-11-151-1/+3
| | | | | | | | | | We don't use the "original IV" in libncrypt, this is just for consistency.
* | Detect integer overflow in cmsg size computationMiloslav Trmač2010-11-151-2/+3
| |
* | Merge branch 'local', port IV change to AF_ALGMiloslav Trmač2010-11-151-0/+44
|\| | | | | | | | | Conflicts: lib/ncrypto_local.c
| * Add ncr_symm_cipher_change_ivMiloslav Trmač2010-11-151-0/+19
| |
* | Port symmetric encryption to AF_ALGMiloslav Trmač2010-11-112-289/+429
| |
* | Merge branch 'local'Miloslav Trmač2010-11-022-15/+44
|\|
| * Drop support for the *_CBC_PAD mechanisms.Miloslav Trmač2010-11-021-13/+3
| |
| * Add symmetric key extraction supportMiloslav Trmač2010-11-022-2/+41
| | | | | | | | | | Also allow marking keys as "sensitive" (= CKA_SENSITIVE = non-extractable), which is an API change.
* | Merge branch 'local', port cloning to AF_ALGMiloslav Trmač2010-10-291-19/+120
|\| | | | | | | | | Conflicts: lib/ncrypto_local.c
| * Add symmetric signature session cloningMiloslav Trmač2010-10-291-0/+33
| |
| * Add digest session cloningMiloslav Trmač2010-10-291-0/+29
| |
* | Merge branch 'local'Miloslav Trmač2010-10-271-1/+0
|\|
| * Drop obsolete FIXMEsMiloslav Trmač2010-10-271-1/+0
| |
* | Port symmetric signatures to AF_ALGMiloslav Trmač2010-10-272-252/+372
| |
* | Set state to NDS_FINISHED even on ncr_digest_final failureMiloslav Trmač2010-10-271-3/+3
| |
* | Merge branch 'local'Miloslav Trmač2010-10-272-7/+44
|\| | | | | | | | | Conflicts: Makefile.am
| * Declare struct ncr_symm_key in an internal headerMiloslav Trmač2010-10-272-7/+44
| |
* | Merge branch 'local'Miloslav Trmač2010-10-271-7/+266
|\| | | | | | | | | Conflicts: lib/ncrypto_local.c
| * Add "symmetric signature" (really HMAC) supportMiloslav Trmač2010-10-271-0/+253
| |