1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

pkg/tweetnacl: Use RIOT random_bytes instead of randombytes

This commit is contained in:
Joakim Nohlgård 2018-05-15 13:28:13 +02:00
parent d6c63592bb
commit c11f9d214a
5 changed files with 5 additions and 22 deletions

View File

@ -6,7 +6,6 @@ PKG_LICENSE=PD
.PHONY: all
all: git-download
@cp $(RIOTBASE)/pkg/tweetnacl/src/* $(PKG_BUILDDIR)
"$(MAKE)" -C $(PKG_BUILDDIR)
$(Q)"$(MAKE)" -C $(PKG_BUILDDIR) -f $(CURDIR)/Makefile.riot
include $(RIOTBASE)/pkg/pkg.mk
include $(RIOTBASE)/pkg/pkg.mk

View File

@ -0,0 +1,3 @@
MODULE=tweetnacl
include $(RIOTBASE)/Makefile.base

View File

@ -1,3 +0,0 @@
MODULE=tweetnacl
include $(RIOTBASE)/Makefile.base

View File

@ -1,16 +0,0 @@
/*
* 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)
{
/* tweetnacl needs uint64_t as "n" parameter, random provides uint32 */
random_bytes(target, n);
}