DDraceNetwork Documentation
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
23void generate_password(char *buffer, unsigned length, const unsigned short *random, unsigned random_length);
24
37void secure_random_password(char *buffer, unsigned length, unsigned pw_length);
38
47void secure_random_fill(void *bytes, unsigned length);
48
59int secure_rand_below(int below);
60
61#endif
void secure_random_password(char *buffer, unsigned length, unsigned pw_length)
Definition secure.cpp:69
void generate_password(char *buffer, unsigned length, const unsigned short *random, unsigned random_length)
Definition secure.cpp:49
void secure_random_fill(void *bytes, unsigned length)
Definition secure.cpp:83
int secure_rand_below(int below)
Definition secure.cpp:109
float length(const vector2_base< T > &a)
Definition vmath.h:106