diff options
author | Shigeki Ohtsu <ohtsu@iij.ad.jp> | 2015-03-19 23:04:41 +0900 |
---|---|---|
committer | Chris Dickinson <christopher.s.dickinson@gmail.com> | 2015-03-19 10:08:13 -0700 |
commit | a84ea66b35cce2e44fa35699a2a09194b0a5210c (patch) | |
tree | 0a94aa744bfa238bc22935a360452a74cf450941 /deps/openssl/openssl/crypto/evp/e_seed.c | |
parent | 3bc445f6c260586720ee8931f20148d612d283ce (diff) | |
download | android-node-v8-a84ea66b35cce2e44fa35699a2a09194b0a5210c.tar.gz android-node-v8-a84ea66b35cce2e44fa35699a2a09194b0a5210c.tar.bz2 android-node-v8-a84ea66b35cce2e44fa35699a2a09194b0a5210c.zip |
deps: upgrade to openssl-1.0.1m
All sources are just extracted from tarball into deps/openssl/openssl.
change all openssl/include/openssl/*.h to include resolved symbolic
links and openssl/crypto/opensslconf.h to refer config/opensslconf.h
sha256-x86_64.pl does not exist in the origin openssl distribution. It
was copied from sha512-x86_64.pl and both sha256/sha512 scripts were
modified so as to generates only one asm file specified as its key
hash length.
`x86masm.pl` was mistakenly using .486 instruction set, why `cpuid`
(and perhaps others) are requiring .686.
removed vpaesni-x86_64.asm in x64-win32-masm - it is no longer used.
Fixes: https://github.com/iojs/io.js/issues/1186
PR-URL: https://github.com/iojs/io.js/pull/1206
Reviewed-By: Fedor Indutny <fedor@indutny.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Diffstat (limited to 'deps/openssl/openssl/crypto/evp/e_seed.c')
-rw-r--r-- | deps/openssl/openssl/crypto/evp/e_seed.c | 35 |
1 files changed, 17 insertions, 18 deletions
diff --git a/deps/openssl/openssl/crypto/evp/e_seed.c b/deps/openssl/openssl/crypto/evp/e_seed.c index 2d1759d276..c948a8f391 100644 --- a/deps/openssl/openssl/crypto/evp/e_seed.c +++ b/deps/openssl/openssl/crypto/evp/e_seed.c @@ -7,7 +7,7 @@ * are met: * * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. + * notice, this list of conditions and the following disclaimer. * * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in @@ -55,29 +55,28 @@ #include <openssl/opensslconf.h> #ifndef OPENSSL_NO_SEED -#include <openssl/evp.h> -#include <openssl/err.h> -#include <string.h> -#include <assert.h> -#include <openssl/seed.h> -#include "evp_locl.h" +# include <openssl/evp.h> +# include <openssl/err.h> +# include <string.h> +# include <assert.h> +# include <openssl/seed.h> +# include "evp_locl.h" -static int seed_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key, const unsigned char *iv, int enc); +static int seed_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key, + const unsigned char *iv, int enc); -typedef struct - { - SEED_KEY_SCHEDULE ks; - } EVP_SEED_KEY; +typedef struct { + SEED_KEY_SCHEDULE ks; +} EVP_SEED_KEY; IMPLEMENT_BLOCK_CIPHER(seed, ks, SEED, EVP_SEED_KEY, NID_seed, - 16, 16, 16, 128, - 0, seed_init_key, 0, 0, 0, 0) + 16, 16, 16, 128, 0, seed_init_key, 0, 0, 0, 0) static int seed_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key, const unsigned char *iv, int enc) - { - SEED_set_key(key, ctx->cipher_data); - return 1; - } +{ + SEED_set_key(key, ctx->cipher_data); + return 1; +} #endif |