Files
OpenCellular/test
Vadim Bendebury 898e16bf7b cr50: test: add hash testing host side implementation
The new module generates hash test extension subcommands, driven by
the 'test_inputs' table.

Each table entry is a tuple, including the test name and the data to
be hashed. The test name determines the hash type (sha1 or sha256) and
the test mode (single or spread over several messages). The last
element of the name is the context number (ignored in single message
mode).

The hash extended command payload looks as follows:

 field     |    size  |                  note
 ===================================================================
 hash_cmd  |    1     | 0 - start, 1 - cont., 2 - finish, 4 - single
 hash_mode |    1     | 0 - sha1, 1 - sha256
 handle    |    1     | session handle, ignored in 'single' mode
 text_len  |    2     | size of the text to process, big endian
 text      | text_len | text to hash

BRANCH=none
BUG=chrome-os-partner:43025
TEST=currently failing, a couple of hash code tweaks needed, see
     upcoming patches.

Change-Id: Ie992bf01cae3c5278110357b482370b2fc11c70f
Signed-off-by: Vadim Bendebury <vbendeb@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/314693
Reviewed-by: Randall Spangler <rspangler@chromium.org>
2015-12-03 02:21:19 -08:00
..
2015-10-22 19:16:16 -07:00
2013-09-05 07:20:46 +00:00
2013-05-14 09:25:03 -07:00
2013-09-04 20:32:52 +00:00
2014-01-08 03:49:29 +00:00
2013-07-11 22:32:52 -07:00
2013-09-05 07:20:56 +00:00
2013-10-01 08:16:34 +00:00
2014-01-06 12:40:45 +00:00
2013-04-11 11:29:32 -07:00
2014-01-06 12:40:45 +00:00
2013-04-10 09:35:06 -07:00
2015-06-18 19:07:00 +00:00
2013-04-10 09:35:06 -07:00
2013-04-19 10:41:33 -07:00
2013-07-22 16:09:47 -07:00
2013-07-22 16:09:47 -07:00
2012-06-07 20:01:49 -07:00
2013-04-15 20:40:03 -07:00
2014-01-09 20:26:10 +00:00
2012-07-13 02:10:46 -07:00
2013-04-10 09:35:06 -07:00
2014-10-04 21:08:48 +00:00
2014-03-26 05:33:12 +00:00