Git Product home page Git Product logo

android_external_qrngd's Introduction

=======================================================
qrngd test program (qrngtest)
=======================================================

Description:
The qrngtest test program is used to verify that the hardware,
kernel driver and qrngd daemon are working correctly. By default
it opens the "/dev/random" device and does complete testing in a very
short period of time around ~3-5 seconds.

It can be run interactively for more test options.

It requires msm RNG driver (/dev/hw_random) for daemon.
It requires the system random device (/dev/random) for testing.

Parameters:
It will accept the following optional arguments:
	-c                 run continuously
	-q                 do not display run-time status
	-r <device name>   random input device (default: /dev/random)
	-h                 help (this page)\n";

The default parameters should work fine for automated testing.

Return:
It will return 0 if all test cases succeed otherwise it
returns a value < 0:

EXIT_NO_ERRROR			 0
EXIT_BAD_PARAMETER		-1
EXIT_COULD_NOT_OPEN_DEVICE	-2
EXIT_COULD_NOT_READ_DEVICE	-3
EXIT_TIMED_OUT_READING_DEVICE	-4
EXIT_RANDOM_TEST_FAILED		-5

Usage:
The qrngtest program by default does not require any parameters for automatic
testing. By default the program opens "/dev/random", this will test the
hardware, driver daemon and random number subsystem for Linux.

If for some reason the test fails, the user can specify,
"qrngtest -r /dev/hw_random" and this will only test the driver and hardware
to help troubleshoot any issues that may arise.

Details:
The test runs 100 iterations of the test. Each iteration reads in 8KB of
random data and checks it for randomness. The test will fail if the
"/dev/random" device or any other valid specified device is read blocked,
fails to give random numbers or just cannot open the device. Everything
must work correctly to get a return of 0 (zero).

Targets:
        8x60

android_external_qrngd's People

Watchers

James Cloos avatar kuailexs-d avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.