summaryrefslogtreecommitdiffstats
path: root/crypto
AgeCommit message (Collapse)Author
2013-09-10Constification.Ben Laurie
2013-09-09crypto/modes/asm/aesni-gcm-x86_64.pl: minor optimization.Andy Polyakov
Avoid occasional up to 8% performance drops.
2013-09-09crypto/bn/asm/x86_64-mont.pl: minor optimization.Andy Polyakov
2013-09-08Partial path fix.Dr. Stephen Henson
When verifying a partial path always check to see if the EE certificate is explicitly trusted: the path could contain other untrusted certificates.
2013-09-06Add callbacks supporting generation and retrieval of supplemental data ↵Scott Deboy
entries, facilitating RFC 5878 (TLS auth extensions) Removed prior audit proof logic - audit proof support was implemented using the generic TLS extension API Tests exercising the new supplemental data registration and callback api can be found in ssltest.c. Implemented changes to s_server and s_client to exercise supplemental data callbacks via the -auth argument, as well as additional flags to exercise supplemental data being sent only during renegotiation.
2013-09-05misspellings fixes by https://github.com/vlajos/misspell_fixerVeres Lajos
2013-08-21Fix compile errors.Ben Laurie
2013-08-17Make no-ec compilation work.Dr. Stephen Henson
2013-08-06Fix for PEM_X509_INFO_read_bio.Kaspar Brand
PR: 3028 Fix bug introduced in PEM_X509_INFO_bio which wouldn't process RSA keys correctly if they appeared first.
2013-08-05CMS RFC2631 X9.42 DH enveloped data support.Dr. Stephen Henson
2013-08-05Add KDF for DH.Dr. Stephen Henson
Add X9.42 DH KDF. Move sharedinfo generation code to CMS library as the same structure is used by DH and ECDH. Move ASN1_OBJECT typedef to ossl_typ.h so it can be picked up by dh headers without the need to use ASN1.
2013-08-05Extend DH parameter generation support.Dr. Stephen Henson
Add support for DH parameter generation using DSA methods including FIPS 186-3.
2013-08-05Enhance DH dup functions.Dr. Stephen Henson
Make DHparams_dup work properly with X9.42 DH parameters.
2013-08-05If present print j, seed and counter values for DHDr. Stephen Henson
2013-08-05Minor optimisation to KDF algorithm.Dr. Stephen Henson
Don't need to use temporary buffer if remaining length equals digest length.
2013-08-05Algorithm parameter support.Dr. Stephen Henson
Check and set AlgorithmIdenfier parameters for key wrap algorithms. Currently these just set parameters to NULL.
2013-08-03crypto/evp/e_aes.c: fix logical pre-processor bug and formatting.Andy Polyakov
Bug would emerge when XTS is added to bsaes-armv7.pl. Pointed out by Ard Biesheuvel of Linaro.
2013-08-03crypto/bn/asm/rsax-x86_64.pl: make it work on Darwin.Andy Polyakov
2013-07-31crypto/sha/asm/sha*-x86_64.pl: comply with Win64 ABI.Andy Polyakov
2013-07-19Make ecdsatest work with nonces.Dr. Stephen Henson
Update ecdsatest to use ECDSA_sign_setup and ECDSA_sign_ex, this avoids the nonce generation which would otherwise break the test. Reinstate ecdsatest.
2013-07-17Return correct enveloped data type in ASN1 methods.Dr. Stephen Henson
For RSA and DSA keys return an appropriate RecipientInfo type. By setting CMS_RECIPINFO_NONE for DSA keys an appropriate error is returned if an attempt is made to use DSA with enveloped data.
2013-07-17Add support for ECDH KARI.Dr. Stephen Henson
Add support for ECDH in enveloped data. The CMS ctrls for the EC ASN1 method decode/encode the appropriate parameters from the CMS ASN1 data and send appropriate data to the EC public key method.
2013-07-17Add support for X9.62 KDF.Dr. Stephen Henson
Add X9.62 KDF to EC EVP_PKEY_METHOD.
2013-07-17Add new OIDs from RFC5753Dr. Stephen Henson
Add OIDs for KDF schemes from RFC5753 and add cross references for each type and the appropriate digest to use.
2013-07-17CMS support for key agreeement recipient info.Dr. Stephen Henson
Add hooks to support key agreement recipient info type (KARI) using algorithm specific code in the relevant public key ASN1 method.
2013-07-17Set CMS EnvelopedData version correctly.Dr. Stephen Henson
2013-07-17EVP support for wrapping algorithms.Dr. Stephen Henson
Add support for key wrap algorithms via EVP interface. Generalise AES wrap algorithm and add to modes, making existing AES wrap algorithm a special case. Move test code to evptests.txt
2013-07-17Typo.Dr. Stephen Henson
2013-07-17Avoid need to change function code.Dr. Stephen Henson
Keep original function names for nonce versions so we don't have to change error function codes.
2013-07-15Make `safe' (EC)DSA nonces the default.Adam Langley
This change updates 8a99cb29 to make the generation of (EC)DSA nonces using the message digest the default. It also reverts the changes to (EC)DSA_METHOD structure. In addition to making it the default, removing the flag from EC_KEY means that FIPS modules will no longer have an ABI mismatch.
2013-07-12bn/asm/rsaz-avx2.pl: Windows-specific fix.Andy Polyakov
2013-07-12Fix verify loop with CRL checking.Dr. Stephen Henson
PR #3090 Reported by: Franck Youssef <fry@open.ch> If no new reason codes are obtained after checking a CRL exit with an error to avoid repeatedly checking the same CRL. This will only happen if verify errors such as invalid CRL scope are overridden in a callback.
2013-07-12s/rsaz_eligible/rsaz_avx2_eligible/.Ben Laurie
2013-07-10sha512-586.pl: fix typo.Andy Polyakov
Submitted by: Gisle Vanem
2013-07-05Remove RSAX engine, superseded by RSAZ module.Andy Polyakov
2013-07-05Take RSAZ modules into build loop, add glue and engage.Andy Polyakov
RT: 2582, 2850
2013-07-05Add RSAZ assembly modules.Andy Polyakov
RT: 2582, 2850
2013-07-05bn/asm/x86_86-mont.pl: optimize reduction for Intel Core family.Andy Polyakov
2013-07-05bn/bn_exp.c: harmonize.Andy Polyakov
2013-07-02Initialise CMS signature buffer length properly.Dr. Stephen Henson
2013-06-30bn/bn_exp.c: Solaris-specific fix, T4 MONTMUL relies on alloca.Andy Polyakov
2013-06-30x86_64-xlate.pl: Windows fixes.Andy Polyakov
2013-06-30aesni-sha256-x86_64.pl: fix typo in Windows SEH.Andy Polyakov
2013-06-21CMS RSA-OAEP and RSA-PSS support.Dr. Stephen Henson
Extend RSA ASN1 method to support CMS PSS signatures for both sign and verify. For signing the EVP_PKEY_CTX parameters are read and the appropriate CMS structures set up. For verification the CMS structures are analysed and the corresponding parameters in the EVP_PKEY_CTX set. Also add RSA-OAEP support. For encrypt the EVP_PKEY_CTX parameters are used. For decrypt the CMS structure is uses to set the appropriate EVP_PKEY_CTX parameters.
2013-06-21CMS public key parameter support.Dr. Stephen Henson
Add support for customisation of CMS handling of signed and enveloped data from custom public key parameters. This will provide support for RSA-PSS and RSA-OAEP but could also be applied to other algorithms.
2013-06-21Update to OAEP support.Dr. Stephen Henson
Add OAEP ctrls to retrieve MD and label. Return errors if an attempt is made to set or retrieve OAEP parameters when padding mode is not OAEP.
2013-06-21Add control to retrieve signature MD.Dr. Stephen Henson
2013-06-21Add new OID to pSpecified from PKCS#1Dr. Stephen Henson
2013-06-18SPARC T4 DES support: fix typo.Andy Polyakov
2013-06-18Optimize SPARC T4 MONTMUL support.Andy Polyakov
Improve RSA sing performance by 20-30% by: - switching from floating-point to integer conditional moves; - daisy-chaining sqr-sqr-sqr-sqr-sqr-mul sequences; - using MONTMUL even during powers table setup;