Home
last modified time | relevance | path

Searched refs:tmpKeyPair (Results 1 – 6 of 6) sorted by relevance

/ohos5.0/base/security/crypto_framework/test/unittest/src/
H A Dcrypto_x25519_asy_key_generator_test.cpp484 HcfKeyPair *tmpKeyPair = nullptr; in MemoryMallocTestFunc() local
494 res = tmpKeyPair->pubKey->base.getEncoded(&(tmpKeyPair->pubKey->base), &tmpPubKeyBlob); in MemoryMallocTestFunc()
496 HcfObjDestroy(tmpKeyPair); in MemoryMallocTestFunc()
504 res = tmpKeyPair->priKey->base.getEncoded(&(tmpKeyPair->priKey->base), &tmpPriKeyBlob); in MemoryMallocTestFunc()
507 HcfObjDestroy(tmpKeyPair); in MemoryMallocTestFunc()
515 HcfObjDestroy(tmpKeyPair); in MemoryMallocTestFunc()
580 res = tmpKeyPair->pubKey->base.getEncoded(&(tmpKeyPair->pubKey->base), &tmpPubKeyBlob); in OpensslMockTestFunc()
582 HcfObjDestroy(tmpKeyPair); in OpensslMockTestFunc()
590 res = tmpKeyPair->priKey->base.getEncoded(&(tmpKeyPair->priKey->base), &tmpPriKeyBlob); in OpensslMockTestFunc()
593 HcfObjDestroy(tmpKeyPair); in OpensslMockTestFunc()
[all …]
H A Dcrypto_dh_asy_key_generator_test.cpp723 HcfKeyPair *tmpKeyPair = nullptr; in MemoryMallocTestFunc() local
733 res = tmpKeyPair->pubKey->base.getEncoded(&(tmpKeyPair->pubKey->base), &tmpPubKeyBlob); in MemoryMallocTestFunc()
735 HcfObjDestroy(tmpKeyPair); in MemoryMallocTestFunc()
743 res = tmpKeyPair->priKey->base.getEncoded(&(tmpKeyPair->priKey->base), &tmpPriKeyBlob); in MemoryMallocTestFunc()
746 HcfObjDestroy(tmpKeyPair); in MemoryMallocTestFunc()
754 HcfObjDestroy(tmpKeyPair); in MemoryMallocTestFunc()
820 res = tmpKeyPair->pubKey->base.getEncoded(&(tmpKeyPair->pubKey->base), &tmpPubKeyBlob); in OpensslMockTestFunc()
822 HcfObjDestroy(tmpKeyPair); in OpensslMockTestFunc()
827 res = tmpKeyPair->priKey->base.getEncoded(&(tmpKeyPair->priKey->base), &tmpPriKeyBlob); in OpensslMockTestFunc()
830 HcfObjDestroy(tmpKeyPair); in OpensslMockTestFunc()
[all …]
H A Dcrypto_brainpool_asy_key_generator_test.cpp1141 HcfKeyPair *tmpKeyPair = nullptr; in MemoryMallocTestFunc() local
1151 res = tmpKeyPair->pubKey->base.getEncoded(&(tmpKeyPair->pubKey->base), &tmpPubKeyBlob); in MemoryMallocTestFunc()
1153 HcfObjDestroy(tmpKeyPair); in MemoryMallocTestFunc()
1161 res = tmpKeyPair->priKey->base.getEncoded(&(tmpKeyPair->priKey->base), &tmpPriKeyBlob); in MemoryMallocTestFunc()
1164 HcfObjDestroy(tmpKeyPair); in MemoryMallocTestFunc()
1172 HcfObjDestroy(tmpKeyPair); in MemoryMallocTestFunc()
1240 res = tmpKeyPair->pubKey->base.getEncoded(&(tmpKeyPair->pubKey->base), &tmpPubKeyBlob); in OpensslMockTestFunc()
1242 HcfObjDestroy(tmpKeyPair); in OpensslMockTestFunc()
1250 res = tmpKeyPair->priKey->base.getEncoded(&(tmpKeyPair->priKey->base), &tmpPriKeyBlob); in OpensslMockTestFunc()
1253 HcfObjDestroy(tmpKeyPair); in OpensslMockTestFunc()
[all …]
H A Dcrypto_ed25519_asy_key_generator_test.cpp571 HcfKeyPair *tmpKeyPair = nullptr; in MemoryMallocTestFunc() local
581 res = tmpKeyPair->pubKey->base.getEncoded(&(tmpKeyPair->pubKey->base), &tmpPubKeyBlob); in MemoryMallocTestFunc()
583 HcfObjDestroy(tmpKeyPair); in MemoryMallocTestFunc()
591 res = tmpKeyPair->priKey->base.getEncoded(&(tmpKeyPair->priKey->base), &tmpPriKeyBlob); in MemoryMallocTestFunc()
594 HcfObjDestroy(tmpKeyPair); in MemoryMallocTestFunc()
602 HcfObjDestroy(tmpKeyPair); in MemoryMallocTestFunc()
671 res = tmpKeyPair->pubKey->base.getEncoded(&(tmpKeyPair->pubKey->base), &tmpPubKeyBlob); in OpensslMockTestFunc()
673 HcfObjDestroy(tmpKeyPair); in OpensslMockTestFunc()
681 res = tmpKeyPair->priKey->base.getEncoded(&(tmpKeyPair->priKey->base), &tmpPriKeyBlob); in OpensslMockTestFunc()
684 HcfObjDestroy(tmpKeyPair); in OpensslMockTestFunc()
[all …]
H A Dcrypto_sm2_asy_key_generator_test.cpp1544 HcfKeyPair *tmpKeyPair = nullptr; in MemoryMallocTestFunc() local
1554 res = tmpKeyPair->pubKey->base.getEncoded(&(tmpKeyPair->pubKey->base), &tmpPubKeyBlob); in MemoryMallocTestFunc()
1556 HcfObjDestroy(tmpKeyPair); in MemoryMallocTestFunc()
1564 res = tmpKeyPair->priKey->base.getEncoded(&(tmpKeyPair->priKey->base), &tmpPriKeyBlob); in MemoryMallocTestFunc()
1567 HcfObjDestroy(tmpKeyPair); in MemoryMallocTestFunc()
1575 HcfObjDestroy(tmpKeyPair); in MemoryMallocTestFunc()
1644 res = tmpKeyPair->pubKey->base.getEncoded(&(tmpKeyPair->pubKey->base), &tmpPubKeyBlob); in OpensslMockTestFunc()
1646 HcfObjDestroy(tmpKeyPair); in OpensslMockTestFunc()
1654 res = tmpKeyPair->priKey->base.getEncoded(&(tmpKeyPair->priKey->base), &tmpPriKeyBlob); in OpensslMockTestFunc()
1657 HcfObjDestroy(tmpKeyPair); in OpensslMockTestFunc()
[all …]
H A Dcrypto_ecc_asy_key_generator_test.cpp2177 HcfKeyPair *tmpKeyPair = nullptr; in MemoryMallocTestFunc() local
2187 res = tmpKeyPair->pubKey->base.getEncoded(&(tmpKeyPair->pubKey->base), &tmpPubKeyBlob); in MemoryMallocTestFunc()
2189 HcfObjDestroy(tmpKeyPair); in MemoryMallocTestFunc()
2197 res = tmpKeyPair->priKey->base.getEncoded(&(tmpKeyPair->priKey->base), &tmpPriKeyBlob); in MemoryMallocTestFunc()
2200 HcfObjDestroy(tmpKeyPair); in MemoryMallocTestFunc()
2208 HcfObjDestroy(tmpKeyPair); in MemoryMallocTestFunc()
2277 res = tmpKeyPair->pubKey->base.getEncoded(&(tmpKeyPair->pubKey->base), &tmpPubKeyBlob); in OpensslMockTestFunc()
2279 HcfObjDestroy(tmpKeyPair); in OpensslMockTestFunc()
2287 res = tmpKeyPair->priKey->base.getEncoded(&(tmpKeyPair->priKey->base), &tmpPriKeyBlob); in OpensslMockTestFunc()
2290 HcfObjDestroy(tmpKeyPair); in OpensslMockTestFunc()
[all …]