未验证 提交 a3112094 编写于 作者: Y yuanyuhang 提交者: Gitee

Cipher删除重复用例

Signed-off-by: Nyuanyuhang <yuanyuhang1@huawei.com>
上级 610d5c91
...@@ -405,33 +405,4 @@ describe('cipher1_test', function () { ...@@ -405,33 +405,4 @@ describe('cipher1_test', function () {
} }
}); });
}); });
/**
* @tc.number SUB_SEC_DataPro_cipher_2300
* @tc.name Pressure test on the RSA algorithm encryption and decryption interface
* @tc.desc [C-SECURITY-1800]
*/
it('SUB_SEC_DataPro_cipher_2300', 3, function () {
cipher.aes({
action: 'decrypt',
text: cipherTextAes,
key: aesKey,
transformation: 'AES',
iv: 'MTIzNDU2Nzg5MDEyMzQ1Ng==',
ivOffset: 0,
ivLen: 16,
success: data => {
console.log(`cipher.aes decrypt success: ${data.text}`);
expect(cipherResultFail).toBeTrue();
},
fail: (data,code) => {
this.err = `${code}: ${data}`;
console.log(`transformation is invalid, cipher.aes decrypt fail: ${code}: ${data}`);
expect(cipherResult).toBeTrue();
},
complete: () => {
console.log(`Aes encrypt end...`);
}
});
});
});} });}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册