未验证 提交 bdfef469 编写于 作者: O openharmony_ci 提交者: Gitee

!7384 【OpenHarmony 4.0.2.2】【安全子系统】cryptoFramework测试套适配ECC512->ECC521

Merge pull request !7384 from qiaozzzh/0202_1
...@@ -982,7 +982,7 @@ export default function AsymmetricCryptographyJsunit() { ...@@ -982,7 +982,7 @@ export default function AsymmetricCryptographyJsunit() {
0, 0,
async function (done) { async function (done) {
await asyPromise await asyPromise
.signAndVerifyNormalProcess("ECC512", "ECC512|SHA384") .signAndVerifyNormalProcess("ECC521", "ECC521|SHA384")
.then((data) => { .then((data) => {
expect(data == null).assertTrue(); expect(data == null).assertTrue();
}) })
...@@ -1227,7 +1227,7 @@ export default function AsymmetricCryptographyJsunit() { ...@@ -1227,7 +1227,7 @@ export default function AsymmetricCryptographyJsunit() {
/** /**
* @tc.number Security_crypto_framework_ASymmetric_SignVerify_ECDH_0400 * @tc.number Security_crypto_framework_ASymmetric_SignVerify_ECDH_0400
* @tc.name Test ECC512 SignVerify ECDH * @tc.name Test ECC521 SignVerify ECDH
* @tc.desc Use the Callback Style of Interface * @tc.desc Use the Callback Style of Interface
*/ */
it( it(
...@@ -1235,7 +1235,7 @@ export default function AsymmetricCryptographyJsunit() { ...@@ -1235,7 +1235,7 @@ export default function AsymmetricCryptographyJsunit() {
0, 0,
async function (done) { async function (done) {
await asyCallback await asyCallback
.keyAgreementProcess("ECC512") .keyAgreementProcess("ECC521")
.then((data) => { .then((data) => {
expect(data == null).assertTrue(); expect(data == null).assertTrue();
}) })
...@@ -1322,7 +1322,7 @@ export default function AsymmetricCryptographyJsunit() { ...@@ -1322,7 +1322,7 @@ export default function AsymmetricCryptographyJsunit() {
0, 0,
async function (done) { async function (done) {
await asyCallback await asyCallback
.keyAgreementProcessFail("RSA3072", "ECC512") .keyAgreementProcessFail("RSA3072", "ECC521")
.then((data) => { .then((data) => {
expect(data == "Error: An exception occurs.").assertTrue(); expect(data == "Error: An exception occurs.").assertTrue();
}) })
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册