提交 b1a98d76 编写于 作者: Q qiaozzzh

加解密测试套适配

Signed-off-by: Nqiaozzzh <qiaozhang@huawei.com>
Change-Id: I237eb38668566a8eec7f0305f9a570f8268c6b9a
上级 a405c116
...@@ -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.
先完成此消息的编辑!
想要评论请 注册