diff options
author | Jung-uk Kim <jkim@FreeBSD.org> | 2016-09-22 13:05:59 +0000 |
---|---|---|
committer | Jung-uk Kim <jkim@FreeBSD.org> | 2016-09-22 13:05:59 +0000 |
commit | 2c14c598c3061ac2533f997352aa06a2266f44d9 (patch) | |
tree | 470894a14935f308eeac93c6cbf6cf25632e1cb1 /crypto/des | |
parent | 47b11f985b9e0ff561a67e19674de6fbcf79281d (diff) | |
download | src-vendor/openssl-1.0.1.tar.gz src-vendor/openssl-1.0.1.zip |
Import OpenSSL 1.0.1u.vendor/openssl/1.0.1uvendor/openssl-1.0.1
Notes
Notes:
svn path=/vendor-crypto/openssl/dist-1.0.1/; revision=306191
svn path=/vendor-crypto/openssl/1.0.1u/; revision=306192; tag=vendor/openssl/1.0.1u
Diffstat (limited to 'crypto/des')
-rw-r--r-- | crypto/des/des.c | 2 | ||||
-rw-r--r-- | crypto/des/enc_writ.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/crypto/des/des.c b/crypto/des/des.c index 586aed72378c..d7374382d83a 100644 --- a/crypto/des/des.c +++ b/crypto/des/des.c @@ -456,7 +456,7 @@ void doencryption(void) len = l - rem; if (feof(DES_IN)) { for (i = 7 - rem; i > 0; i--) { - if (RAND_pseudo_bytes(buf + l++, 1) < 0) + if (RAND_bytes(buf + l++, 1) <= 0) goto problems; } buf[l++] = rem; diff --git a/crypto/des/enc_writ.c b/crypto/des/enc_writ.c index bfaabde516ae..c2aaa8e98ca2 100644 --- a/crypto/des/enc_writ.c +++ b/crypto/des/enc_writ.c @@ -135,7 +135,7 @@ int DES_enc_write(int fd, const void *_buf, int len, if (len < 8) { cp = shortbuf; memcpy(shortbuf, buf, len); - if (RAND_pseudo_bytes(shortbuf + len, 8 - len) < 0) { + if (RAND_bytes(shortbuf + len, 8 - len) <= 0) { return -1; } rnum = 8; |