diff options
author | James Morris <jmorris@intercode.com.au> | 2002-10-26 11:39:09 -0800 |
---|---|---|
committer | James Morris <jmorris@intercode.com.au> | 2002-10-26 11:39:09 -0800 |
commit | f8b20525502360b9c37c901a49b08a45465ae648 (patch) | |
tree | e8b65504af2a7b49c5c7e3b48055ef1fcc73eac3 /crypto | |
parent | eadec301e46d61c6aa887ad644c2433a44ea5b96 (diff) | |
download | history-f8b20525502360b9c37c901a49b08a45465ae648.tar.gz |
[CRYPTO]: More bug fixes and cleanups.
- added back USAGI copyright for HMAC (lost earlier during some
refactoring).
- bugfix: make sure tfm pointer is set to NULL during post allocation
failure path in crypto_alloc_tfm()
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/api.c | 1 | ||||
-rw-r--r-- | crypto/digest.c | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/crypto/api.c b/crypto/api.c index c3b2da67d8bbd7..4ecc8ecd0f8b42 100644 --- a/crypto/api.c +++ b/crypto/api.c @@ -122,6 +122,7 @@ out_free_ctx: kfree(tfm->crt_ctx); out_free_tfm: kfree(tfm); + tfm = NULL; out_put: crypto_alg_put(alg); out: diff --git a/crypto/digest.c b/crypto/digest.c index 51c9b78d104913..fc0e2221cfa57a 100644 --- a/crypto/digest.c +++ b/crypto/digest.c @@ -5,6 +5,9 @@ * * Copyright (c) 2002 James Morris <jmorris@intercode.com.au> * + * The HMAC implementation is derived from USAGI. + * Copyright (c) 2002 USAGI/WIDE Project + * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the Free * Software Foundation; either version 2 of the License, or (at your option) |