no-OS
Loading...
Searching...
No Matches
generic_trng.c File Reference

Generic implementation of true random number generator. More...

#include "no_os_trng.h"
#include "no_os_util.h"
#include "no_os_error.h"
Include dependency graph for generic_trng.c:

Functions

int generic_trng_init (struct no_os_trng_desc **desc, const struct no_os_trng_init_param *param)
 
int generic_trng_remove (struct no_os_trng_desc *desc)
 
int generic_trng_fill_buffer (struct no_os_trng_desc *desc, uint8_t *buff, uint32_t len)
 

Variables

const struct no_os_trng_platform_ops aducm_trng_ops
 Generic TRNG platform ops structure.
 

Detailed Description

Generic implementation of true random number generator.

Author
Mihail Chindris (mihai.nosp@m.l.ch.nosp@m.indri.nosp@m.s@an.nosp@m.alog..nosp@m.com)

SPDX-License-Identifier: BSD-3-Clause

Function Documentation

◆ generic_trng_fill_buffer()

int generic_trng_fill_buffer ( struct no_os_trng_desc * desc,
uint8_t * buff,
uint32_t len )

◆ generic_trng_init()

int generic_trng_init ( struct no_os_trng_desc ** desc,
const struct no_os_trng_init_param * param )

◆ generic_trng_remove()

int generic_trng_remove ( struct no_os_trng_desc * desc)

Variable Documentation

◆ aducm_trng_ops

const struct no_os_trng_platform_ops aducm_trng_ops
Initial value:
= {
.fill_buffer = &generic_trng_fill_buffer,
}
int generic_trng_remove(struct no_os_trng_desc *desc)
Definition generic_trng.c:27
int generic_trng_init(struct no_os_trng_desc **desc, const struct no_os_trng_init_param *param)
Definition generic_trng.c:17
int generic_trng_fill_buffer(struct no_os_trng_desc *desc, uint8_t *buff, uint32_t len)
Definition generic_trng.c:33

Generic TRNG platform ops structure.

ADuCM3029 specific TRNG platform ops structure.