载入中...
搜索中...
未找到
Evpack.h
浏览该文件的文档.
175 [[nodiscard]] const std::optional<EvpackSignature>& signature() const noexcept { return signature_; }
193 friend EVENGINE_API_FOUNDATION Result<Evpack> parseEvpack(std::span<const std::uint8_t>, const EvpackLimits&,
207[[nodiscard]] EVENGINE_API_FOUNDATION Result<std::vector<std::uint8_t>> buildEvpack(EvpackBuild build,
211[[nodiscard]] EVENGINE_API_FOUNDATION Result<Evpack> parseEvpack(std::span<const std::uint8_t> bytes,
Strong identity values shared by persistence, content and logical-name APIs.
Move-only, checked operation results for the common layer.
Persistent data-contract version identity.
Runtime trust provider supplied by the application/project policy.
Definition Evpack.h:59
virtual ~EvpackSignatureVerifier()=default
Releases EvpackSignatureVerifier resources.
virtual Result< void > verify(std::span< const std::uint8_t, 32 > digest, const EvpackSignature &signature) const =0
Verify a detached signature against a trusted key identity.
Tool-side provider that signs the authenticated 32-byte package metadata digest.
Definition Evpack.h:49
virtual Result< EvpackSignature > sign(std::span< const std::uint8_t, 32 > digest) const =0
Produce a publisher signature without retaining the borrowed digest.
virtual ~EvpackSigner()=default
Releases EvpackSigner resources.
const PersistentId & packageId() const noexcept
Stable package identity from the verified header.
Definition Evpack.h:167
const std::optional< EvpackSignature > & signature() const noexcept
Verified publisher signature, absent only for admitted development packages.
Definition Evpack.h:175
const PersistentId & buildId() const noexcept
Deterministic Cook build identity from the verified header.
Definition Evpack.h:169
const std::vector< EvpackVariant > & variants() const noexcept
Ordered capability variants encoded in the binary manifest.
Definition Evpack.h:171
const std::vector< EvpackChunk > & chunks() const noexcept
Verified random-access chunk table.
Definition Evpack.h:173
bool hasTrustedSignature() const noexcept
Whether publisher trust was cryptographically established during admission.
Definition Evpack.h:177
Definition AssetCooker.cpp:17
Result< Evpack > parseEvpack(std::span< const std::uint8_t > bytes, const EvpackLimits &limits, const EvpackTrust &trust)
Parse, bound-check and hash-verify a complete untrusted .evpack.
Definition Evpack.cpp:542
Result< std::vector< std::uint8_t > > buildEvpack(EvpackBuild build, const EvpackLimits &limits)
Build deterministic little-endian .evpack bytes from validated Cook output.
Definition Evpack.cpp:248
@ RequireTrustedSignature
@ AllowUnsignedDevelopment
Result< EvpackVariantSelection > selectEvpackVariant(const Evpack &pack, const EvpackCapabilities &capabilities)
Select the first explicitly ordered variant satisfied by device capabilities.
Definition Evpack.cpp:585
Result< Evpack > parseEvpackMetadata(std::span< const std::uint8_t > bytes, std::uint64_t packageSize, const EvpackLimits &limits, const EvpackTrust &trust)
Admit only the contiguous header/manifest/TOC prefix of a range-readable package.
Definition Evpack.cpp:361
@ Definition
@ Dictionary
@ DebugName
Actual runtime device capabilities used for variant selection.
Definition Evpack.h:92
std::vector< std::string > textureFamilies
Definition Evpack.h:96
std::vector< std::string > shaderFormats
Definition Evpack.h:97
Cooker-owned uncompressed chunk before deterministic package assembly.
Definition Evpack.h:103
std::vector< PersistentId > dependencies
Definition Evpack.h:112
std::array< std::uint8_t, 32 > contentHash
Definition Evpack.h:150
std::vector< PersistentId > dependencies
Definition Evpack.h:151
Resource limits checked before package allocations and hash work.
Definition Evpack.h:126
std::uint64_t maximumDecodedBytes
Definition Evpack.h:129
std::uint32_t maximumDependencies
Definition Evpack.h:133
std::uint64_t maximumMetadataBytes
Definition Evpack.h:130
std::uint64_t maximumPackageBytes
Definition Evpack.h:127
Fixed-size detached publisher signature stored in a v1 runtime pack.
Definition Evpack.h:42
std::shared_ptr< const EvpackSignatureVerifier > verifier
Definition Evpack.h:77
Result of ordered capability variant selection.
Definition Evpack.h:155
Capability-addressed runtime representation; list order is fallback order.
Definition Evpack.h:81
std::vector< std::string > textureFamilies
Definition Evpack.h:85