libnx  v4.2.2
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);
csrngInitialize
Result csrngInitialize(void)
Initialize csrng.
Result
u32 Result
Function error code result type.
Definition: types.h:44
csrngGetServiceSession
Service * csrngGetServiceSession(void)
Gets the Service object for the actual csrng service session.
Service
Service object structure.
Definition: service.h:13
csrngExit
void csrngExit(void)
Exit csrng.