diff options
author | Jakub Jelen <jjelen@redhat.com> | 2020-10-30 15:12:59 +0100 |
---|---|---|
committer | Jakub Jelen <jjelen@redhat.com> | 2021-01-04 17:33:22 +0100 |
commit | aca849bee8b64d3c83a7bcc57b12b1ced76ae5ac (patch) | |
tree | 16259dd468a415542d400a3270746c4dbe511309 | |
parent | ae68776db9a6097cd6307befc74d4eec00cc55da (diff) |
tests: Fix comments
Signed-off-by: Jakub Jelen <jjelen@redhat.com>
Acked-by: Frediano Ziglio <fziglio@redhat.com>
-rw-r--r-- | tests/common.c | 2 | ||||
-rw-r--r-- | tests/hwtests.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/common.c b/tests/common.c index f859f0c..ef34d94 100644 --- a/tests/common.c +++ b/tests/common.c @@ -476,7 +476,7 @@ void do_sign(VReader *reader, int parts) int dwRecvLength = APDUBufSize; uint8_t pbRecvBuffer[APDUBufSize]; uint8_t sign[] = { - /* VERIFY [p1,p2=0 ] [Lc ] [2048b keys: 256 bytes of PKCS#1.5 padded data] */ + /* SIGN [p1,p2=0 ] [Lc ] [2048b keys: 256 bytes of PKCS#1.5 padded data] */ 0x80, 0x42, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x01, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, diff --git a/tests/hwtests.c b/tests/hwtests.c index 49c12f9..e5fec72 100644 --- a/tests/hwtests.c +++ b/tests/hwtests.c @@ -269,7 +269,7 @@ static void test_sign_bad_data_x509(void) int dwRecvLength = APDUBufSize; uint8_t pbRecvBuffer[APDUBufSize]; uint8_t sign[] = { - /* VERIFY [p1,p2=0 ] [Lc ] [2048b keys: 256 bytes of non PKCS#1.5 data] */ + /* SIGN [p1,p2=0 ] [Lc ] [2048b keys: 256 bytes of non PKCS#1.5 data] */ 0x80, 0x42, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, /* ^--- the second byte of data should be 0x01 for signatures */ |