Searched refs:signatureLen (Results 1 – 6 of 6) sorted by relevance
540 int32_t signatureLen = ASN1_STRING_length(asn1Signature); in GetSignature() local541 if (signatureLen <= 0) { in GetSignature()547 if ((signatureStr == NULL) || (signatureLen > MAX_SIGNATURE_LEN)) { in GetSignature()552 signature->data = (uint8_t *)HcfMalloc(signatureLen, 0); in GetSignature()557 (void)memcpy_s(signature->data, signatureLen, signatureStr, signatureLen); in GetSignature()558 signature->size = signatureLen; in GetSignature()
1/* 2 * Copyright (c) 2021 Huawei Device Co., Ltd. 3 * ...
201 uint32_t signatureLen = pkInfoSignature->length; in GenerateCertInfo() local202 certInfo->pkInfoSignature.val = (uint8_t *)HcMalloc(signatureLen, 0); in GenerateCertInfo()208 …if (memcpy_s(certInfo->pkInfoSignature.val, signatureLen, pkInfoSignature->val, signatureLen) != E… in GenerateCertInfo()214 certInfo->pkInfoSignature.length = signatureLen; in GenerateCertInfo()
768 size_t signatureLen = DigestAlgorithm::GetSignatureLen(digestMethod); in DoCreatePkgStream() local804 …if (memcpy_s(digestInfos[DIGEST_INFO_SIGNATURE].data(), signatureLen, buffer, signatureLen) != EOK… in DoCreatePkgStream()999 size_t signatureLen = DigestAlgorithm::GetSignatureLen(digestMethod); in DoCreatePkgStream() local1008 digestInfos[DIGEST_INFO_SIGNATURE].resize(signatureLen); in DoCreatePkgStream()
201 size_t signatureLen = 0; in LoadPackage() local218 signatureLen = pkgSignComment.signCommentTotalLen; in LoadPackage()225 endDirPos -= signatureLen; in LoadPackage()
447 uint32_t signatureLen = HcStrlen(signatureStr) / BYTE_TO_HEX_OPER_LENGTH; in VerifyPkInfoSignature() local450 .length = signatureLen in VerifyPkInfoSignature()