projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ec/asm/x25519-x86_64.pl: add CFI directives and Windows SE handler.
[openssl.git]
/
crypto
/
ec
/
ecdh_kdf.c
diff --git
a/crypto/ec/ecdh_kdf.c
b/crypto/ec/ecdh_kdf.c
index 6cb0e11c22b8c74fbd2fbe81ceaa9a36315d00fc..d47486eb346da22a40d856aab8322deaee6997d4 100644
(file)
--- a/
crypto/ec/ecdh_kdf.c
+++ b/
crypto/ec/ecdh_kdf.c
@@
-34,7
+34,8
@@
int ECDH_KDF_X9_62(unsigned char *out, size_t outlen,
mdlen = EVP_MD_size(md);
for (i = 1;; i++) {
unsigned char mtmp[EVP_MAX_MD_SIZE];
- EVP_DigestInit_ex(mctx, md, NULL);
+ if (!EVP_DigestInit_ex(mctx, md, NULL))
+ goto err;
ctr[3] = i & 0xFF;
ctr[2] = (i >> 8) & 0xFF;
ctr[1] = (i >> 16) & 0xFF;