DDNet documentation
Toggle main menu visibility
Loading...
Searching...
No Matches
secure.h
Go to the documentation of this file.
1
/* (c) Magnus Auvinen. See licence.txt in the root of the distribution for more information. */
2
/* If you are missing that file, acquire a complete release at teeworlds.com. */
3
4
#ifndef BASE_SECURE_H
5
#define BASE_SECURE_H
6
12
23
void
generate_password
(
char
*buffer,
unsigned
length
,
const
unsigned
short
*random,
unsigned
random_length);
24
37
void
secure_random_password
(
char
*buffer,
unsigned
length
,
unsigned
pw_length);
38
47
void
secure_random_fill
(
void
*bytes,
unsigned
length
);
48
59
int
secure_rand_below
(
int
below);
60
61
#endif
secure_random_password
void secure_random_password(char *buffer, unsigned length, unsigned pw_length)
Definition
secure.cpp:69
generate_password
void generate_password(char *buffer, unsigned length, const unsigned short *random, unsigned random_length)
Definition
secure.cpp:49
secure_random_fill
void secure_random_fill(void *bytes, unsigned length)
Definition
secure.cpp:83
secure_rand_below
int secure_rand_below(int below)
Definition
secure.cpp:109
length
float length(const vector2_base< T > &a)
Definition
vmath.h:113
src
base
secure.h
Generated by
1.18.0