Searched refs:ByteArrayUtils (Results 1 – 8 of 8) sorted by relevance
| /developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/hap/entity/ |
| D | SignHead.java | 18 import com.ohos.hapsigntool.utils.ByteArrayUtils; 67 start = ByteArrayUtils.insertCharToByteArray(signHead, start, MAGIC); in getSignHead() 71 start = ByteArrayUtils.insertCharToByteArray(signHead, start, VERSION); in getSignHead() 75 start = ByteArrayUtils.insertIntToByteArray(signHead, start, size); in getSignHead() 79 start = ByteArrayUtils.insertIntToByteArray(signHead, start, NUM_OF_BLOCK); in getSignHead() 83 start = ByteArrayUtils.insertCharToByteArray(signHead, start, reserve); in getSignHead()
|
| D | SignContentInfo.java | 18 import com.ohos.hapsigntool.utils.ByteArrayUtils; 116 index = ByteArrayUtils.insertCharToByteArray(ret, index, version); in getByteContent() 120 index = ByteArrayUtils.insertShortToByteArray(ret, ret.length, index, size); in getByteContent() 124 index = ByteArrayUtils.insertShortToByteArray(ret, ret.length, index, numOfBlocks); in getByteContent() 134 index = ByteArrayUtils.insertShortToByteArray(ret, ret.length, index, tmp.algId); in getByteContent() 135 index = ByteArrayUtils.insertIntToByteArray(ret, index, tmp.length); in getByteContent() 136 index = ByteArrayUtils.insertByteToByteArray(ret, index, tmp.hash, tmp.hash.length); in getByteContent()
|
| /developtools/hapsigner/hapsigntool_cpp/hap/entity/src/ |
| D | sign_content_info.cpp | 60 index = ByteArrayUtils::InsertCharToByteArray(ret, index, m_version); in GetByteContent() 66 index = ByteArrayUtils::InsertShortToByteArray(ret, ret.size(), index, m_size); in GetByteContent() 72 index = ByteArrayUtils::InsertShortToByteArray(ret, ret.size(), index, m_numOfBlocks); in GetByteContent() 83 index = ByteArrayUtils::InsertShortToByteArray(ret, ret.size(), index, tmp.m_algId); in GetByteContent() 84 index = ByteArrayUtils::InsertIntToByteArray(ret, index, tmp.m_length); in GetByteContent() 85 index = ByteArrayUtils::InsertByteToByteArray(ret, index, tmp.m_hash, tmp.m_hash.size()); in GetByteContent()
|
| D | sign_head.cpp | 45 start = ByteArrayUtils::InsertCharToByteArray(signHead, start, MAGIC); in GetSignHead() 50 start = ByteArrayUtils::InsertCharToByteArray(signHead, start, VERSION); in GetSignHead() 55 start = ByteArrayUtils::InsertIntToByteArray(signHead, start, size); in GetSignHead() 60 start = ByteArrayUtils::InsertIntToByteArray(signHead, start, NUM_OF_BLOCK); in GetSignHead() 65 …start = ByteArrayUtils::InsertCharToByteArray(signHead, start, std::string(m_reserve.begin(), m_re… in GetSignHead()
|
| /developtools/hapsigner/hapsigntool_cpp_test/unittest/utils/ |
| D | byte_array_utils_test.cpp | 51 int result = ByteArrayUtils::InsertIntToByteArray(ret, 16, 32); 66 int result = ByteArrayUtils::InsertShortToByteArray(ret, 16, 16, 6); 84 int result = ByteArrayUtils::InsertByteToByteArray(ret, 16, hashValue, 33); 99 int result = ByteArrayUtils::InsertCharToByteArray(ret, 45, "1000");
|
| /developtools/hapsigner/hapsigntool_cpp/utils/src/ |
| D | byte_array_utils.cpp | 22 int ByteArrayUtils::InsertIntToByteArray(std::vector<int8_t>& desByte, int index, int num) in InsertIntToByteArray() 39 int ByteArrayUtils::InsertShortToByteArray(std::vector<int8_t>& desByte, size_t desByteLen, int ind… in InsertShortToByteArray() 52 int ByteArrayUtils::InsertByteToByteArray(std::vector<int8_t>& des, int start, std::vector<int8_t> … in InsertByteToByteArray() 63 int ByteArrayUtils::InsertCharToByteArray(std::vector<int8_t>& des, int start, std::string src) in InsertCharToByteArray()
|
| /developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/utils/ |
| D | ByteArrayUtils.java | 23 public class ByteArrayUtils { class 32 private ByteArrayUtils() { in ByteArrayUtils() method in ByteArrayUtils
|
| /developtools/hapsigner/hapsigntool_cpp/utils/include/ |
| D | byte_array_utils.h | 26 class ByteArrayUtils {
|