/ohos5.0/base/security/crypto_framework/test/unittest/src/ |
H A D | crypto_x25519_asy_key_generator_test.cpp | 500 HcfBlob tmpPriKeyBlob = { in MemoryMallocTestFunc() local 504 res = tmpKeyPair->priKey->base.getEncoded(&(tmpKeyPair->priKey->base), &tmpPriKeyBlob); in MemoryMallocTestFunc() 512 …res = tmpGenerator->convertKey(tmpGenerator, nullptr, &tmpPubKeyBlob, &tmpPriKeyBlob, &tmpOutKeyPa… in MemoryMallocTestFunc() 514 HcfFree(tmpPriKeyBlob.data); in MemoryMallocTestFunc() 586 HcfBlob tmpPriKeyBlob = { in OpensslMockTestFunc() local 590 res = tmpKeyPair->priKey->base.getEncoded(&(tmpKeyPair->priKey->base), &tmpPriKeyBlob); in OpensslMockTestFunc() 598 …res = tmpGenerator->convertKey(tmpGenerator, nullptr, &tmpPubKeyBlob, &tmpPriKeyBlob, &tmpOutKeyPa… in OpensslMockTestFunc() 600 HcfFree(tmpPriKeyBlob.data); in OpensslMockTestFunc()
|
H A D | crypto_dh_asy_key_generator_test.cpp | 739 HcfBlob tmpPriKeyBlob = { in MemoryMallocTestFunc() local 743 res = tmpKeyPair->priKey->base.getEncoded(&(tmpKeyPair->priKey->base), &tmpPriKeyBlob); in MemoryMallocTestFunc() 751 …res = tmpGenerator->convertKey(tmpGenerator, nullptr, &tmpPubKeyBlob, &tmpPriKeyBlob, &tmpOutKeyPa… in MemoryMallocTestFunc() 753 HcfFree(tmpPriKeyBlob.data); in MemoryMallocTestFunc() 826 HcfBlob tmpPriKeyBlob = { .data = nullptr, .len = 0 }; in OpensslMockTestFunc() local 827 res = tmpKeyPair->priKey->base.getEncoded(&(tmpKeyPair->priKey->base), &tmpPriKeyBlob); in OpensslMockTestFunc() 835 …res = tmpGenerator->convertKey(tmpGenerator, nullptr, &tmpPubKeyBlob, &tmpPriKeyBlob, &tmpOutKeyPa… in OpensslMockTestFunc() 837 HcfFree(tmpPriKeyBlob.data); in OpensslMockTestFunc()
|
H A D | crypto_brainpool_asy_key_generator_test.cpp | 1157 HcfBlob tmpPriKeyBlob = { in MemoryMallocTestFunc() local 1161 res = tmpKeyPair->priKey->base.getEncoded(&(tmpKeyPair->priKey->base), &tmpPriKeyBlob); in MemoryMallocTestFunc() 1169 …res = tmpGenerator->convertKey(tmpGenerator, nullptr, &tmpPubKeyBlob, &tmpPriKeyBlob, &tmpOutKeyPa… in MemoryMallocTestFunc() 1171 HcfFree(tmpPriKeyBlob.data); in MemoryMallocTestFunc() 1246 HcfBlob tmpPriKeyBlob = { in OpensslMockTestFunc() local 1250 res = tmpKeyPair->priKey->base.getEncoded(&(tmpKeyPair->priKey->base), &tmpPriKeyBlob); in OpensslMockTestFunc() 1258 …res = tmpGenerator->convertKey(tmpGenerator, nullptr, &tmpPubKeyBlob, &tmpPriKeyBlob, &tmpOutKeyPa… in OpensslMockTestFunc() 1260 HcfFree(tmpPriKeyBlob.data); in OpensslMockTestFunc()
|
H A D | crypto_ed25519_asy_key_generator_test.cpp | 587 HcfBlob tmpPriKeyBlob = { in MemoryMallocTestFunc() local 591 res = tmpKeyPair->priKey->base.getEncoded(&(tmpKeyPair->priKey->base), &tmpPriKeyBlob); in MemoryMallocTestFunc() 599 …res = tmpGenerator->convertKey(tmpGenerator, nullptr, &tmpPubKeyBlob, &tmpPriKeyBlob, &tmpOutKeyPa… in MemoryMallocTestFunc() 601 HcfFree(tmpPriKeyBlob.data); in MemoryMallocTestFunc() 677 HcfBlob tmpPriKeyBlob = { in OpensslMockTestFunc() local 681 res = tmpKeyPair->priKey->base.getEncoded(&(tmpKeyPair->priKey->base), &tmpPriKeyBlob); in OpensslMockTestFunc() 689 …res = tmpGenerator->convertKey(tmpGenerator, nullptr, &tmpPubKeyBlob, &tmpPriKeyBlob, &tmpOutKeyPa… in OpensslMockTestFunc() 691 HcfFree(tmpPriKeyBlob.data); in OpensslMockTestFunc()
|
H A D | crypto_sm2_asy_key_generator_test.cpp | 1560 HcfBlob tmpPriKeyBlob = { in MemoryMallocTestFunc() local 1564 res = tmpKeyPair->priKey->base.getEncoded(&(tmpKeyPair->priKey->base), &tmpPriKeyBlob); in MemoryMallocTestFunc() 1572 …res = tmpGenerator->convertKey(tmpGenerator, nullptr, &tmpPubKeyBlob, &tmpPriKeyBlob, &tmpOutKeyPa… in MemoryMallocTestFunc() 1574 HcfFree(tmpPriKeyBlob.data); in MemoryMallocTestFunc() 1650 HcfBlob tmpPriKeyBlob = { in OpensslMockTestFunc() local 1654 res = tmpKeyPair->priKey->base.getEncoded(&(tmpKeyPair->priKey->base), &tmpPriKeyBlob); in OpensslMockTestFunc() 1662 …res = tmpGenerator->convertKey(tmpGenerator, nullptr, &tmpPubKeyBlob, &tmpPriKeyBlob, &tmpOutKeyPa… in OpensslMockTestFunc() 1664 HcfFree(tmpPriKeyBlob.data); in OpensslMockTestFunc()
|
H A D | crypto_ecc_asy_key_generator_test.cpp | 2193 HcfBlob tmpPriKeyBlob = { in MemoryMallocTestFunc() local 2197 res = tmpKeyPair->priKey->base.getEncoded(&(tmpKeyPair->priKey->base), &tmpPriKeyBlob); in MemoryMallocTestFunc() 2205 …res = tmpGenerator->convertKey(tmpGenerator, nullptr, &tmpPubKeyBlob, &tmpPriKeyBlob, &tmpOutKeyPa… in MemoryMallocTestFunc() 2207 HcfFree(tmpPriKeyBlob.data); in MemoryMallocTestFunc() 2283 HcfBlob tmpPriKeyBlob = { in OpensslMockTestFunc() local 2287 res = tmpKeyPair->priKey->base.getEncoded(&(tmpKeyPair->priKey->base), &tmpPriKeyBlob); in OpensslMockTestFunc() 2295 …res = tmpGenerator->convertKey(tmpGenerator, nullptr, &tmpPubKeyBlob, &tmpPriKeyBlob, &tmpOutKeyPa… in OpensslMockTestFunc() 2297 HcfFree(tmpPriKeyBlob.data); in OpensslMockTestFunc()
|