| /test/xts/acts/security/cipher/datacipher/cipher/entry/src/ohosTest/js/test/Agree/ |
| D | cipher2.test.js | 16 import cipher from '@system.cipher'; 64 cipher.rsa({ 90 cipher.rsa({ 116 cipher.rsa({ 142 cipher.rsa({ 171 cipher.rsa({ 197 cipher.rsa({ 223 cipher.rsa({ 249 cipher.rsa({ 287 cipher.rsa({ [all …]
|
| D | cipher1.test.js | 16 import cipher from '@system.cipher'; 64 cipher.aes({ 93 cipher.aes({ 122 cipher.aes({ 151 cipher.aes({ 172 cipher.aes({ 201 cipher.aes({ 230 cipher.aes({ 259 cipher.aes({ 288 cipher.aes({ [all …]
|
| D | hitscipher.test.js | 16 import cipher from '@system.cipher'; 64 cipher.rsa({ 79 cipher.rsa({ 105 cipher.aes({ 123 cipher.aes({ 153 cipher.rsa({ 167 cipher.rsa({ 199 cipher.aes({ 216 cipher.aes({
|
| /test/xts/acts/security/cryptoFramework/js_api10_test_oh50/entry/src/ohosTest/ets/test/utils/syncSymEncAndDec/ |
| D | syncSymEncAndDecUtils.ets | 57 let cipher = cryptoFramework.createCipher(algName); 59 cipher.initSync(cryptoFramework.CryptoMode.ENCRYPT_MODE, symKey, paramsSpec); 61 cipher.initSync(cryptoFramework.CryptoMode.DECRYPT_MODE, symKey, paramsSpec); 63 let updateOutput = cipher.updateSync(data); 65 let authTag = cipher.doFinalSync(null); 78 let cipher = cryptoFramework.createCipher(algName); 80 cipher.initSync(cryptoFramework.CryptoMode.ENCRYPT_MODE, symKey, paramsSpec); 82 cipher.initSync(cryptoFramework.CryptoMode.DECRYPT_MODE, symKey, paramsSpec); 84 let updateOutput = cipher.doFinalSync(data); 155 let cipher = cryptoFramework.createCipher(algName); [all …]
|
| /test/xts/acts/security/cryptoFramework/js_api10_test_oh41/entry/src/ohosTest/ets/test/ |
| D | SecurityCryptoFwCipherSM2.test.ets | 20 import * as cipherCallbackFunc from './utils/cipher/cipherAsyCallbackFunc'; 21 import * as cipherPromiseFunc from './utils/cipher/cipherAsyPromiseFunc'; 48 * @tc.name Test cipher with SM2_256|SHA256, process is successful 63 console.log(`Security_CryptoFramework_Cipher_SM2_Func_0100: cipher succeed`); 74 * @tc.name Test cipher with SM2_256|SHA256, process is successful 96 console.log(`Security_CryptoFramework_Cipher_SM2_Func_0200: cipher succeed`); 117 let cipher: cryptoFramework.Cipher = cryptoFramework.createCipher(cipherAlg); 118 cipher.getCipherSpec(cryptoFramework.CipherSpecItem.SM2_MD_NAME_STR); 140 let cipher: cryptoFramework.Cipher = cryptoFramework.createCipher(cipherAlg); 141 cipher.getCipherSpec(cryptoFramework.CipherSpecItem.SM2_MD_NAME_STR); [all …]
|
| D | SecurityCryptoFwGenECCCommonSpec.test.ets | 22 import * as cipherCallbackFunc from './utils/cipher/cipherAsyCallbackFunc'; 23 import * as cipherPromiseFunc from './utils/cipher/cipherAsyPromiseFunc'; 469 * @tc.name Test cipher with 'SM2_256', process is success 483 console.log(`Security_CryptoFramework_genECCCommonSpec_Func_2000: cipher succeed.`);
|
| /test/xts/acts/pcs/pcs_arkts/entry/src/ohosTest/ets/test/ |
| D | SecurityUtils.ets | 96 let cipher = cryptoFramework.createCipher(algName) 98 await cipher.init(cryptoFramework.CryptoMode.ENCRYPT_MODE, symKey, ivParams) 101 await cipher.init(cryptoFramework.CryptoMode.ENCRYPT_MODE, symKey, null) 103 let cipherData = await cipher.doFinal(plainText) 124 let cipher = cryptoFramework.createCipher(algName) 125 await cipher.init(cryptoFramework.CryptoMode.ENCRYPT_MODE, symKey, gcmParams) 126 let encryptUpdate = await cipher.update(plainText) 127 gcmParams.authTag = await cipher.doFinal(null) 144 let cipher = cryptoFramework.createCipher(algName) 145 await cipher.init(cryptoFramework.CryptoMode.ENCRYPT_MODE, symKey, ccmParams) [all …]
|
| /test/xts/acts/security/huks/huks_ets_api12/entry/src/ohosTest/ets/test/ |
| D | SecurityHuksCipherSM4.test.ets | 68 * @tc.name : test sm4 CFB module cipher by three steps finish, 240B data, process success 92 * @tc.name : test sm4 CFB module cipher by three steps abort, 240B data, process success 114 * @tc.name : test sm4 CFB module cipher by two steps finish, 240B data, process success 136 * @tc.name : test sm4 CFB module cipher by three steps finish, 64KB data, process success 158 …* @tc.name : test sm4 CFB module cipher by three steps finish, 240B data, callback style, proces… 180 * @tc.name : test sm4 CFB module cipher with unsupported padding pkcs7, process fail 202 * @tc.name : test sm4 CFB module cipher without iv tag, process fail 225 * @tc.name : test sm4 OFB module cipher by three steps finish, 240B data, process success 249 * @tc.name : test sm4 OFB module cipher by three steps abort, 240B data, process success 271 * @tc.name : test sm4 OFB module cipher by two steps finish, 240B data, process success [all …]
|
| /test/xts/acts/security/cryptoFramework/js_api10_test_oh50/entry/src/ohosTest/ets/test/ |
| D | SecurityCryptoFwRfc5915ToRfc5208.test.ets | 164 … let cipher: cryptoFramework.AsyKeyGenerator = cryptoFramework.createAsyKeyGenerator(algName); 165 let keyPair: cryptoFramework.KeyPair = await cipher.generateKeyPair(); 199 … let cipher: cryptoFramework.AsyKeyGenerator = cryptoFramework.createAsyKeyGenerator(algName); 203 keyPair = await cipher.convertKey(pubKey, priKey) 230 … let cipher: cryptoFramework.AsyKeyGenerator = cryptoFramework.createAsyKeyGenerator(algName); 231 let keyPair: cryptoFramework.KeyPair = await cipher.generateKeyPair(); 257 … let cipher: cryptoFramework.AsyKeyGenerator = cryptoFramework.createAsyKeyGenerator(algName); 258 let keyPair: cryptoFramework.KeyPair = await cipher.generateKeyPair(); 284 … let cipher: cryptoFramework.AsyKeyGenerator = cryptoFramework.createAsyKeyGenerator(algName); 285 let keyPair: cryptoFramework.KeyPair = await cipher.generateKeyPair(); [all …]
|
| D | SecurityCryptoFwSymEncryptAndDecrypt.test.ets | 873 let cipher = cryptoFramework.createCipher(encAlgName); 876 cipher.initSync(cryptoFramework.CryptoMode.ENCRYPT_MODE, symKey, paramSpec); 899 let cipher = cryptoFramework.createCipher(encAlgName); 900 cipher.initSync(cryptoFramework.CryptoMode.ENCRYPT_MODE, keyPair.priKey, null) 926 let cipher = cryptoFramework.createCipher(algName); 927 cipher.initSync(cryptoFramework.CryptoMode.DECRYPT_MODE, keyPair.pubKey, null); 949 let cipher = cryptoFramework.createCipher(encAlgName); 950 cipher.initSync(cryptoFramework.CryptoMode.ENCRYPT_MODE, keySym, null); 972 let cipher = cryptoFramework.createCipher(encAlgName); 973 cipher.initSync(cryptoFramework.CryptoMode.ENCRYPT_MODE, keyPair.pubKey, null); [all …]
|
| /test/xts/acts/security/huks/huks_napi_BasicTest/src/ |
| D | huks_cipher_aes_test_common.cpp | 92 uint8_t cipher[AES_COMMON_SIZE] = {0}; in HksAesCipherTestCaseOther() local 93 struct OH_Huks_Blob cipherText = {AES_COMMON_SIZE, cipher}; in HksAesCipherTestCaseOther() 123 uint8_t cipher[AES_COMMON_SIZE] = {0}; in HksAesCipherTestCaseGcm2() local 124 struct OH_Huks_Blob cipherText = {AES_COMMON_SIZE, cipher}; in HksAesCipherTestCaseGcm2()
|
| D | huks_cipher_rsa_test_common.cpp | 114 uint8_t cipher[Unittest::RsaCipher::RSA_COMMON_SIZE] = {0}; in HksRsaCipherTestCase() local 115 struct OH_Huks_Blob cipherText = {Unittest::RsaCipher::RSA_COMMON_SIZE, cipher}; in HksRsaCipherTestCase() 153 uint8_t cipher[Unittest::RsaCipher::RSA_COMMON_SIZE] = {0}; in HksRsaCipherTestCaseAbnormal() local 154 struct OH_Huks_Blob cipherText = {Unittest::RsaCipher::RSA_COMMON_SIZE, cipher}; in HksRsaCipherTestCaseAbnormal()
|
| D | huks_cipher_sm4_test_common.cpp | 89 uint8_t cipher[SM4_COMMON_SIZE] = {0}; in HksSm4CipherTestCaseOther() local 90 struct OH_Huks_Blob cipherText = {SM4_COMMON_SIZE, cipher}; in HksSm4CipherTestCaseOther()
|
| D | huks_cipher_aes_test.cpp | 155 uint8_t cipher[AES_COMMON_SIZE] = {0}; variable 156 struct OH_Huks_Blob cipherText = {AES_COMMON_SIZE, cipher};
|
| /test/xts/acts/security/cipher/datacipher/ |
| D | BUILD.gn | 18 deps = [ "cipher:ActsSecurityCipherTest" ]
|
| /test/xts/acts/security/ |
| D | BUILD.gn | 27 "cipher/datacipher:datacipher",
|
| /test/xts/acts/security/cryptoFramework/js_api10_test_oh41/entry/src/ohosTest/ets/test/utils/cipher/ |
| D | cipherAsyPromiseFunc.ets | 21 let input: cpFw.DataBlob = { data: stringToUint8Array("This is a cipher test.") };
|
| D | cipherAsyCallbackFunc.ets | 50 let input: cpFw.DataBlob = { data: stringToUint8Array("This is a cipher test.") };
|
| /test/xts/acts/security/cryptoFramework/js_api10_test_oh50/entry/src/ohosTest/ets/test/utils/pkcs8/ |
| D | pkcs8Utils.ets | 29 let cipher: cryptoFramework.AsyKeyGenerator = cryptoFramework.createAsyKeyGenerator(algName); 30 let keyPair: cryptoFramework.KeyPair = await cipher.generateKeyPair(); 41 let cipher: cryptoFramework.AsyKeyGenerator = cryptoFramework.createAsyKeyGenerator(algName); 42 let keyPair: cryptoFramework.KeyPair = await cipher.generateKeyPair(); 55 let cipher: cryptoFramework.AsyKeyGenerator = cryptoFramework.createAsyKeyGenerator(algName); 56 … let keyPair: cryptoFramework.KeyPair = await cipher.convertKey(data.dataPubKey, data.dataPriKey); 67 let cipher: cryptoFramework.AsyKeyGenerator = cryptoFramework.createAsyKeyGenerator(algName); 68 …let keyPair: cryptoFramework.KeyPair = await cipher.convertKey(dataKeyPair.dataPubKey, dataKeyPair…
|
| /test/xts/acts/telephony/networkmanager/socket/sockettest/entry/src/ohosTest/ets/test/ |
| D | TlsSocketConnection.test.ets | 840 … * @tc.desc : Get the cipher suite negotiated by both parties,Use Promise asynchronous callback.
|