/*
- * 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
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)
NULL,
NULL,
BLAKE2S_BLOCKBYTES,
- sizeof(EVP_MD *) + sizeof(BLAKE2S_CTX),
+ sizeof(BLAKE2S_CTX),
};
const EVP_MD *EVP_blake2s256(void)