Searched refs:signLen (Results 1 – 10 of 10) sorted by relevance
51 …virtual int32_t SignBuffer(const PkgBuffer &buffer, std::vector<uint8_t> &sign, size_t &signLen) c…67 …int32_t SignBuffer(const PkgBuffer &buffer, std::vector<uint8_t> &sign, size_t &signLen) const ove… in SignBuffer() argument71 UNUSED(signLen); in SignBuffer()82 …int32_t SignBuffer(const PkgBuffer &buffer, std::vector<uint8_t> &sign, size_t &signLen) const ove…91 …int32_t SignBuffer(const PkgBuffer &buffer, std::vector<uint8_t> &sign, size_t &signLen) const ove…
35 …lgorithmRsa::SignBuffer(const PkgBuffer &buffer, std::vector<uint8_t> &sign, size_t &signLen) const in SignBuffer()70 signLen = size; in SignBuffer()75 …lgorithmEcc::SignBuffer(const PkgBuffer &buffer, std::vector<uint8_t> &sign, size_t &signLen) const in SignBuffer()106 signLen = size + sizeof(uint32_t); in SignBuffer()
103 …t32 HotaSignVerifyByHash(const uint8 *hash, uint32 hashLen, const uint8 *imageSign, uint32 signLen) in HotaSignVerifyByHash() argument122 ret = AppVerifyData(&rsa, hash, hashLen, imageSign, signLen); in HotaSignVerifyByHash()132 int32 HotaSignVerify(uint8 *image, uint32 imgLen, uint8 *imageSign, uint32 signLen) in HotaSignVerify() argument135 printf("SignVerify param in illegal, len %u!\r\n", signLen); in HotaSignVerify()146 int ret = HotaSignVerifyByHash(imageHashLocal, HASH_LENGTH, imageSign, signLen); in HotaSignVerify()
37 int32 HotaSignVerify(uint8 *image, uint32 imgLen, uint8 *imageSign, uint32 signLen);
31 int signLen = strlen(sign); in ReplaceAndCountOff() local32 return off + signLen - 1; in ReplaceAndCountOff()
194 size_t signLen = signData->size; in OpensslSignDsa() local195 if (EVP_DigestSignFinal(mctx, signData->data, &signLen) != 1) { in OpensslSignDsa()201 signData->size = signLen; in OpensslSignDsa()
470 size_t signLen = signData->size; in OpensslSignRsa() local471 if (EVP_DigestSignFinal(mctx, signData->data, &signLen) != 1) { in OpensslSignRsa()477 signData->size = signLen; in OpensslSignRsa()
1/* 2 * Copyright (c) 2021 Huawei Device Co., Ltd. 3 * ...
848 size_t signLen = DigestAlgorithm::GetSignatureLen(info->digestMethod); in DoCreatePkgStream() local849 std::vector<uint8_t> signedData(signLen, 0); in DoCreatePkgStream()852 ret = stream->Write(signBuffer, signLen, offset); in DoCreatePkgStream()861 if (signDataLen > signLen) { in DoCreatePkgStream()862 PKG_LOGE("SignData len %zu more %zu", signDataLen, signLen); in DoCreatePkgStream()
267 size_t signLen = parsedLen; in ReadSignData() local296 signLen = parsedLen - signLen; in ReadSignData()299 it.second->AddDataOffset(signLen); in ReadSignData()