Aktualizr
C++ SOTA Client
Classes | Typedefs | Functions | Variables
Uptane Namespace Reference

Base data types that are used in The Update Framework (TUF), part of Uptane. More...

Classes

class  BadEcuId
 
class  BadHardwareId
 
class  BadKeyId
 
class  BaseMeta
 
class  DelegationHashMismatch
 
class  DelegationMissing
 
class  DirectorRepository
 
class  EcuSerial
 
class  Exception
 
class  ExpiredMetadata
 
class  Fetcher
 
class  HardwareIdentifier
 
class  IllegalThreshold
 
class  ImageRepository
 
class  IMetadataFetcher
 
struct  InstalledImageInfo
 
class  InvalidMetadata
 
class  InvalidTarget
 
class  IpUptaneSecondary
 
class  LazyTargetsList
 
class  Manifest
 
class  ManifestIssuer
 
class  MetadataFetchFailure
 
struct  MetaPairHash
 
class  MetaWithKeys
 
class  MissingRepo
 
class  NonUniqueSignatures
 
class  OversizedTarget
 
class  RepositoryCommon
 
class  RepositoryType
 
class  Role
 TUF Roles. More...
 
class  Root
 
class  RootRotationError
 
class  SecurityException
 
class  Snapshot
 
class  Target
 
class  TargetContentMismatch
 
class  TargetHashMismatch
 
class  TargetMismatch
 
class  Targets
 
class  TimestampMeta
 
class  UnmetThreshold
 
class  Version
 Metadata version numbers. More...
 
class  VersionMismatch
 

Typedefs

using MetaBundle = std::unordered_map< std::pair< RepositoryType, Role >, std::string, MetaPairHash >
 
using EcuMap = std::map< EcuSerial, HardwareIdentifier >
 
using KeyId = std::string
 

Functions

std::ostream & operator<< (std::ostream &os, const HardwareIdentifier &hwid)
 
std::ostream & operator<< (std::ostream &os, const EcuSerial &ecu_serial)
 
std::ostream & operator<< (std::ostream &os, const Target &t)
 
 TEST (Director, EmptyTargets)
 
Targets getTrustedDelegation (const Role &delegate_role, const Targets &parent_targets, const ImageRepository &image_repo, INvStorage &storage, Fetcher &fetcher, const bool offline)
 
std::ostream & operator<< (std::ostream &os, const Role &role)
 
std::ostream & operator<< (std::ostream &os, const Version &v)
 
std::string getMetaFromBundle (const MetaBundle &bundle, RepositoryType repo, const Role &role)
 
int extractVersionUntrusted (const std::string &meta)
 

Variables

constexpr int64_t kMaxRootSize = 64 * 1024
 
constexpr int64_t kMaxDirectorTargetsSize = 64 * 1024
 
constexpr int64_t kMaxTimestampSize = 64 * 1024
 
constexpr int64_t kMaxSnapshotSize = 64 * 1024
 
constexpr int64_t kMaxImageTargetsSize = 8 * 1024 * 1024
 
constexpr int kDelegationsMaxDepth = 5
 

Detailed Description

Base data types that are used in The Update Framework (TUF), part of Uptane.