mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-10-03 20:27:58 +00:00
testing/aesctr: counter block should be initially set to one.
According to RFC-3686, the least significant 32 bits of the counter block are initially set to one in ctr mode of aes. Signed-off-by: makejian <makejian@xiaomi.com>
This commit is contained in:
parent
4cc575ebc5
commit
b9764fd479
1 changed files with 9 additions and 9 deletions
|
|
@ -59,7 +59,7 @@ static tests[] =
|
|||
{
|
||||
"ae 68 52 f8 12 10 67 cc 4b f7 a5 76 55 77 f3 9e "
|
||||
"00 00 00 30",
|
||||
"00 00 00 00 00 00 00 00",
|
||||
"00 00 00 00 00 00 00 00 00 00 00 01",
|
||||
"53 69 6e 67 6c 65 20 62 6c 6f 63 6b 20 6d 73 67",
|
||||
"e4 09 5d 4f b7 a7 b3 79 2d 61 75 a3 26 13 11 b8"
|
||||
}
|
||||
|
|
@ -68,7 +68,7 @@ static tests[] =
|
|||
{
|
||||
"7e 24 06 78 17 fa e0 d7 43 d6 ce 1f 32 53 91 63 "
|
||||
"00 6c b6 db",
|
||||
"c0 54 3b 59 da 48 d9 0b",
|
||||
"c0 54 3b 59 da 48 d9 0b 00 00 00 01",
|
||||
"00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f "
|
||||
"10 11 12 13 14 15 16 17 18 19 1a 1b 1c 1d 1e 1f",
|
||||
"51 04 a1 06 16 8a 72 d9 79 0d 41 ee 8e da d3 88 "
|
||||
|
|
@ -79,7 +79,7 @@ static tests[] =
|
|||
{
|
||||
"76 91 be 03 5e 50 20 a8 ac 6e 61 85 29 f9 a0 dc "
|
||||
"00 e0 01 7b",
|
||||
"27 77 7f 3f 4a 17 86 f0",
|
||||
"27 77 7f 3f 4a 17 86 f0 00 00 00 01",
|
||||
"00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f "
|
||||
"10 11 12 13 14 15 16 17 18 19 1a 1b 1c 1d 1e 1f"
|
||||
/* "20 21 22 23" */,
|
||||
|
|
@ -98,7 +98,7 @@ static tests[] =
|
|||
"16 af 5b 14 5f c9 f5 79 c1 75 f9 3e 3b fb 0e ed "
|
||||
"86 3d 06 cc fd b7 85 15 "
|
||||
"00 00 00 48",
|
||||
"36 73 3c 14 7d 6d 93 cb",
|
||||
"36 73 3c 14 7d 6d 93 cb 00 00 00 01",
|
||||
"53 69 6e 67 6c 65 20 62 6c 6f 63 6b 20 6d 73 67",
|
||||
"4b 55 38 4f e2 59 c9 c8 4e 79 35 a0 03 cb e9 28",
|
||||
}
|
||||
|
|
@ -108,7 +108,7 @@ static tests[] =
|
|||
"7c 5c b2 40 1b 3d c3 3c 19 e7 34 08 19 e0 f6 9c "
|
||||
"67 8c 3d b8 e6 f6 a9 1a "
|
||||
"00 96 b0 3b",
|
||||
"02 0c 6e ad c2 cb 50 0d",
|
||||
"02 0c 6e ad c2 cb 50 0d 00 00 00 01",
|
||||
"00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f "
|
||||
"10 11 12 13 14 15 16 17 18 19 1a 1b 1c 1d 1e 1f",
|
||||
"45 32 43 fc 60 9b 23 32 7e df aa fa 71 31 cd 9f "
|
||||
|
|
@ -120,7 +120,7 @@ static tests[] =
|
|||
"02 bf 39 1e e8 ec b1 59 b9 59 61 7b 09 65 27 9b "
|
||||
"f5 9b 60 a7 86 d3 e0 fe "
|
||||
"00 07 bd fd",
|
||||
"5c bd 60 27 8d cc 09 12",
|
||||
"5c bd 60 27 8d cc 09 12 00 00 00 01",
|
||||
"00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f "
|
||||
"10 11 12 13 14 15 16 17 18 19 1a 1b 1c 1d 1e 1f"
|
||||
/* "20 21 22 23" */,
|
||||
|
|
@ -138,7 +138,7 @@ static tests[] =
|
|||
"77 6b ef f2 85 1d b0 6f 4c 8a 05 42 c8 69 6f 6c "
|
||||
"6a 81 af 1e ec 96 b4 d3 7f c1 d6 89 e6 c1 c1 04 "
|
||||
"00 00 00 60",
|
||||
"db 56 72 c9 7a a8 f0 b2",
|
||||
"db 56 72 c9 7a a8 f0 b2 00 00 00 01",
|
||||
"53 69 6e 67 6c 65 20 62 6c 6f 63 6b 20 6d 73 67",
|
||||
"14 5a d0 1d bf 82 4e c7 56 08 63 dc 71 e3 e0 c0"
|
||||
}
|
||||
|
|
@ -148,7 +148,7 @@ static tests[] =
|
|||
"f6 d6 6d 6b d5 2d 59 bb 07 96 36 58 79 ef f8 86 "
|
||||
"c6 6d d5 1a 5b 6a 99 74 4b 50 59 0c 87 a2 38 84 "
|
||||
"00 fa ac 24",
|
||||
"c1 58 5e f1 5a 43 d8 75",
|
||||
"c1 58 5e f1 5a 43 d8 75 00 00 00 01",
|
||||
"00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f "
|
||||
"10 11 12 13 14 15 16 17 18 19 1a 1b 1c 1d 1e 1f",
|
||||
"f0 5e 23 1b 38 94 61 2c 49 ee 00 0b 80 4e b2 a9 "
|
||||
|
|
@ -160,7 +160,7 @@ static tests[] =
|
|||
"ff 7a 61 7c e6 91 48 e4 f1 72 6e 2f 43 58 1d e2 "
|
||||
"aa 62 d9 f8 05 53 2e df f1 ee d6 87 fb 54 15 3d "
|
||||
"00 1c c5 b7",
|
||||
"51 a5 1d 70 a1 c1 11 48",
|
||||
"51 a5 1d 70 a1 c1 11 48 00 00 00 01",
|
||||
"00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f "
|
||||
"10 11 12 13 14 15 16 17 18 19 1a 1b 1c 1d 1e 1f"
|
||||
/* "20 21 22 23" */,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue