Skip to content
Snippets Groups Projects
Commit 86b5f648 authored by Joakim Nohlgård's avatar Joakim Nohlgård
Browse files

pkg/hacl: Use RIOT random_bytes instead of randombytes

parent d6c63592
No related branches found
No related tags found
No related merge requests found
...@@ -6,7 +6,6 @@ PKG_LICENSE=MIT ...@@ -6,7 +6,6 @@ PKG_LICENSE=MIT
.PHONY: all .PHONY: all
all: git-download all: git-download
@cp $(RIOTBASE)/pkg/hacl/src/* $(PKG_BUILDDIR)
"$(MAKE)" -C $(PKG_BUILDDIR) -f $(CURDIR)/Makefile.$(PKG_NAME) "$(MAKE)" -C $(PKG_BUILDDIR) -f $(CURDIR)/Makefile.$(PKG_NAME)
include $(RIOTBASE)/pkg/pkg.mk include $(RIOTBASE)/pkg/pkg.mk
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
/*
* Copyright (C) 2016 Kaspar Schleiser <kaspar@schleiser.de>
*
* This file is subject to the terms and conditions of the GNU Lesser
* General Public License v2.1. See the file LICENSE in the top level
* directory for more details.
*/
#include <stdint.h>
#include "random.h"
void randombytes(uint8_t *target, uint64_t n)
{
/* HACL* (haclnacl.c) needs uint64_t as "n" parameter, random provides uint32 */
random_bytes(target, n);
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment