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:
parent
d6c63592bb
commit
c11f9d214a
@ -6,7 +6,6 @@ PKG_LICENSE=PD
|
|||||||
.PHONY: all
|
.PHONY: all
|
||||||
|
|
||||||
all: git-download
|
all: git-download
|
||||||
@cp $(RIOTBASE)/pkg/tweetnacl/src/* $(PKG_BUILDDIR)
|
$(Q)"$(MAKE)" -C $(PKG_BUILDDIR) -f $(CURDIR)/Makefile.riot
|
||||||
"$(MAKE)" -C $(PKG_BUILDDIR)
|
|
||||||
|
|
||||||
include $(RIOTBASE)/pkg/pkg.mk
|
include $(RIOTBASE)/pkg/pkg.mk
|
||||||
|
3
pkg/tweetnacl/Makefile.riot
Normal file
3
pkg/tweetnacl/Makefile.riot
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
MODULE=tweetnacl
|
||||||
|
|
||||||
|
include $(RIOTBASE)/Makefile.base
|
Binary file not shown.
@ -1,3 +0,0 @@
|
|||||||
MODULE=tweetnacl
|
|
||||||
|
|
||||||
include $(RIOTBASE)/Makefile.base
|
|
@ -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);
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user