diff options
Diffstat (limited to 'crypto/blake2/m_blake2s.c')
-rw-r--r-- | crypto/blake2/m_blake2s.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/crypto/blake2/m_blake2s.c b/crypto/blake2/m_blake2s.c index 2c5f42b2a4..8ff172751d 100644 --- a/crypto/blake2/m_blake2s.c +++ b/crypto/blake2/m_blake2s.c @@ -1,5 +1,5 @@ /* - * Copyright 2016 The OpenSSL Project Authors. All Rights Reserved. + * Copyright 2016-2018 The OpenSSL Project Authors. All Rights Reserved. * * Licensed under the Apache License 2.0 (the "License"). You may not use * this file except in compliance with the License. You can obtain a copy @@ -25,7 +25,9 @@ static int init(EVP_MD_CTX *ctx) { - return BLAKE2s_Init(EVP_MD_CTX_md_data(ctx)); + BLAKE2S_PARAM P; + blake2s_param_init(&P); + return BLAKE2s_Init(EVP_MD_CTX_md_data(ctx), &P); } static int update(EVP_MD_CTX *ctx, const void *data, size_t count) @@ -49,7 +51,7 @@ static const EVP_MD blake2s_md = { NULL, NULL, BLAKE2S_BLOCKBYTES, - sizeof(EVP_MD *) + sizeof(BLAKE2S_CTX), + sizeof(BLAKE2S_CTX), }; const EVP_MD *EVP_blake2s256(void) |