Conversation
host/xtest/regression_4000_data.h
Outdated
| 0x76, 0xf0, 0x9b, 0x3c, 0x1e, 0x16, 0x17, 0x42 | ||
| }; | ||
|
|
||
|
|
There was a problem hiding this comment.
Please add a comment describing where you got these test vectors from.
host/xtest/regression_4000.c
Outdated
| TEEC_Session session = { }; | ||
| TEE_OperationHandle op = TEE_HANDLE_NULL; | ||
| TEE_ObjectHandle key_handle = TEE_HANDLE_NULL; | ||
|
|
There was a problem hiding this comment.
Empty line not needed between the declarations of stack variables.
host/xtest/regression_4000.c
Outdated
|
|
||
| if (!ADBG_EXPECT_TEEC_SUCCESS(c, | ||
| xtest_teec_open_session(&session, &crypt_user_ta_uuid, | ||
| NULL, &ret_orig))) |
There was a problem hiding this comment.
Please align with the ( on the line above. Same below where possible.
jenswi-linaro
left a comment
There was a problem hiding this comment.
With my comment addressed:
Acked-by: Jens Wiklander <jens.wiklander@linaro.org>
host/xtest/regression_4000.c
Outdated
| tv->ptx_len, out, &out_size))) | ||
| goto out; | ||
|
|
||
| ADBG_EXPECT_COMPARE_UNSIGNED(c, |
There was a problem hiding this comment.
Please use ADBG_EXPECT_BUFFER() instead.
aa59a7c to
0f413cd
Compare
The test vectors originate from RFC 8032 sections 7.1, 7.2, 7.3 This patch is not expected to be merged. The pull request will be rebased as soon as the pull request with these data vectors is merged: OP-TEE#610 Signed-off-by: Valerii Chubar <valerii_chubar@epam.com>
etienne-lms
left a comment
There was a problem hiding this comment.
There are minor indentation issues.
Acked-by: Etienne Carriere <etienne.carriere@linaro.org> once addressed.
host/xtest/regression_4000.c
Outdated
| const uint8_t flag; | ||
| const uint8_t *context; | ||
| size_t context_len; | ||
| } eddsa; |
host/xtest/regression_4000.c
Outdated
| TEEC_CloseSession(&session); | ||
| } | ||
| ADBG_CASE_DEFINE(regression, 4016_ed25519, xtest_tee_test_4016_ed25519, | ||
| "Test TEE Internal API ED25519 sign/verify"); |
There was a problem hiding this comment.
fix indenation
ADBG_CASE_DEFINE(regression, 4016_ed25519, xtest_tee_test_4016_ed25519,
-"Test TEE Internal API ED25519 sign/verify");
+ "Test TEE Internal API ED25519 sign/verify");
host/xtest/regression_4000.c
Outdated
| xtest_add_attr(&num_attrs, attrs, | ||
| TEE_ATTR_EDDSA_PREHASH, NULL, 0); | ||
|
|
||
|
|
There was a problem hiding this comment.
remove one of the 2 empty lines
|
There is a problem with the key generation test |
The test vectors originate from RFC 8032 sections 7.1, 7.2, 7.3 This patch is not expected to be merged. The pull request will be rebased as soon as the pull request with these data vectors is merged: OP-TEE#610 Signed-off-by: Valerii Chubar <valerii_chubar@epam.com>
host/xtest/regression_4000.c
Outdated
| generate_and_test_key(c, &session, | ||
| TEE_TYPE_ED25519_KEYPAIR, 0, 256, | ||
| NULL, 0))) | ||
| return; |
There was a problem hiding this comment.
shouold remove instruction return here:
Do_ADBG_BeginSubCase(c, "Generate Ed25519 key");
ADBG_EXPECT_TRUE(c, generate_and_test_key(c, &session,
TEE_TYPE_ED25519_KEYPAIR,
0, 256, NULL, 0));
Do_ADBG_EndSubCase(c, "Generate Ed25519 key");
out:
TEEC_CloseSession(&session);
|
|
Yet another problem with the key generation test, this time hopefully fixed by OP-TEE/optee_os#5573. |
|
@sa-kib would you mind addressing @etienne-lms's comments and applying his Acked-by? Thanks! |
Add test cases to generate ED25519 key, sign/verify for ED25519, ED25519ctx and ED25519ph. The test vectors originate from RFC 8032 sections 7.1, 7.2, 7.3 Signed-off-by: Valerii Chubar <valerii_chubar@epam.com> Signed-off-by: Sergiy Kibrik <Sergiy_Kibrik@epam.com> Acked-by: Jens Wiklander <jens.wiklander@linaro.org> Acked-by: Etienne Carriere <etienne.carriere@linaro.org>
patch is updated now, thank you! |
|
CI is now happy, thanks all. |
Add test cases to generate ED25519 key, sign/verify for ED25519, ED25519ctx and ED25519ph.
Companion PR for Ed25519 OP-TEE implementation: #5486