Commit Graph

5 Commits

Author SHA1 Message Date
tb db056c46e1 Correctly check for DH_compute_key() error
DH_size() only gives an upper bound for the size of the key. The key can be
shorter.

Found after anton reported sporadic regress test failures

ok jsing
2022-10-04 20:46:13 +00:00
tb ade65a49f8 Mechanical conversion of libcsi for opaque DH.
ok jsing
2022-01-10 23:03:07 +00:00
jsing 6268c23c4d Add missing csi_dh_params_dup() calls. 2018-06-05 18:06:07 +00:00
jsing abb3015268 Validate DH public values and allow for smaller keys to be generated when
less keying material is needed.

Based on code written by djm@ and markus@ for ssh.
2018-06-02 17:43:14 +00:00
jsing b18860e116 Initial version of Crypto Simplified Interface (CSI).
This is a code base that intends on providing a simplified interface for
mid-level cryptographic operations. In due course various applications and
libraries will be able to benefit from a clean and robust API, rather than
using libcrypto or other similar APIs directly.

Discussed at length with deraadt@, djm@, markus@, beck@ and others.
2018-06-02 17:40:33 +00:00