summaryrefslogtreecommitdiffstats
path: root/usr.bin/ssh/sshbuf-getput-crypto.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* remove most uses of BN_CTXdjm2019-11-151-9/+3
| | | | | We weren't following the rules re BN_CTX_start/BN_CTX_end and the places we were using it didn't benefit from its use anyway. ok dtucker@
* Make sshpkt_get_bignum2() allocate the bignum it is parsing ratherdjm2019-01-211-4/+13
| | | | | | than make the caller do it. Saves a lot of boilerplate code. from markus@ ok djm@
* remove obsolete (SSH v.1) sshbuf_get/put_bignum1 functionsdjm2019-01-211-49/+1
| | | | from markus@ ok djm@
* use explicit_bzero() more liberally in the buffer code; ok deraadtdjm2016-01-121-6/+6
|
* avoid BIGNUM in KRL code by using a simple bitmap;djm2015-01-141-16/+2
| | | | feedback and ok markus
* apparently memcpy(x, NULL, 0) is undefined behaviour according todjm2015-01-121-2/+3
| | | | | C99 (cf. sections 7.21.1 and 7.1.4), so check skip memcpy calls when length==0; ok markus@
* The ssh_get_bignum functions must accept the same range of bignumsnaddy2014-06-181-4/+6
| | | | | | the corresponding ssh_put_bignum functions create. This fixes the use of 16384-bit RSA keys (bug reported by Eivind Evensen). ok djm@
* New buffer API; the first installment of the conversion/replacementdjm2014-04-301-0/+227
of OpenSSH's internals to make them usable as a standalone library. This includes a set of wrappers to make it compatible with the existing buffer API so replacement can occur incrementally. With and ok markus@ Thanks also to Ben Hawkes, David Tomaschik, Ivan Fratric, Matthew Dempsky and Ron Bowes for a detailed review.