aboutsummaryrefslogtreecommitdiffstats
path: root/lib/crypto/c_src
diff options
context:
space:
mode:
authorLukas Larsson <[email protected]>2012-08-30 15:40:32 +0200
committerLukas Larsson <[email protected]>2012-08-30 15:40:32 +0200
commit3f959449578ce652aad353631f3c3c51aa7b5d50 (patch)
tree696e7cccf5a9d9b1515323951e8e880311e8619b /lib/crypto/c_src
parentc7787af81f8cf4ae2991ee5c032fb4a7cd29d29d (diff)
parent24f0d49642ecc0cc566055f1c5b8c49e65c42537 (diff)
downloadotp-3f959449578ce652aad353631f3c3c51aa7b5d50.tar.gz
otp-3f959449578ce652aad353631f3c3c51aa7b5d50.tar.bz2
otp-3f959449578ce652aad353631f3c3c51aa7b5d50.zip
Merge branch 'maint'
* maint: Document that CTHs can get fail/skip as Config Ignore calls to dialyzer_timing when checking deprecated Do not verify del_path as it is not always there Fix broken links Generate <a name="name"> tags in edoc xml headings Fix compile warning crypto: Fix buffer overflow bug in rsa_sign crypto: Skip some tests if openssl lib < 0.9.8 Fix boken spec
Diffstat (limited to 'lib/crypto/c_src')
-rw-r--r--lib/crypto/c_src/crypto.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/crypto/c_src/crypto.c b/lib/crypto/c_src/crypto.c
index a24747a872..91ab244620 100644
--- a/lib/crypto/c_src/crypto.c
+++ b/lib/crypto/c_src/crypto.c
@@ -1875,7 +1875,7 @@ static int get_rsa_private_key(ErlNifEnv* env, ERL_NIF_TERM key, RSA *rsa)
static ERL_NIF_TERM rsa_sign_nif(ErlNifEnv* env, int argc, const ERL_NIF_TERM argv[])
{/* (Type, Data|{digest,Digest}, Key=[E,N,D]|[E,N,D,P1,P2,E1,E2,C]) */
ErlNifBinary data_bin, ret_bin;
- unsigned char hmacbuf[SHA_DIGEST_LENGTH];
+ unsigned char hmacbuf[SHA512_LEN];
unsigned rsa_s_len;
RSA* rsa;
int i;