Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Correct session ticket encryption. | jsing | 2018-08-22 | 1 | -4/+11 |
| | | | | | | | | | | The CBB conversion resulted in the ticket encryption being handled incorrectly, resulting in only the last block being used. Fix this and restore the previous behaviour. Issue found by inoguchi@ and sebastia@. ok inoguchi@ and tb@ | ||||
* | fix return value | tb | 2018-08-21 | 1 | -3/+3 |
| | |||||
* | Remove ChaCha20-Poly1305 from the TODO list | tb | 2018-08-21 | 1 | -2/+2 |
| | |||||
* | A failure to _seal() should be looked into, so turn this into an | tb | 2018-08-21 | 1 | -7/+2 |
| | | | | unconditional failure. | ||||
* | Factor the calls to EVP_AEAD_CTX_open() and EVP_AEAD_CTX_seal() into | tb | 2018-08-21 | 1 | -48/+76 |
| | | | | | | their own functions to make it easier to handle failures cleanly. Discussed with jsing | ||||
* | Merge duplicate benchmark() GET/SSL_shutdown blocks into doConnection(). | cheloha | 2018-08-21 | 1 | -41/+25 |
| | | | | | | | | | | | | We need to then remove the shadow i from the GET block. While there, move retval's declaration to the beginning of the function. As doConnection() now executes the body of the benchmark's test, rename it to "run_test". Shadow variable spotted by tb@. ok tb@ | ||||
* | typo in argument type, from Mario dot Andres dot Campos at gmail dot com | schwarze | 2018-08-21 | 1 | -3/+3 |
| | |||||
* | add two missing \n | tb | 2018-08-20 | 1 | -3/+3 |
| | |||||
* | Test EVP_AEAD_CTX_open() at the same time as EVP_AEAD_CTX_seal() | tb | 2018-08-20 | 1 | -5/+23 |
| | | | | Suggested by jsing | ||||
* | remove two redundant tests | tb | 2018-08-20 | 1 | -10/+1 |
| | |||||
* | Use sealed instead of out in a couple of places in preparation of | tb | 2018-08-20 | 1 | -12/+13 |
| | | | | testing EVP_AEAD_CTX_open() | ||||
* | Shuffle the decoding of the hex strings to the top and group all length | tb | 2018-08-20 | 1 | -22/+26 |
| | | | | | tests together. Make failure of the length tests non-fatal, as these are failures of test cases, not of the program. | ||||
* | Run the Wycheproof ChaCha20-Poly1305 test vectors against libcrypto. | tb | 2018-08-20 | 1 | -1/+141 |
| | | | | | | We currently only support nonces of length 12, so skip a few tests. With input from jsing | ||||
* | Don't leak sktmp in X509_verify_cert(). | tb | 2018-08-19 | 1 | -5/+5 |
| | | | | | | CID #118791 ok jsing mestre | ||||
* | whitespace fix | tb | 2018-08-19 | 1 | -2/+2 |
| | |||||
* | Don't leak db on error in RSA_padding_check_PKCS1_OAEP(). | tb | 2018-08-19 | 1 | -7/+7 |
| | | | | | | CID #183499. input & ok jsing, ok mestre on first version | ||||
* | Don't leak a strdup()'ed string on error in do_accept(). | tb | 2018-08-19 | 1 | -1/+3 |
| | | | | | | CID #154702. input & ok inoguchi, ok mestre on first version | ||||
* | Rename and collapse tls12_get_sigandhash_cbb(). | jsing | 2018-08-19 | 4 | -39/+28 |
| | | | | | | | | | | Now that all callers of tls12_get_sigandhash() have been converted to CBB, collapse tls12_get_sigandhash() and tls12_get_sigandhash_cbb() into a single function. Rename it to tls12_gethashandsig() to be representative of the actual order of the sigalgs parameters, and perform some other clean up. ok inoguchi@ tb@ | ||||
* | Convert ssl3_send_newsession_ticket() to CBB. | jsing | 2018-08-19 | 1 | -55/+64 |
| | | | | | | This removes a memorable BUF_MEM_grow() and associated comment. ok inoguchi@ tb@ | ||||
* | Plug SSL object leaks in doConnection(). | cheloha | 2018-08-18 | 1 | -32/+22 |
| | | | | | | | | | | | | | Move SSL_new/SSL_free up into benchmark() to restrict the responsibility for the SSL object to a single scope. Make doConnection() return an int, openssl-style. Some miscellaneous cleanup, too. Discussed with tb, jsing, and jca. Basic idea from jsing, lots of patch input from tb. ok deraadt on an earlier version ok tb jsing | ||||
* | Convert ssl3_send_client_verify() to CBB. | jsing | 2018-08-17 | 1 | -43/+50 |
| | | | | ok inoguchi@ tb@ | ||||
* | spelling; | jmc | 2018-08-17 | 1 | -2/+2 |
| | |||||
* | Make the wording more concise, use the imperative throughout, state | schwarze | 2018-08-17 | 1 | -108/+126 |
| | | | | | | | more precisely which options require which other options, add many missing incompatibilities, mention the default for -e, and some macro cleanup. OK jmc@ tb@ | ||||
* | Add regress coverage for CBB_add_u32(). | jsing | 2018-08-16 | 1 | -3/+4 |
| | |||||
* | Provide CBB_add_u32(), as needed for an upcoming conversion. | jsing | 2018-08-16 | 2 | -2/+17 |
| | | | | ok tb@ | ||||
* | Simplify the add signature code/logic in ssl3_send_server_key_exchange(). | jsing | 2018-08-16 | 1 | -13/+8 |
| | | | | ok tb@ | ||||
* | Convert ssl3_send_server_key_exchange() to CBB. | jsing | 2018-08-16 | 3 | -47/+71 |
| | | | | ok inoguchi@ tb@ | ||||
* | Convert ssl3_get_server_key_exchange() to CBS. | jsing | 2018-08-16 | 1 | -69/+55 |
| | | | | ok inoguchi@ tb@ | ||||
* | Revert previous, which was wrong as noted by schwarze. Also revert a hunk | tb | 2018-08-16 | 1 | -4/+7 |
| | | | | | | from r1.45 and thereby avoid a use-after-free spotted by schwarze. ok schwarze | ||||
* | Remove unused variable. | rob | 2018-08-16 | 1 | -5/+3 |
| | | | | From Nan at chinadtrace dot org. Thanks! | ||||
* | Add a comment that explains what the check is doing and why len >= 1. | tb | 2018-08-14 | 1 | -1/+2 |
| | | | | Prompted by a remark by jsing | ||||
* | The UI_add_{input,verify}_string() functions want a length not including | tb | 2018-08-14 | 1 | -5/+8 |
| | | | | | | | | | | | | | | the terminating NUL. EVP_read_pw_string_min() got this wrong, leading to a one-byte buffer overrun in all callers of EVP_read_pw_string(). Found by mestre running 'openssl passwd' with MALLOC_OPTIONS including C. Fix this by doing some basic sanity checking in EVP_read_pw_string_min(). Cap the len argument at BUFSIZ and ensure that min < len as well as 0 <= min and 1 <= len. The last two checks are important as these numbers may end up in reallocarray(). ok bcook (on previous version), jsing, mestre | ||||
* | Remove now unused variable, that got left behind from a previous change. | jsing | 2018-08-14 | 1 | -3/+1 |
| | |||||
* | Actually check the return values for EVP_Sign* and EVP_Verify*. | jsing | 2018-08-14 | 2 | -15/+23 |
| | | | | ok bcook@ beck@ tb@ | ||||
* | Don't fail by default in the -new case; ok tb jca | cheloha | 2018-08-14 | 1 | -19/+12 |
| | |||||
* | Refactor the nearly identical benchmark loops into a single loop. | cheloha | 2018-08-11 | 1 | -139/+108 |
| | | | | | | | | | | Move all of the benchmark code -- loop initialization, the loops, and the report printing -- into a new function, benchmark(). Eliminates lots of duplicate code. Regressions to 1.20 caught by tb@ and inoguchi@. Tweaked by tb@. ok tb@, jsing@ | ||||
* | Simplify server key exchange signature verification. | jsing | 2018-08-10 | 1 | -49/+18 |
| | | | | | | Everything can go through the EVP_Verify* code path. ok inoguchi@ tb@ | ||||
* | Simplify server kex exchange signature generation. | jsing | 2018-08-10 | 1 | -61/+33 |
| | | | | | | Everything can go through the single EVP_Sign* code path. ok inoguchi@ tb@ | ||||
* | Add glue to EVP_md5_sha1() so that it can be used with EVP_Sign* and | jsing | 2018-08-10 | 1 | -1/+12 |
| | | | | | | EVP_Verify*. ok tb@ | ||||
* | Add missing include to X25519 synopsis. | jsing | 2018-08-10 | 1 | -2/+3 |
| | |||||
* | In typical swiss-army style, various modes and options cause | deraadt | 2018-08-10 | 1 | -1/+24 |
| | | | | | different unveils. Joint work with beck and florian. Let us know if you hit any corner cases. | ||||
* | Run the wycheproof ECDSA test vectors against libcrypto. | jsing | 2018-08-10 | 1 | -7/+147 |
| | | | | | Skip the ecdsa_webcrypto_test.json vectors for the time being, as these likely need some extra glue. | ||||
* | Run the X25519 wycheproof test vectors against libcrypto. | jsing | 2018-08-10 | 1 | -13/+82 |
| | |||||
* | Rework regress so that it is easier to add additional test types. | jsing | 2018-08-10 | 1 | -35/+59 |
| | |||||
* | Use a table rather than a switch when converting strings to NIDs. | jsing | 2018-08-10 | 1 | -14/+13 |
| | | | | This will make it easier to extend. | ||||
* | typo: macro-generates wrappers -> macro-generated wrappers | tb | 2018-08-08 | 1 | -3/+3 |
| | |||||
* | Remove unnecessary NULL check from get_cert_by_subject sincelibressl-v2.8.0 | bcook | 2018-08-05 | 1 | -3/+3 |
| | | | | | | sk_BY_DIR_HASH_find already does it, removing ambiguity later in the function. ok tb@ | ||||
* | Fix a memory leak in i2d_RSA_NET on failure of ASN1_STRING_set. | bcook | 2018-08-05 | 1 | -2/+2 |
| | | | | | Found by Coverity. Feedback and ok tb@ | ||||
* | In RSA_padding_add_PKCS1_OAEP, dbmask needs to be freed on failure. | bcook | 2018-08-05 | 1 | -3/+7 |
| | | | | ok tb@ | ||||
* | Fix memory leak in i2b_PVK in error handling. | bcook | 2018-08-05 | 1 | -14/+10 |
| | | | | | | | Simplify parameter checks since this is only called from one place. Found by Coverity, CID 183502. ok beck@ |