非对称私钥接口 更多...
#include <public_key.h>


Public 类型 | |
| using | Uptrc = std::unique_ptr< const PublicKey > |
| 接口实例唯一智能指针类型 更多... | |
Public 类型 继承自 ara::crypto::cryp::RestrictedUseObject | |
| using | Uptrc = std::unique_ptr< const RestrictedUseObject > |
| const类型限制对象唯一智能指针类型 更多... | |
| using | Usage = AllowedUsageFlags |
| 使用限制标志别名 更多... | |
Public 类型 继承自 ara::crypto::cryp::CryptoObject | |
| using | Uptr = std::unique_ptr< CryptoObject > |
| 加密对象唯一智能指针类型 更多... | |
| using | Uptrc = std::unique_ptr< const CryptoObject > |
| const类型加密对象唯一智能指针类型 更多... | |
Public 类型 继承自 ara::crypto::Serializable | |
| using | FormatId = std::uint32_t |
| 编码格式标识符的容器类型。 更多... | |
Public 成员函数 | |
| virtual ara::core::Result< ara::core::Vector< ara::core::Byte > > | HashPublicKey (HashFunctionCtx &hashFunc) const noexcept=0 |
| 计算公钥值的哈希值。原始的公钥值BLOB可以通过Serializable接口获得; 更多... | |
Public 成员函数 继承自 ara::crypto::cryp::RestrictedUseObject | |
| virtual Usage | GetAllowedUsage () const noexcept=0 |
| 获取使用限制 更多... | |
Public 成员函数 继承自 ara::crypto::cryp::CryptoObject | |
| virtual | ~CryptoObject () noexcept=default |
| 析构函数 更多... | |
| CryptoObject & | operator= (const CryptoObject &other)=default |
| 将另一个CryptoObject实例拷贝赋值给此实例 更多... | |
| CryptoObject & | operator= (CryptoObject &&other)=default |
| 将另一个CryptoObject实例移动赋值给此实例 更多... | |
| virtual CryptoPrimitiveId::Uptr | GetCryptoPrimitiveId () const noexcept=0 |
| 返回加密对象的算法ID 更多... | |
| virtual bool | IsSession () const noexcept=0 |
| 获取对象的临时属性 更多... | |
| virtual bool | IsExportable () const noexcept=0 |
| 获取对象的可导出属性 更多... | |
| virtual COIdentifier | GetObjectId () const noexcept=0 |
| 返回对象的COIdentifier 更多... | |
| virtual COIdentifier | HasDependence () const noexcept=0 |
| 返回对象依赖的对象的COIdentifier 更多... | |
| virtual std::size_t | GetPayloadSize () const noexcept=0 |
| 返回对象负载的大小 更多... | |
| virtual ara::core::Result< void > | Save (IOInterface &container) const noexcept=0 |
| 将对象保存到提供的容器 更多... | |
Public 成员函数 继承自 ara::crypto::Serializable | |
| virtual | ~Serializable () noexcept=default |
| 序列化析构函数 更多... | |
| Serializable & | operator= (const Serializable &other)=default |
| 将另一个Serializable拷贝赋值给此实例 更多... | |
| Serializable & | operator= (Serializable &&other)=default |
| 将另一个Serializable移动赋值给此实例 更多... | |
| virtual ara::core::Result< ara::core::Vector< ara::core::Byte > > | ExportPublicly (FormatId formatId=kFormatDefault) const noexcept=0 |
| 自身序列化导出 更多... | |
静态 Public 属性 | |
| static const CryptoObjectType | kObjectType = CryptoObjectType::kPublicKey |
| CryptoObjectType类型特定值。 更多... | |
静态 Public 属性 继承自 ara::crypto::Serializable | |
| static const FormatId | kFormatDefault = 0U |
| 默认的序列化格式。 更多... | |
| static const FormatId | kFormatRawValueOnly = 1U |
| 只导出对象的原始值。 更多... | |
| static const FormatId | kFormatDerEncoded = 2U |
| 导出对象的DER编码值。 更多... | |
| static const FormatId | kFormatPemEncoded = 3U |
| 导出对象的PEM编码值 更多... | |
额外继承的成员函数 | |
静态 Public 成员函数 继承自 ara::crypto::cryp::CryptoObject | |
| template<class ConcreteObject > | |
| static ara::core::Result< typename ConcreteObject::Uptrc > | Downcast (CryptoObject::Uptrc &&object) noexcept |
| 向下转换并将唯一智能指针从通用 CryptoObject 接口移动到具体派生对象 更多... | |
非对称私钥接口
| N/A |
在文件 第 行定义.
| using ara::crypto::cryp::PublicKey::Uptrc = std::unique_ptr<const PublicKey> |
接口实例唯一智能指针类型
在文件 第 行定义.
|
pure virtualnoexcept |
计算公钥值的哈希值。原始的公钥值BLOB可以通过Serializable接口获得;
| N/A |
| [in] | hashFunc | 用于哈希计算的哈希上下文实例 |
| [out] | N/A | |
| [in,out] | N/A |
| N/A |
|
static |
CryptoObjectType类型特定值。
在文件 第 行定义.