/*
- * 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 BLAKE2b_Init(EVP_MD_CTX_md_data(ctx));
+ BLAKE2B_PARAM P;
+ blake2b_param_init(&P);
+ return BLAKE2b_Init(EVP_MD_CTX_md_data(ctx), &P);
}
static int update(EVP_MD_CTX *ctx, const void *data, size_t count)
NULL,
NULL,
BLAKE2B_BLOCKBYTES,
- sizeof(EVP_MD *) + sizeof(BLAKE2B_CTX),
+ sizeof(BLAKE2B_CTX),
};
const EVP_MD *EVP_blake2b512(void)