libnx  v4.7.0
csrng.h
Go to the documentation of this file.
1 /**
2  * @file csrng.h
3  * @brief Cryptographically-Secure Random Number Generation (csrng) service IPC wrapper.
4  * @author SciresM
5  * @copyright libnx Authors
6  */
7 #pragma once
8 #include "../types.h"
9 #include "../sf/service.h"
10 
11 /// Initialize csrng.
13 
14 /// Exit csrng.
15 void csrngExit(void);
16 
17 /// Gets the Service object for the actual csrng service session.
19 
20 Result csrngGetRandomBytes(void *out, size_t out_size);
Result csrngInitialize(void)
Initialize csrng.
Service * csrngGetServiceSession(void)
Gets the Service object for the actual csrng service session.
void csrngExit(void)
Exit csrng.
Service object structure.
Definition: service.h:14
u32 Result
Function error code result type.
Definition: types.h:44