/ohos5.0/base/security/crypto_framework/test/unittest/src/ |
H A D | crypto_x25519_asy_key_generator_test.cpp | 490 HcfBlob tmpPubKeyBlob = { in MemoryMallocTestFunc() local 494 res = tmpKeyPair->pubKey->base.getEncoded(&(tmpKeyPair->pubKey->base), &tmpPubKeyBlob); in MemoryMallocTestFunc() 506 HcfFree(tmpPubKeyBlob.data); in MemoryMallocTestFunc() 512 …res = tmpGenerator->convertKey(tmpGenerator, nullptr, &tmpPubKeyBlob, &tmpPriKeyBlob, &tmpOutKeyPa… in MemoryMallocTestFunc() 513 HcfFree(tmpPubKeyBlob.data); in MemoryMallocTestFunc() 576 HcfBlob tmpPubKeyBlob = { in OpensslMockTestFunc() local 580 res = tmpKeyPair->pubKey->base.getEncoded(&(tmpKeyPair->pubKey->base), &tmpPubKeyBlob); in OpensslMockTestFunc() 592 HcfFree(tmpPubKeyBlob.data); in OpensslMockTestFunc() 598 …res = tmpGenerator->convertKey(tmpGenerator, nullptr, &tmpPubKeyBlob, &tmpPriKeyBlob, &tmpOutKeyPa… in OpensslMockTestFunc() 599 HcfFree(tmpPubKeyBlob.data); in OpensslMockTestFunc()
|
H A D | crypto_dh_asy_key_generator_test.cpp | 729 HcfBlob tmpPubKeyBlob = { in MemoryMallocTestFunc() local 733 res = tmpKeyPair->pubKey->base.getEncoded(&(tmpKeyPair->pubKey->base), &tmpPubKeyBlob); in MemoryMallocTestFunc() 745 HcfFree(tmpPubKeyBlob.data); in MemoryMallocTestFunc() 751 …res = tmpGenerator->convertKey(tmpGenerator, nullptr, &tmpPubKeyBlob, &tmpPriKeyBlob, &tmpOutKeyPa… in MemoryMallocTestFunc() 752 HcfFree(tmpPubKeyBlob.data); in MemoryMallocTestFunc() 819 HcfBlob tmpPubKeyBlob = { .data = nullptr, .len = 0 }; in OpensslMockTestFunc() local 820 res = tmpKeyPair->pubKey->base.getEncoded(&(tmpKeyPair->pubKey->base), &tmpPubKeyBlob); in OpensslMockTestFunc() 829 HcfFree(tmpPubKeyBlob.data); in OpensslMockTestFunc() 835 …res = tmpGenerator->convertKey(tmpGenerator, nullptr, &tmpPubKeyBlob, &tmpPriKeyBlob, &tmpOutKeyPa… in OpensslMockTestFunc() 836 HcfFree(tmpPubKeyBlob.data); in OpensslMockTestFunc()
|
H A D | crypto_brainpool_asy_key_generator_test.cpp | 1147 HcfBlob tmpPubKeyBlob = { in MemoryMallocTestFunc() local 1151 res = tmpKeyPair->pubKey->base.getEncoded(&(tmpKeyPair->pubKey->base), &tmpPubKeyBlob); in MemoryMallocTestFunc() 1163 HcfFree(tmpPubKeyBlob.data); in MemoryMallocTestFunc() 1169 …res = tmpGenerator->convertKey(tmpGenerator, nullptr, &tmpPubKeyBlob, &tmpPriKeyBlob, &tmpOutKeyPa… in MemoryMallocTestFunc() 1170 HcfFree(tmpPubKeyBlob.data); in MemoryMallocTestFunc() 1236 HcfBlob tmpPubKeyBlob = { in OpensslMockTestFunc() local 1240 res = tmpKeyPair->pubKey->base.getEncoded(&(tmpKeyPair->pubKey->base), &tmpPubKeyBlob); in OpensslMockTestFunc() 1252 HcfFree(tmpPubKeyBlob.data); in OpensslMockTestFunc() 1258 …res = tmpGenerator->convertKey(tmpGenerator, nullptr, &tmpPubKeyBlob, &tmpPriKeyBlob, &tmpOutKeyPa… in OpensslMockTestFunc() 1259 HcfFree(tmpPubKeyBlob.data); in OpensslMockTestFunc()
|
H A D | crypto_ed25519_asy_key_generator_test.cpp | 577 HcfBlob tmpPubKeyBlob = { in MemoryMallocTestFunc() local 581 res = tmpKeyPair->pubKey->base.getEncoded(&(tmpKeyPair->pubKey->base), &tmpPubKeyBlob); in MemoryMallocTestFunc() 593 HcfFree(tmpPubKeyBlob.data); in MemoryMallocTestFunc() 599 …res = tmpGenerator->convertKey(tmpGenerator, nullptr, &tmpPubKeyBlob, &tmpPriKeyBlob, &tmpOutKeyPa… in MemoryMallocTestFunc() 600 HcfFree(tmpPubKeyBlob.data); in MemoryMallocTestFunc() 667 HcfBlob tmpPubKeyBlob = { in OpensslMockTestFunc() local 671 res = tmpKeyPair->pubKey->base.getEncoded(&(tmpKeyPair->pubKey->base), &tmpPubKeyBlob); in OpensslMockTestFunc() 683 HcfFree(tmpPubKeyBlob.data); in OpensslMockTestFunc() 689 …res = tmpGenerator->convertKey(tmpGenerator, nullptr, &tmpPubKeyBlob, &tmpPriKeyBlob, &tmpOutKeyPa… in OpensslMockTestFunc() 690 HcfFree(tmpPubKeyBlob.data); in OpensslMockTestFunc()
|
H A D | crypto_sm2_asy_key_generator_test.cpp | 1550 HcfBlob tmpPubKeyBlob = { in MemoryMallocTestFunc() local 1554 res = tmpKeyPair->pubKey->base.getEncoded(&(tmpKeyPair->pubKey->base), &tmpPubKeyBlob); in MemoryMallocTestFunc() 1566 HcfFree(tmpPubKeyBlob.data); in MemoryMallocTestFunc() 1572 …res = tmpGenerator->convertKey(tmpGenerator, nullptr, &tmpPubKeyBlob, &tmpPriKeyBlob, &tmpOutKeyPa… in MemoryMallocTestFunc() 1573 HcfFree(tmpPubKeyBlob.data); in MemoryMallocTestFunc() 1640 HcfBlob tmpPubKeyBlob = { in OpensslMockTestFunc() local 1644 res = tmpKeyPair->pubKey->base.getEncoded(&(tmpKeyPair->pubKey->base), &tmpPubKeyBlob); in OpensslMockTestFunc() 1656 HcfFree(tmpPubKeyBlob.data); in OpensslMockTestFunc() 1662 …res = tmpGenerator->convertKey(tmpGenerator, nullptr, &tmpPubKeyBlob, &tmpPriKeyBlob, &tmpOutKeyPa… in OpensslMockTestFunc() 1663 HcfFree(tmpPubKeyBlob.data); in OpensslMockTestFunc()
|
H A D | crypto_ecc_asy_key_generator_test.cpp | 2183 HcfBlob tmpPubKeyBlob = { in MemoryMallocTestFunc() local 2187 res = tmpKeyPair->pubKey->base.getEncoded(&(tmpKeyPair->pubKey->base), &tmpPubKeyBlob); in MemoryMallocTestFunc() 2199 HcfFree(tmpPubKeyBlob.data); in MemoryMallocTestFunc() 2205 …res = tmpGenerator->convertKey(tmpGenerator, nullptr, &tmpPubKeyBlob, &tmpPriKeyBlob, &tmpOutKeyPa… in MemoryMallocTestFunc() 2206 HcfFree(tmpPubKeyBlob.data); in MemoryMallocTestFunc() 2273 HcfBlob tmpPubKeyBlob = { in OpensslMockTestFunc() local 2277 res = tmpKeyPair->pubKey->base.getEncoded(&(tmpKeyPair->pubKey->base), &tmpPubKeyBlob); in OpensslMockTestFunc() 2289 HcfFree(tmpPubKeyBlob.data); in OpensslMockTestFunc() 2295 …res = tmpGenerator->convertKey(tmpGenerator, nullptr, &tmpPubKeyBlob, &tmpPriKeyBlob, &tmpOutKeyPa… in OpensslMockTestFunc() 2296 HcfFree(tmpPubKeyBlob.data); in OpensslMockTestFunc()
|