aboutsummaryrefslogtreecommitdiff
path: root/src/crypto/hmac_drbg.c
AgeCommit message (Collapse)AuthorFilesLines
2022-10-10[crypto] Simplify internal HMAC APIMichael Brown1-10/+6
Simplify the internal HMAC API so that the key is provided only at the point of calling hmac_init(), and the (potentially reduced) key is stored as part of the context for later use by hmac_final(). This simplifies the calling code, and avoids the need for callers such as TLS to allocate a potentially variable length block in order to retain a copy of the unmodified key. Signed-off-by: Michael Brown <mcb30@ipxe.org>
2015-12-31[crypto] Dual-license selected DRBG filesMichael Brown1-0/+12
Allow the use of the iPXE DRBG implementation in BSD-licensed projects. Requested-by: Sean Davis <dive@hq.endersgame.net> Signed-off-by: Michael Brown <mcb30@ipxe.org>
2015-03-02[legal] Relicense files under GPL2_OR_LATER_OR_UBDLMichael Brown1-1/+5
Relicense files for which I am the sole author (as identified by util/relicense.pl). Signed-off-by: Michael Brown <mcb30@ipxe.org>
2012-07-20[legal] Update FSF mailing address in GPL licence textsMichael Brown1-1/+2
Suggested-by: Daniel P. Berrange <berrange@redhat.com> Signed-off-by: Michael Brown <mcb30@ipxe.org>
2012-03-06[rng] Allow HMAC_DRBG to use multiple underlying hash algorithmsMichael Brown1-59/+73
Signed-off-by: Michael Brown <mcb30@ipxe.org>
2012-03-04[rng] Add missing #include <assert.h>Michael Brown1-0/+1
Signed-off-by: Michael Brown <mcb30@ipxe.org>
2012-02-21[rng] Add missing #include <string.h>Michael Brown1-0/+1
Signed-off-by: Michael Brown <mcb30@ipxe.org>
2012-01-23[rng] Add ANS X9.82 Approved HMAC_DRBG algorithmMichael Brown1-0/+342
ANS X9.82 specifies several Approved algorithms for use in a Deterministic Random Bit Generator (DRBG). One such algorithm is HMAC_DRBG, which can be implemented using the existing iPXE SHA-1 and HMAC functionality. This algorithm provides a maximum security strength of 128 bits. Signed-off-by: Michael Brown <mcb30@ipxe.org>