diff options
Diffstat (limited to 'include/trng.h')
-rw-r--r-- | include/trng.h | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/include/trng.h b/include/trng.h deleted file mode 100644 index cea4555b41..0000000000 --- a/include/trng.h +++ /dev/null @@ -1,45 +0,0 @@ -/* Copyright 2015 The Chromium OS Authors. All rights reserved. - * Use of this source code is governed by a BSD-style license that can be - * found in the LICENSE file. - */ -#ifndef __EC_INCLUDE_TRNG_H -#define __EC_INCLUDE_TRNG_H - -#include <common.h> -#include <stddef.h> -#include <stdint.h> - -/** - * Initialize the true random number generator. - * - * Not supported by all platforms. - **/ -void init_trng(void); - -/** - * Shutdown the true random number generator. - * - * The opposite operation of init_trng(), disable the hardware resources - * used by the TRNG to save power. - * - * Not supported by all platforms. - **/ -void exit_trng(void); - -/** - * Retrieve a 32 bit random value. - * - * Not supported on all platforms. - **/ -#ifndef HIDE_EC_STDLIB -uint32_t rand(void); -#endif - -/** - * Output len random bytes into buffer. - * - * Not supported on all platforms. - **/ -void rand_bytes(void *buffer, size_t len); - -#endif /* __EC_INCLUDE_TRNG_H */ |