Software APIs
nonce.c
1 // Copyright lowRISC contributors (OpenTitan project).
2 // Licensed under the Apache License, Version 2.0, see LICENSE for details.
3 // SPDX-License-Identifier: Apache-2.0
4 
5 #include "sw/device/silicon_creator/lib/nonce.h"
6 
7 #include "sw/device/silicon_creator/lib/drivers/rnd.h"
8 
9 void nonce_new(nonce_t *nonce) {
10  nonce->value[0] = rnd_uint32();
11  nonce->value[1] = rnd_uint32();
12 }
13 
14 extern bool nonce_equal(const nonce_t *a, const nonce_t *b);