git://git.openafs.org
/
openafs.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
hcrypto: Add hcrypto EVP support to the Unix CM
[openafs.git]
/
src
/
crypto
/
hcrypto
/
kernel
/
rand.c
1
/* A trivial implementation of hcrypto's RAND interface for
2
* kernel use */
3
4
#include <config.h>
5
#include <evp.h>
6
#include <evp-hcrypto.h>
7
#include <aes.h>
8
#include <sha.h>
9
10
int
11
RAND_bytes(void *outdata, size_t size)
12
{
13
if (size == 0)
14
return 0;
15
if (osi_readRandom(outdata, size))
16
return 0;
17
return 1;
18
}