/*
- * BLAKE2 reference source code package - reference C implementations
- *
* Copyright 2012, Samuel Neves <sneves@dei.uc.pt>.
- * You may use this under the terms of the CC0, the OpenSSL Licence, or the
- * Apache Public License 2.0, at your option. The terms of these licenses can
- * be found at:
- *
- * - OpenSSL license : https://www.openssl.org/source/license.html
- * - Apache 2.0 : http://www.apache.org/licenses/LICENSE-2.0
- * - CC0 1.0 Universal : http://www.apache.org/licenses/LICENSE-2.0
+ * Copyright 2016 The OpenSSL Project Authors. All Rights Reserved.
*
- * More information about the BLAKE2 hash function can be found at
- * https://blake2.net.
+ * Licensed under the OpenSSL licenses, (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * https://www.openssl.org/source/license.html
+ * or in the file LICENSE in the source distribution.
*/
-/* crypto/evp/m_blake2s.c */
+/*
+ * Derived from the BLAKE2 reference implementation written by Samuel Neves.
+ * More information about the BLAKE2 hash function and its implementations
+ * can be found at https://blake2.net.
+ */
-#include <stdio.h>
#include "internal/cryptlib.h"
#ifndef OPENSSL_NO_BLAKE2
}
static const EVP_MD blake2s_md = {
- NID_blake2s,
+ NID_blake2s256,
0,
BLAKE2S_DIGEST_LENGTH,
0,
sizeof(EVP_MD *) + sizeof(BLAKE2S_CTX),
};
-const EVP_MD *EVP_blake2s(void)
+const EVP_MD *EVP_blake2s256(void)
{
return (&blake2s_md);
}