/base/sensors/miscdevice/utils/tools/haptic_format_converter/tests/ |
H A D | test_converter.py | 38 def setUp(self): 39 self.schema_dir = Path('converter/schemas') 40 self.test_data_dir = Path('tests/test_data') 41 self.output_dir = Path('converter/output_dir') 42 self.output_dir.mkdir(parents=True, exist_ok=True) 44 def read_json(self, file_path): 48 def test_oh_to_he_v1(self): 49 input_data = self.read_json(self.test_data_dir / 'oh_sample.json') 50 expected_output = self [all...] |
/base/startup/hvb/tools/ |
H A D | hvbtool.py | 53 def __init__(self, sig_algo, hash_algo, bit_length, sig_bytes, hash_bytes, pubkey_bytes): 54 self.sig_algo = sig_algo 55 self.hash_algo = hash_algo 56 self.bit_length = bit_length 57 self.sig_bytes = sig_bytes 58 self.hash_bytes = hash_bytes 59 self.pubkey_bytes = pubkey_bytes 76 def __init__(self, footer=None): 77 self.foot = footer 78 if self [all...] |
/base/startup/init/services/modules/seccomp/scripts/ |
H A D | generate_code_from_policy.py | 69 def __init__(self, msg): 183 def __init__(self, arch, function_name_nr_table, is_debug): 184 self.arch = arch 185 self.priority = set() 186 self.allow_list = set() 187 self.blocklist = set() 188 self.priority_with_args = set() 189 self.allow_list_with_args = set() 190 self.head_files = set() 191 self [all...] |
/base/web/webview/ohos_interface/ohos_glue/scripts/ |
H A D | file_parser.py | 523 def __init__(self): 524 self.filenames = [] 525 self.typedefs = [] 526 self.funcs = [] 527 self.classes = [] 528 self.root_directory = None 530 def set_root_directory(self, root_directory): 532 self.root_directory = root_directory 534 def get_root_directory(self): 536 return self [all...] |
/base/security/device_auth/test/fuzztest/protocol/ecspeke_fuzzer/ |
H A D | ecspeke_fuzzer.cpp | 54 BaseProtocol *self; in ECSpekeTest01() local 55 CreateEcSpekeProtocol(&g_X25519ParamsC, true, &self); in ECSpekeTest01() 56 self->destroy(self); in ECSpekeTest01() 189 BaseProtocol *self; in ECSpekeTest05() local 190 CreateEcSpekeProtocol(nullptr, true, &self); in ECSpekeTest05() 203 BaseProtocol *self; in ECSpekeTest07() local 204 CreateEcSpekeProtocol(&errParams, true, &self); in ECSpekeTest07() 211 BaseProtocol *self; in ECSpekeTest08() local 212 CreateEcSpekeProtocol(&errParams, true, &self); in ECSpekeTest08() 218 BaseProtocol *self; ECSpekeTest09() local 229 BaseProtocol *self; ECSpekeTest10() local 238 BaseProtocol *self; ECSpekeTest11() local 250 BaseProtocol *self; ECSpekeTest12() local 262 BaseProtocol *self; ECSpekeTest13() local 274 BaseProtocol *self; ECSpekeTest14() local 285 BaseProtocol *self; ECSpekeTest15() local 299 BaseProtocol *self; ECSpekeTest16() local 313 BaseProtocol *self; ECSpekeTest17() local 326 BaseProtocol *self; ECSpekeTest18() local 338 BaseProtocol *self; ECSpekeTest19() local 350 BaseProtocol *self; ECSpekeTest20() local 365 BaseProtocol *self; ECSpekeTest21() local 380 BaseProtocol *self; ECSpekeTest22() local 391 BaseProtocol *self; ECSpekeTest23() local 402 BaseProtocol *self; ECSpekeTest24() local 413 BaseProtocol *self; ECSpekeTest25() local 424 BaseProtocol *self; ECSpekeTest26() local 436 BaseProtocol *self; ECSpekeTest27() local 447 BaseProtocol *self; ECSpekeTest28() local 459 BaseProtocol *self; ECSpekeTest29() local [all...] |
/base/security/device_auth/test/fuzztest/protocol/iso_fuzzer/ |
H A D | iso_fuzzer.cpp | 51 BaseProtocol *self; in IsoTest01() local 52 (void)CreateIsoProtocol(&g_paramsC, true, &self); in IsoTest01() 53 self->destroy(self); in IsoTest01() 142 BaseProtocol *self; in IsoTest04() local 143 (void)CreateIsoProtocol(nullptr, true, &self); in IsoTest04() 156 BaseProtocol *self; in IsoTest06() local 157 (void)CreateIsoProtocol(&errParams, true, &self); in IsoTest06() 164 BaseProtocol *self; in IsoTest07() local 165 (void)CreateIsoProtocol(&errParams, true, &self); in IsoTest07() 171 BaseProtocol *self; IsoTest08() local 180 BaseProtocol *self; IsoTest09() local 189 BaseProtocol *self; IsoTest10() local 199 BaseProtocol *self; IsoTest11() local 209 BaseProtocol *self; IsoTest12() local 219 BaseProtocol *self; IsoTest13() local 228 BaseProtocol *self; IsoTest14() local 239 BaseProtocol *self; IsoTest15() local 250 BaseProtocol *self; IsoTest16() local 261 BaseProtocol *self; IsoTest17() local 271 BaseProtocol *self; IsoTest18() local 281 BaseProtocol *self; IsoTest19() local 293 BaseProtocol *self; IsoTest20() local 305 BaseProtocol *self; IsoTest21() local 314 BaseProtocol *self; IsoTest22() local 323 BaseProtocol *self; IsoTest23() local 332 BaseProtocol *self; IsoTest24() local 341 BaseProtocol *self; IsoTest25() local 351 BaseProtocol *self; IsoTest26() local 360 BaseProtocol *self; IsoTest27() local 370 BaseProtocol *self; IsoTest28() local [all...] |
/base/security/device_auth/test/fuzztest/protocol/dlspeke_fuzzer/ |
H A D | dlspeke_fuzzer.cpp | 54 BaseProtocol *self; in DlSpekeTest01() local 55 CreateDlSpekeProtocol(&g_prime384ParamsC, true, &self); in DlSpekeTest01() 56 self->destroy(self); in DlSpekeTest01() 189 BaseProtocol *self; in DlSpekeTest05() local 190 CreateDlSpekeProtocol(nullptr, true, &self); in DlSpekeTest05() 203 BaseProtocol *self; in DlSpekeTest07() local 204 CreateDlSpekeProtocol(&errParams, true, &self); in DlSpekeTest07() 210 BaseProtocol *self; in DlSpekeTest08() local 211 int32_t res = CreateDlSpekeProtocol(&g_prime384ParamsC, true, &self); in DlSpekeTest08() 221 BaseProtocol *self; DlSpekeTest09() local 232 BaseProtocol *self; DlSpekeTest10() local 244 BaseProtocol *self; DlSpekeTest11() local 256 BaseProtocol *self; DlSpekeTest12() local 268 BaseProtocol *self; DlSpekeTest13() local 279 BaseProtocol *self; DlSpekeTest14() local 293 BaseProtocol *self; DlSpekeTest15() local 307 BaseProtocol *self; DlSpekeTest16() local 320 BaseProtocol *self; DlSpekeTest17() local 332 BaseProtocol *self; DlSpekeTest18() local 344 BaseProtocol *self; DlSpekeTest19() local 359 BaseProtocol *self; DlSpekeTest20() local 374 BaseProtocol *self; DlSpekeTest21() local 385 BaseProtocol *self; DlSpekeTest22() local 396 BaseProtocol *self; DlSpekeTest23() local 407 BaseProtocol *self; DlSpekeTest24() local 418 BaseProtocol *self; DlSpekeTest25() local 430 BaseProtocol *self; DlSpekeTest26() local 441 BaseProtocol *self; DlSpekeTest27() local 453 BaseProtocol *self; DlSpekeTest28() local [all...] |
/base/security/device_auth/test/fuzztest/session_manager/session/v2/expand_sub_session/expandsubsession_fuzzer/ |
H A D | expandsubsession_fuzzer.cpp | 58 ExpandSubSession *self = NULL; in ExpandSubSessionTest01() local 59 (void)CreateExpandSubSession(&g_nonce, &g_encryptionKey, &self); in ExpandSubSessionTest01() 60 self->destroy(self); in ExpandSubSessionTest01() 97 ExpandSubSession *self; in ExpandSubSessionTest03() local 98 (void)CreateExpandSubSession(nullptr, &g_encryptionKey, &self); in ExpandSubSessionTest03() 105 ExpandSubSession *self; in ExpandSubSessionTest04() local 106 (void)CreateExpandSubSession(&invalidNonce, &g_encryptionKey, &self); in ExpandSubSessionTest04() 112 ExpandSubSession *self; in ExpandSubSessionTest05() local 113 (void)CreateExpandSubSession(&g_nonce, nullptr, &self); in ExpandSubSessionTest05() 120 ExpandSubSession *self; ExpandSubSessionTest06() local 133 ExpandSubSession *self = nullptr; ExpandSubSessionTest08() local 143 ExpandSubSession *self; ExpandSubSessionTest09() local 153 ExpandSubSession *self; ExpandSubSessionTest10() local 163 ExpandSubSession *self; ExpandSubSessionTest11() local 174 ExpandSubSession *self; ExpandSubSessionTest12() local 184 ExpandSubSession *self; ExpandSubSessionTest13() local 195 ExpandSubSession *self; ExpandSubSessionTest14() local 205 ExpandSubSession *self; ExpandSubSessionTest15() local 217 ExpandSubSession *self; ExpandSubSessionTest16() local 228 ExpandSubSession *self; ExpandSubSessionTest17() local 240 ExpandSubSession *self; ExpandSubSessionTest18() local 251 ExpandSubSession *self; ExpandSubSessionTest19() local 261 ExpandSubSession *self; ExpandSubSessionTest20() local [all...] |
/base/update/packaging_tools/ |
H A D | gigraph_process.py | 25 def __init__(self, actions_list, src_image, tgt_image): 26 self.actions_list = actions_list 27 if len(self.actions_list) == 0: 29 self.size_of_source_list = 0 30 self.src_img_obj = src_image 31 self.tgt_img_obj = tgt_image 32 self.vertices = len(self.actions_list) 33 self.data_size = DATA_SIZE 35 self [all...] |
H A D | transfers_manager.py | 42 def __init__(self, type_str, tgt_name, src_name, tgt_block_set, 44 self.type_str = type_str 45 self.tgt_name = tgt_name 46 self.src_name = src_name 47 self.tgt_block_set = tgt_block_set 49 self.src_block_set = src_block_set 51 self.src_block_set = BlocksManager() 52 self.child = OrderedDict() 53 self.parent = OrderedDict() 54 self [all...] |
H A D | unpack_updater_package.py | 65 def __init__(self): 66 self.count = 0 67 self.component_offset = 0 68 self.save_path = None 71 self.compinfo_size = UPGRADE_COMPINFO_SIZE 72 self.type_offset = COMPONENT_TYPE_OFFSET 73 self.addr_size = COMPONENT_ADDR_SIZE 75 self.compinfo_size = UPGRADE_COMPINFO_SIZE_L2 76 self.type_offset = COMPONENT_TYPE_OFFSET_L2 77 self [all...] |
H A D | create_update_package.py | 75 def __init__(self, head_list, component_list, save_path, key_path): 76 self.head_list = head_list 77 self.component_list = component_list 78 self.save_path = save_path 79 self.key_path = key_path 80 self.compinfo_offset = 0 81 self.component_offset = 0 82 self.sign_offset = 0 83 self.hash_info_offset = 0 86 self [all...] |
H A D | create_hashdata.py | 67 def __init__(self, hash_type, count): 68 self.hashinfo_tlv_type = 0x06 69 self.hashdata_tlv_type = 0x07 70 self.sign_tlv_type = 0x08 71 self.hash_type = hash_type 72 self.hash_digest_size = HashAlgo[hash_type]().digest_size 73 self.component_num = count 74 self.block_size = HASH_BLOCK_SIZE 75 self.hashinfo_value = bytes() 76 self [all...] |
/base/security/certificate_framework/frameworks/core/v1.0/certificate/ |
H A D | x509_certificate.c | 63 static void DestroyX509Certificate(CfObjectBase *self) in DestroyX509Certificate() argument 65 if (self == NULL) { in DestroyX509Certificate() 69 if (!CfIsClassMatch(self, GetX509CertificateClass())) { in DestroyX509Certificate() 73 HcfX509CertificateImpl *impl = (HcfX509CertificateImpl *)self; in DestroyX509Certificate() 78 static CfResult Verify(HcfCertificate *self, void *key) in Verify() argument 80 if ((self == NULL) || (key == NULL)) { in Verify() 84 if (!CfIsClassMatch((CfObjectBase *)self, GetX509CertificateClass())) { in Verify() 88 return ((HcfX509CertificateImpl *)self)->spiObj->engineVerify( in Verify() 89 ((HcfX509CertificateImpl *)self)->spiObj, (HcfPubKey *)key); in Verify() 92 static CfResult GetEncoded(HcfCertificate *self, CfEncodingBlo argument 106 GetPublicKey(HcfCertificate *self, void **keyOut) GetPublicKey() argument 120 CheckValidityWithDate(HcfX509Certificate *self, const char *date) CheckValidityWithDate() argument 134 GetVersion(HcfX509Certificate *self) GetVersion() argument 148 GetSerialNumber(HcfX509Certificate *self, CfBlob *out) GetSerialNumber() argument 162 GetIssuerName(HcfX509Certificate *self, CfBlob *out) GetIssuerName() argument 176 GetSubjectName(HcfX509Certificate *self, CfBlob *out) GetSubjectName() argument 190 GetSubjectNameEx(HcfX509Certificate *self, CfEncodinigType encodingType, CfBlob *out) GetSubjectNameEx() argument 204 GetNotBeforeTime(HcfX509Certificate *self, CfBlob *outDate) GetNotBeforeTime() argument 218 GetNotAfterTime(HcfX509Certificate *self, CfBlob *outDate) GetNotAfterTime() argument 232 GetSignature(HcfX509Certificate *self, CfBlob *sigOut) GetSignature() argument 246 GetSignatureAlgName(HcfX509Certificate *self, CfBlob *outName) GetSignatureAlgName() argument 260 GetSignatureAlgOid(HcfX509Certificate *self, CfBlob *out) GetSignatureAlgOid() argument 274 GetSignatureAlgParams(HcfX509Certificate *self, CfBlob *sigAlgParamsOut) GetSignatureAlgParams() argument 288 GetKeyUsage(HcfX509Certificate *self, CfBlob *boolArr) GetKeyUsage() argument 302 GetExtKeyUsage(HcfX509Certificate *self, CfArray *keyUsageOut) GetExtKeyUsage() argument 316 GetBasicConstraints(HcfX509Certificate *self) GetBasicConstraints() argument 330 GetSubjectAltNames(HcfX509Certificate *self, CfArray *outName) GetSubjectAltNames() argument 344 GetIssuerAltNames(HcfX509Certificate *self, CfArray *outName) GetIssuerAltNames() argument 358 GetCRLDistributionPointsURI(HcfX509Certificate *self, CfArray *outURI) GetCRLDistributionPointsURI() argument 372 Match(HcfX509Certificate *self, const HcfX509CertMatchParams *matchParams, bool *out) Match() argument 386 ToString(HcfX509Certificate *self, CfBlob *out) ToString() argument 400 HashCode(HcfX509Certificate *self, CfBlob *out) HashCode() argument 414 GetExtensionsObject(HcfX509Certificate *self, CfBlob *out) GetExtensionsObject() argument [all...] |
H A D | x509_crl.c | 72 static void DestroyX509Crl(CfObjectBase *self) in DestroyX509Crl() argument 74 if (self == NULL) { in DestroyX509Crl() 78 if (!CfIsClassMatch(self, GetX509CrlClass())) { in DestroyX509Crl() 82 HcfX509CrlImpl *impl = (HcfX509CrlImpl *)self; in DestroyX509Crl() 87 static const char *GetType(HcfCrl *self) in GetType() argument 89 if (self == NULL) { in GetType() 93 if (!CfIsClassMatch((CfObjectBase *)self, GetX509CrlClass())) { in GetType() 97 return ((HcfX509CrlImpl *)self)->spiObj->engineGetType( in GetType() 98 ((HcfX509CrlImpl *)self)->spiObj); in GetType() 101 static bool IsRevoked(HcfCrl *self, cons argument 115 Verify(HcfX509Crl *self, void *key) Verify() argument 129 GetEncoded(HcfX509Crl *self, CfEncodingBlob *encodedByte) GetEncoded() argument 143 GetVersion(HcfX509Crl *self) GetVersion() argument 157 GetIssuerName(HcfX509Crl *self, CfBlob *out) GetIssuerName() argument 171 GetLastUpdate(HcfX509Crl *self, CfBlob *out) GetLastUpdate() argument 185 GetNextUpdate(HcfX509Crl *self, CfBlob *out) GetNextUpdate() argument 199 GetRevokedCert(HcfX509Crl *self, const CfBlob *serialNumber, HcfX509CrlEntry **entryOut) GetRevokedCert() argument 213 GetRevokedCertWithCert(HcfX509Crl *self, HcfX509Certificate *cert, HcfX509CrlEntry **entryOut) GetRevokedCertWithCert() argument 227 GetRevokedCerts(HcfX509Crl *self, CfArray *entrysOut) GetRevokedCerts() argument 241 GetTbsInfo(HcfX509Crl *self, CfBlob *tbsCertListOut) GetTbsInfo() argument 255 GetSignature(HcfX509Crl *self, CfBlob *signature) GetSignature() argument 269 GetSignatureAlgName(HcfX509Crl *self, CfBlob *out) GetSignatureAlgName() argument 283 GetSignatureAlgOid(HcfX509Crl *self, CfBlob *out) GetSignatureAlgOid() argument 297 GetSignatureAlgParams(HcfX509Crl *self, CfBlob *sigAlgParamOut) GetSignatureAlgParams() argument 311 GetExtensions(HcfX509Crl *self, CfBlob *outBlob) GetExtensions() argument 325 ToString(HcfX509Crl *self, CfBlob *out) ToString() argument 339 HashCode(HcfX509Crl *self, CfBlob *out) HashCode() argument 353 GetExtensionsOjbect(HcfX509Crl *self, CfBlob *out) GetExtensionsOjbect() argument 367 Match(HcfX509Crl *self, const HcfX509CrlMatchParams *matchParams, bool *out) Match() argument [all...] |
/base/security/device_auth/test/fuzztest/session_manager/session/v2/expand_sub_session/expand_process_lib/pubkeyexchange_fuzzer/ |
H A D | pubkeyexchange_fuzzer.cpp | 49 BaseCmd *self = CreatePubKeyExchangeCmd((void *)&g_paramsC, true, ABORT_IF_ERROR); in PubkeyExchangeTest01() local 50 self->destroy(self); in PubkeyExchangeTest01() 116 BaseCmd *self = CreatePubKeyExchangeCmd((void *)&g_paramsC, true, ABORT_IF_ERROR); in PubkeyExchangeTest08() local 117 self->destroy(nullptr); in PubkeyExchangeTest08() 118 self->destroy(self); in PubkeyExchangeTest08() 124 BaseCmd *self = CreatePubKeyExchangeCmd((void *)&g_paramsC, true, ABORT_IF_ERROR); in PubkeyExchangeTest09() local 127 (void)self->start(nullptr, &out); in PubkeyExchangeTest09() 128 self in PubkeyExchangeTest09() 134 BaseCmd *self = CreatePubKeyExchangeCmd((void *)&g_paramsC, true, ABORT_IF_ERROR); PubkeyExchangeTest10() local 142 BaseCmd *self = CreatePubKeyExchangeCmd((void *)&g_paramsC, true, ABORT_IF_ERROR); PubkeyExchangeTest11() local 156 BaseCmd *self = CreatePubKeyExchangeCmd((void *)&g_paramsC, true, ABORT_IF_ERROR); PubkeyExchangeTest12() local 168 BaseCmd *self = CreatePubKeyExchangeCmd((void *)&g_paramsC, true, ABORT_IF_ERROR); PubkeyExchangeTest13() local 179 BaseCmd *self = CreatePubKeyExchangeCmd((void *)&g_paramsC, true, ABORT_IF_ERROR); PubkeyExchangeTest14() local 189 BaseCmd *self = CreatePubKeyExchangeCmd((void *)&g_paramsC, true, ABORT_IF_ERROR); PubkeyExchangeTest15() local 200 BaseCmd *self = CreatePubKeyExchangeCmd((void *)&g_paramsC, true, ABORT_IF_ERROR); PubkeyExchangeTest16() local 213 BaseCmd *self = CreatePubKeyExchangeCmd((void *)&g_paramsC, true, ABORT_IF_ERROR); PubkeyExchangeTest17() local 227 BaseCmd *self = CreatePubKeyExchangeCmd((void *)&g_paramsS, false, ABORT_IF_ERROR); PubkeyExchangeTest18() local 241 BaseCmd *self = CreatePubKeyExchangeCmd((void *)&g_paramsS, false, ABORT_IF_ERROR); PubkeyExchangeTest19() local 255 BaseCmd *self = CreatePubKeyExchangeCmd((void *)&g_paramsS, false, ABORT_IF_ERROR); PubkeyExchangeTest20() local 269 BaseCmd *self = CreatePubKeyExchangeCmd((void *)&g_paramsS, false, ABORT_IF_ERROR); PubkeyExchangeTest21() local 283 BaseCmd *self = CreatePubKeyExchangeCmd((void *)&g_paramsS, false, ABORT_IF_ERROR); PubkeyExchangeTest22() local [all...] |
/base/security/device_auth/test/fuzztest/session_manager/session/v2/expand_sub_session/expand_process_lib/authcodeimport_fuzzer/ |
H A D | authcodeimport_fuzzer.cpp | 52 BaseCmd *self = CreateAuthCodeImportCmd((void *)&g_paramsC, true, ABORT_IF_ERROR); in AuthCodeImportTest001() local 53 if (self != nullptr) { in AuthCodeImportTest001() 54 self->destroy(self); in AuthCodeImportTest001() 111 BaseCmd *self = CreateAuthCodeImportCmd(nullptr, true, ABORT_IF_ERROR); in AuthCodeImportTest101() local 112 if (self != nullptr) { in AuthCodeImportTest101() 113 self->destroy(self); in AuthCodeImportTest101() 120 BaseCmd *self = CreateAuthCodeImportCmd((void *)(&errorParams), true, ABORT_IF_ERROR); in AuthCodeImportTest102() local 121 if (self ! in AuthCodeImportTest102() 129 BaseCmd *self = CreateAuthCodeImportCmd((void *)(&errorParams), true, ABORT_IF_ERROR); AuthCodeImportTest103() local 138 BaseCmd *self = CreateAuthCodeImportCmd((void *)(&errorParams), true, ABORT_IF_ERROR); AuthCodeImportTest104() local 147 BaseCmd *self = CreateAuthCodeImportCmd((void *)(&errorParams), true, ABORT_IF_ERROR); AuthCodeImportTest105() local 155 BaseCmd *self = CreateAuthCodeImportCmd((void *)&g_paramsC, true, ABORT_IF_ERROR); AuthCodeImportTest106() local 165 BaseCmd *self = CreateAuthCodeImportCmd((void *)&g_paramsC, true, ABORT_IF_ERROR); AuthCodeImportTest107() local 179 BaseCmd *self = CreateAuthCodeImportCmd((void *)&g_paramsC, true, ABORT_IF_ERROR); AuthCodeImportTest108() local 192 BaseCmd *self = CreateAuthCodeImportCmd((void *)&g_paramsC, true, ABORT_IF_ERROR); AuthCodeImportTest109() local 210 BaseCmd *self = CreateAuthCodeImportCmd((void *)&g_paramsC, true, ABORT_IF_ERROR); AuthCodeImportTest110() local 226 BaseCmd *self = CreateAuthCodeImportCmd((void *)&g_paramsC, true, ABORT_IF_ERROR); AuthCodeImportTest111() local 241 BaseCmd *self = CreateAuthCodeImportCmd((void *)&g_paramsC, true, ABORT_IF_ERROR); AuthCodeImportTest112() local 256 BaseCmd *self = CreateAuthCodeImportCmd((void *)&g_paramsC, true, ABORT_IF_ERROR); AuthCodeImportTest113() local 271 BaseCmd *self = CreateAuthCodeImportCmd((void *)&g_paramsC, true, ABORT_IF_ERROR); AuthCodeImportTest114() local 289 BaseCmd *self = CreateAuthCodeImportCmd((void *)&g_paramsC, true, ABORT_IF_ERROR); AuthCodeImportTest115() local 307 BaseCmd *self = CreateAuthCodeImportCmd((void *)&g_paramsS, false, ABORT_IF_ERROR); AuthCodeImportTest116() local 330 BaseCmd *self = CreateAuthCodeImportCmd((void *)&g_paramsS, false, ABORT_IF_ERROR); AuthCodeImportTest117() local 353 BaseCmd *self = CreateAuthCodeImportCmd((void *)&g_paramsS, false, ABORT_IF_ERROR); AuthCodeImportTest118() local 376 BaseCmd *self = CreateAuthCodeImportCmd((void *)&g_paramsS, false, ABORT_IF_ERROR); AuthCodeImportTest119() local 399 BaseCmd *self = CreateAuthCodeImportCmd((void *)&g_paramsS, false, ABORT_IF_ERROR); AuthCodeImportTest120() local [all...] |
/base/security/device_auth/common_lib/impl/src/ |
H A D | hc_string.c | 27 * @param self: self pointer.
31 HcBool StringAppend(HcString *self, HcString str)
in StringAppend() argument 34 if (self != NULL && length > 0) {
in StringAppend() 36 ParcelPopBack(&self->parcel, STRING_END_CHAR_LENGTH);
in StringAppend() 38 return StringAppendPointer(self, GetParcelData(&str.parcel));
in StringAppend() 47 * @param self: self pointer.
51 HcBool StringAppendPointer(HcString *self, const char *str)
in StringAppendPointer() argument 53 if (self ! in StringAppendPointer() 70 StringAppendChar(HcString *self, char c) StringAppendChar() argument 91 StringSet(HcString *self, HcString str) StringSet() argument 108 StringSetPointer(HcString *self, const char *str) StringSetPointer() argument 123 StringGet(const HcString *self) StringGet() argument 137 StringLength(const HcString *self) StringLength() argument [all...] |
/base/security/certificate_framework/frameworks/core/v1.0/spi/ |
H A D | x509_certificate_spi.h | 30 CfResult (*engineVerify)(HcfX509CertificateSpi *self, HcfPubKey *key); 32 CfResult (*engineGetEncoded)(HcfX509CertificateSpi *self, CfEncodingBlob *encodedByte); 34 CfResult (*engineGetPublicKey)(HcfX509CertificateSpi *self, HcfPubKey **keyOut); 36 CfResult (*engineCheckValidityWithDate)(HcfX509CertificateSpi *self, const char *date); 38 long (*engineGetVersion)(HcfX509CertificateSpi *self); 40 CfResult (*engineGetSerialNumber)(HcfX509CertificateSpi *self, CfBlob *out); 42 CfResult (*engineGetIssuerName)(HcfX509CertificateSpi *self, CfBlob *out); 44 CfResult (*engineGetSubjectName)(HcfX509CertificateSpi *self, CfBlob *out); 46 CfResult (*engineGetNotBeforeTime)(HcfX509CertificateSpi *self, CfBlob *outDate); 48 CfResult (*engineGetNotAfterTime)(HcfX509CertificateSpi *self, CfBlo [all...] |
/base/update/packaging_tools/test/ |
H A D | test_script_generator.py | 30 def setUp(self):
33 def tearDown(self):
36 def test_get_proportion_value_list(self):
44 self.assertEqual(adjusted_proportion_value_list, [59, 1])
46 def test_proportion_value_list(self):
56 self.assertEqual(adjusted_proportion_value_list1, [58, 2])
57 self.assertEqual(adjusted_proportion_value_list2, [59, 1])
59 def test_proportion_value_list1(self):
67 self.assertEqual(adjusted_proportion_value_list, [])
69 def test_script_command_content(self) [all...] |
/base/security/device_auth/test/unittest/tdd_framework/unit_test/services/session_manager/session/v2/expand_sub_session/expand_process_lib/ |
H A D | pub_key_exchange_test.cpp | 95 BaseCmd *self = CreatePubKeyExchangeCmd((void *)&g_paramsC, true, ABORT_IF_ERROR); in HWTEST_F() local 96 ASSERT_NE(self, nullptr); in HWTEST_F() 97 self->destroy(self); in HWTEST_F() 137 BaseCmd *self = CreatePubKeyExchangeCmd(nullptr, true, ABORT_IF_ERROR); in HWTEST_F() local 138 ASSERT_EQ(self, nullptr); in HWTEST_F() 144 BaseCmd *self = CreatePubKeyExchangeCmd((void *)(&errorParams), true, ABORT_IF_ERROR); in HWTEST_F() local 145 ASSERT_EQ(self, nullptr); in HWTEST_F() 151 BaseCmd *self = CreatePubKeyExchangeCmd((void *)(&errorParams), true, ABORT_IF_ERROR); in HWTEST_F() local 152 ASSERT_EQ(self, nullpt in HWTEST_F() 158 BaseCmd *self = CreatePubKeyExchangeCmd((void *)(&errorParams), true, ABORT_IF_ERROR); HWTEST_F() local 166 BaseCmd *self = CreatePubKeyExchangeCmd((void *)(&errorParams), true, ABORT_IF_ERROR); HWTEST_F() local 172 BaseCmd *self = CreatePubKeyExchangeCmd((void *)&g_paramsC, true, ABORT_IF_ERROR); HWTEST_F() local 180 BaseCmd *self = CreatePubKeyExchangeCmd((void *)&g_paramsC, true, ABORT_IF_ERROR); HWTEST_F() local 191 BaseCmd *self = CreatePubKeyExchangeCmd((void *)&g_paramsC, true, ABORT_IF_ERROR); HWTEST_F() local 201 BaseCmd *self = CreatePubKeyExchangeCmd((void *)&g_paramsC, true, ABORT_IF_ERROR); HWTEST_F() local 220 BaseCmd *self = CreatePubKeyExchangeCmd((void *)&g_paramsC, true, ABORT_IF_ERROR); HWTEST_F() local 234 BaseCmd *self = CreatePubKeyExchangeCmd((void *)&g_paramsC, true, ABORT_IF_ERROR); HWTEST_F() local 247 BaseCmd *self = CreatePubKeyExchangeCmd((void *)&g_paramsC, true, ABORT_IF_ERROR); HWTEST_F() local 260 BaseCmd *self = CreatePubKeyExchangeCmd((void *)&g_paramsC, true, ABORT_IF_ERROR); HWTEST_F() local 273 BaseCmd *self = CreatePubKeyExchangeCmd((void *)&g_paramsC, true, ABORT_IF_ERROR); HWTEST_F() local 289 BaseCmd *self = CreatePubKeyExchangeCmd((void *)&g_paramsC, true, ABORT_IF_ERROR); HWTEST_F() local 305 BaseCmd *self = CreatePubKeyExchangeCmd((void *)&g_paramsS, false, ABORT_IF_ERROR); HWTEST_F() local 322 BaseCmd *self = CreatePubKeyExchangeCmd((void *)&g_paramsS, false, ABORT_IF_ERROR); HWTEST_F() local 339 BaseCmd *self = CreatePubKeyExchangeCmd((void *)&g_paramsS, false, ABORT_IF_ERROR); HWTEST_F() local 356 BaseCmd *self = CreatePubKeyExchangeCmd((void *)&g_paramsS, false, ABORT_IF_ERROR); HWTEST_F() local 373 BaseCmd *self = CreatePubKeyExchangeCmd((void *)&g_paramsS, false, ABORT_IF_ERROR); HWTEST_F() local [all...] |
H A D | auth_code_import_test.cpp | 95 BaseCmd *self = CreateAuthCodeImportCmd((void *)&g_paramsC, true, ABORT_IF_ERROR); in HWTEST_F() local 96 ASSERT_NE(self, nullptr); in HWTEST_F() 97 self->destroy(self); in HWTEST_F() 137 BaseCmd *self = CreateAuthCodeImportCmd(nullptr, true, ABORT_IF_ERROR); in HWTEST_F() local 138 ASSERT_EQ(self, nullptr); in HWTEST_F() 144 BaseCmd *self = CreateAuthCodeImportCmd((void *)(&errorParams), true, ABORT_IF_ERROR); in HWTEST_F() local 145 ASSERT_EQ(self, nullptr); in HWTEST_F() 151 BaseCmd *self = CreateAuthCodeImportCmd((void *)(&errorParams), true, ABORT_IF_ERROR); in HWTEST_F() local 152 ASSERT_EQ(self, nullpt in HWTEST_F() 158 BaseCmd *self = CreateAuthCodeImportCmd((void *)(&errorParams), true, ABORT_IF_ERROR); HWTEST_F() local 166 BaseCmd *self = CreateAuthCodeImportCmd((void *)(&errorParams), true, ABORT_IF_ERROR); HWTEST_F() local 172 BaseCmd *self = CreateAuthCodeImportCmd((void *)&g_paramsC, true, ABORT_IF_ERROR); HWTEST_F() local 180 BaseCmd *self = CreateAuthCodeImportCmd((void *)&g_paramsC, true, ABORT_IF_ERROR); HWTEST_F() local 191 BaseCmd *self = CreateAuthCodeImportCmd((void *)&g_paramsC, true, ABORT_IF_ERROR); HWTEST_F() local 201 BaseCmd *self = CreateAuthCodeImportCmd((void *)&g_paramsC, true, ABORT_IF_ERROR); HWTEST_F() local 220 BaseCmd *self = CreateAuthCodeImportCmd((void *)&g_paramsC, true, ABORT_IF_ERROR); HWTEST_F() local 234 BaseCmd *self = CreateAuthCodeImportCmd((void *)&g_paramsC, true, ABORT_IF_ERROR); HWTEST_F() local 247 BaseCmd *self = CreateAuthCodeImportCmd((void *)&g_paramsC, true, ABORT_IF_ERROR); HWTEST_F() local 260 BaseCmd *self = CreateAuthCodeImportCmd((void *)&g_paramsC, true, ABORT_IF_ERROR); HWTEST_F() local 273 BaseCmd *self = CreateAuthCodeImportCmd((void *)&g_paramsC, true, ABORT_IF_ERROR); HWTEST_F() local 289 BaseCmd *self = CreateAuthCodeImportCmd((void *)&g_paramsC, true, ABORT_IF_ERROR); HWTEST_F() local 305 BaseCmd *self = CreateAuthCodeImportCmd((void *)&g_paramsS, false, ABORT_IF_ERROR); HWTEST_F() local 322 BaseCmd *self = CreateAuthCodeImportCmd((void *)&g_paramsS, false, ABORT_IF_ERROR); HWTEST_F() local 339 BaseCmd *self = CreateAuthCodeImportCmd((void *)&g_paramsS, false, ABORT_IF_ERROR); HWTEST_F() local 356 BaseCmd *self = CreateAuthCodeImportCmd((void *)&g_paramsS, false, ABORT_IF_ERROR); HWTEST_F() local 373 BaseCmd *self = CreateAuthCodeImportCmd((void *)&g_paramsS, false, ABORT_IF_ERROR); HWTEST_F() local [all...] |
/base/security/device_auth/test/unittest/tdd_framework/unit_test/services/session_manager/session/v2/expand_sub_session/ |
H A D | expand_sub_session_test.cpp | 105 ExpandSubSession *self = NULL; in HWTEST_F() local 106 int32_t res = CreateExpandSubSession(&g_nonce, &g_encryptionKey, &self); in HWTEST_F() 108 ASSERT_NE(self, nullptr); in HWTEST_F() 109 self->destroy(self); in HWTEST_F() 160 ExpandSubSession *self; in HWTEST_F() local 161 int32_t res = CreateExpandSubSession(nullptr, &g_encryptionKey, &self); in HWTEST_F() 168 ExpandSubSession *self; in HWTEST_F() local 169 int32_t res = CreateExpandSubSession(&invalidNonce, &g_encryptionKey, &self); in HWTEST_F() 175 ExpandSubSession *self; in HWTEST_F() local 183 ExpandSubSession *self; HWTEST_F() local 196 ExpandSubSession *self = nullptr; HWTEST_F() local 207 ExpandSubSession *self; HWTEST_F() local 220 ExpandSubSession *self; HWTEST_F() local 233 ExpandSubSession *self; HWTEST_F() local 248 ExpandSubSession *self; HWTEST_F() local 261 ExpandSubSession *self; HWTEST_F() local 275 ExpandSubSession *self; HWTEST_F() local 288 ExpandSubSession *self; HWTEST_F() local 304 ExpandSubSession *self; HWTEST_F() local 318 ExpandSubSession *self; HWTEST_F() local 333 ExpandSubSession *self; HWTEST_F() local 347 ExpandSubSession *self; HWTEST_F() local 361 ExpandSubSession *self; HWTEST_F() local [all...] |
/base/security/device_auth/test/fuzztest/session_manager/session/v2/auth_sub_session/authsubsession_fuzzer/ |
H A D | authsubsession_fuzzer.cpp | 55 AuthSubSession *self; in AuthSubSessionTest01() local 56 (void)CreateAuthSubSession(PROTOCOL_TYPE_ISO, (void *)&g_paramsC, true, &self); in AuthSubSessionTest01() 57 self->destroy(self); in AuthSubSessionTest01() 146 AuthSubSession *self; in AuthSubSessionTest04() local 147 (void)CreateAuthSubSession(PROTOCOL_TYPE_EC_SPEKE, (void *)&g_P256ParamsC, true, &self); in AuthSubSessionTest04() 148 self->destroy(self); in AuthSubSessionTest04() 236 AuthSubSession *self; in AuthSubSessionTest07() local 237 (void)CreateAuthSubSession(PROTOCOL_TYPE_EC_SPEKE, (void *)&g_X25519ParamsC, true, &self); in AuthSubSessionTest07() 327 AuthSubSession *self; AuthSubSessionTest10() local 341 AuthSubSession *self; AuthSubSessionTest12() local 349 AuthSubSession *self; AuthSubSessionTest13() local 356 AuthSubSession *self; AuthSubSessionTest14() local 366 AuthSubSession *self; AuthSubSessionTest15() local 376 AuthSubSession *self; AuthSubSessionTest16() local 387 AuthSubSession *self; AuthSubSessionTest17() local 398 AuthSubSession *self; AuthSubSessionTest18() local 408 AuthSubSession *self; AuthSubSessionTest19() local 417 AuthSubSession *self; AuthSubSessionTest20() local 438 AuthSubSession *self; AuthSubSessionTest22() local 445 AuthSubSession *self; AuthSubSessionTest23() local 457 AuthSubSession *self; AuthSubSessionTest24() local 468 AuthSubSession *self; AuthSubSessionTest25() local 478 AuthSubSession *self; AuthSubSessionTest26() local 488 AuthSubSession *self; AuthSubSessionTest27() local 497 AuthSubSession *self; AuthSubSessionTest28() local 506 AuthSubSession *self; AuthSubSessionTest29() local 515 AuthSubSession *self; AuthSubSessionTest30() local 526 AuthSubSession *self; AuthSubSessionTest31() local 535 AuthSubSession *self; AuthSubSessionTest32() local 545 AuthSubSession *self; AuthSubSessionTest33() local [all...] |
/base/security/certificate_framework/interfaces/inner_api/certificate/ |
H A D | x509_certificate.h | 34 CfResult (*checkValidityWithDate)(HcfX509Certificate *self, const char *date); 37 long (*getVersion)(HcfX509Certificate *self); 40 CfResult (*getSerialNumber)(HcfX509Certificate *self, CfBlob *out); 43 CfResult (*getIssuerName)(HcfX509Certificate *self, CfBlob *out); 46 CfResult (*getSubjectName)(HcfX509Certificate *self, CfBlob *out); 51 CfResult (*getNotBeforeTime)(HcfX509Certificate *self, CfBlob *outDate); 56 CfResult (*getNotAfterTime)(HcfX509Certificate *self, CfBlob *outDate); 59 CfResult (*getSignature)(HcfX509Certificate *self, CfBlob *sigOut); 62 CfResult (*getSignatureAlgName)(HcfX509Certificate *self, CfBlob *outName); 65 CfResult (*getSignatureAlgOid)(HcfX509Certificate *self, CfBlo [all...] |