summaryrefslogtreecommitdiff
path: root/rnd.c
AgeCommit message (Collapse)AuthorFilesLines
2013-08-11rnd: Fix compiler warningTobias Klauser1-1/+1
Fix the following compiler warning that occurs when building with "-W -Wall -Wextra": rnd.c: In function ‘randombytes_strong’: rnd.c:50:10: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
2013-08-11rnd: Change parameter type in randombytes_{weak,strong}Tobias Klauser1-2/+2
Change parameter type for the length to size_t since this is what is passed to them and is expected by read_exact(). Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
2013-06-04rnd: add gen_key_bytes to generate key from good entropy sourceDaniel Borkmann1-7/+30
Make this a function and do not have this in curvetun hard coded. Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
2013-06-04rnd: move entropy source definition to rndDaniel Borkmann1-5/+1
It's better off there anyway. Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
2013-06-04rnd: break out prng from xutilsDaniel Borkmann1-0/+49
We only need it in curvetun, this makes it easier to maintain. Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
er valid on powerpc for the kernel to take an exec fault to begin with. So fold that test with the existing test for the kernel faulting on kernel addresses to bail out early. Fixes: 1d18ad026844 ("powerpc/mm: Detect instruction fetch denied and report") Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Reviewed-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> Acked-by: Balbir Singh <bsingharora@gmail.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'net/wireless/.gitignore')