Home
last modified time | relevance | path

Searched refs:cipher (Results 1 – 20 of 20) sorted by relevance

/test/xts/acts/security/cipher/datacipher/cipher/entry/src/ohosTest/js/test/Agree/
Dcipher2.test.js16 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 …]
Dcipher1.test.js16 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 …]
Dhitscipher.test.js16 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/
DsyncSymEncAndDecUtils.ets57 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/
DSecurityCryptoFwCipherSM2.test.ets20 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 …]
DSecurityCryptoFwGenECCCommonSpec.test.ets22 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/
DSecurityUtils.ets96 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/
DSecurityHuksCipherSM4.test.ets68 * @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/
DSecurityCryptoFwRfc5915ToRfc5208.test.ets164 … 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 …]
DSecurityCryptoFwSymEncryptAndDecrypt.test.ets873 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/
Dhuks_cipher_aes_test_common.cpp92 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()
Dhuks_cipher_rsa_test_common.cpp114 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()
Dhuks_cipher_sm4_test_common.cpp89 uint8_t cipher[SM4_COMMON_SIZE] = {0}; in HksSm4CipherTestCaseOther() local
90 struct OH_Huks_Blob cipherText = {SM4_COMMON_SIZE, cipher}; in HksSm4CipherTestCaseOther()
Dhuks_cipher_aes_test.cpp155 uint8_t cipher[AES_COMMON_SIZE] = {0}; variable
156 struct OH_Huks_Blob cipherText = {AES_COMMON_SIZE, cipher};
/test/xts/acts/security/cipher/datacipher/
DBUILD.gn18 deps = [ "cipher:ActsSecurityCipherTest" ]
/test/xts/acts/security/
DBUILD.gn27 "cipher/datacipher:datacipher",
/test/xts/acts/security/cryptoFramework/js_api10_test_oh41/entry/src/ohosTest/ets/test/utils/cipher/
DcipherAsyPromiseFunc.ets21 let input: cpFw.DataBlob = { data: stringToUint8Array("This is a cipher test.") };
DcipherAsyCallbackFunc.ets50 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/
Dpkcs8Utils.ets29 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/
DTlsSocketConnection.test.ets840 … * @tc.desc : Get the cipher suite negotiated by both parties,Use Promise asynchronous callback.