]> www.wagner.pp.ru Git - openssl-gost/engine.git/commitdiff
ec: Use BN_{CTX_,}secure_new memory API for priv keys
authorVitaly Chikunov <vt@altlinux.org>
Mon, 17 Feb 2020 21:35:10 +0000 (00:35 +0300)
committerDmitry Belyavskiy <beldmit@users.noreply.github.com>
Tue, 25 Feb 2020 21:14:25 +0000 (00:14 +0300)
OpenSSL suggests to use (and internally itself uses)
`BN_{CTX_,}secure_new' primitives to work with private keys.

These are using `OPENSSL_secure_malloc' et al. calls, which use
special 'secure heap' memory.

Along, optimize out `hashsum2bn' with `BN_lebin2bn'.


No differences found