Logo
中文版
详情联系: neusar-support@reachauto.com
CryptoErrorType

错误类型定义。 更多...

CryptoErrorType 的协作图:

class  ara::crypto::CryptoErrorDomain
 安全错误域类 更多...
 

枚举

enum  ara::crypto::CryptoErrc : ara::core::ErrorDomain::CodeType {
  ara::crypto::CryptoErrc::kErrorClass = 0x1000000, ara::crypto::CryptoErrc::kErrorSubClass = 0x10000, ara::crypto::CryptoErrc::kErrorSubSubClass = 0x100, ara::crypto::CryptoErrc::kResourceFault = 1 * kErrorClass,
  ara::crypto::CryptoErrc::kBusyResource = kResourceFault + 1, ara::crypto::CryptoErrc::kInsufficientResource = kResourceFault + 2, ara::crypto::CryptoErrc::kUnreservedResource = kResourceFault + 3, ara::crypto::CryptoErrc::kModifiedResource = kResourceFault + 4,
  ara::crypto::CryptoErrc::kLogicFault = 2 * kErrorClass, ara::crypto::CryptoErrc::kInvalidArgument = kLogicFault + 1 * kErrorSubClass, ara::crypto::CryptoErrc::kUnknownIdentifier = kInvalidArgument + 1, ara::crypto::CryptoErrc::kInsufficientCapacity = kInvalidArgument + 2,
  ara::crypto::CryptoErrc::kInvalidInputSize = kInvalidArgument + 3, ara::crypto::CryptoErrc::kIncompatibleArguments = kInvalidArgument + 4, ara::crypto::CryptoErrc::kInOutBuffersIntersect = kInvalidArgument + 5, ara::crypto::CryptoErrc::kBelowBoundary = kInvalidArgument + 6,
  ara::crypto::CryptoErrc::kAboveBoundary = kInvalidArgument + 7, ara::crypto::CryptoErrc::kAuthTagNotValid = kInvalidArgument + 8, ara::crypto::CryptoErrc::kUnsupported = kInvalidArgument + 1 * kErrorSubSubClass, ara::crypto::CryptoErrc::kInvalidUsageOrder = kLogicFault + 2 * kErrorSubClass,
  ara::crypto::CryptoErrc::kUninitializedContext = kInvalidUsageOrder + 1, ara::crypto::CryptoErrc::kProcessingNotStarted = kInvalidUsageOrder + 2, ara::crypto::CryptoErrc::kProcessingNotFinished = kInvalidUsageOrder + 3, ara::crypto::CryptoErrc::kRuntimeFault = 3 * kErrorClass,
  ara::crypto::CryptoErrc::kUnsupportedFormat = kRuntimeFault + 1, ara::crypto::CryptoErrc::kBruteForceRisk = kRuntimeFault + 2, ara::crypto::CryptoErrc::kContentRestrictions = kRuntimeFault + 3, ara::crypto::CryptoErrc::kBadObjectReference = kRuntimeFault + 4,
  ara::crypto::CryptoErrc::kContentDuplication = kRuntimeFault + 6, ara::crypto::CryptoErrc::kUnexpectedValue = kRuntimeFault + 1 * kErrorSubClass, ara::crypto::CryptoErrc::kIncompatibleObject = kUnexpectedValue + 1, ara::crypto::CryptoErrc::kIncompleteArgState = kUnexpectedValue + 2,
  ara::crypto::CryptoErrc::kEmptyContainer = kUnexpectedValue + 3, ara::crypto::CryptoErrc::kMissingArgument = kUnexpectedValue + 4, ara::crypto::CryptoErrc::kBadObjectType = kUnexpectedValue + 1 * kErrorSubSubClass, ara::crypto::CryptoErrc::kUsageViolation = kRuntimeFault + 2 * kErrorSubClass,
  ara::crypto::CryptoErrc::kAccessViolation = kRuntimeFault + 3 * kErrorSubClass
}
 

函数

constexpr ara::core::ErrorCode ara::crypto::MakeErrorCode (CryptoErrorDomain::Errc code, ara::core::ErrorDomain::SupportDataType data) noexcept
 从Crypto Error Domain中生成ErrorCode 更多...
 

详细描述

错误类型定义。

Swsid
SWS_CRYPT_10099
符合标准
yes
非标原因
N/A
种类
enumeration
符号
ara::crypto::CryptoErrc
范围
namespace ara::crypto
基本类型
ara::core::ErrorDomain::CodeType
取值
N/A
分类
ara
头文件

枚举ara::crypto可能报告的所有安全错误码值。

注解
N/A.

枚举类型说明

◆ CryptoErrc

enum ara::crypto::CryptoErrc : ara::core::ErrorDomain::CodeType
strong
枚举值
kErrorClass 

保留(错误类别 ID 的乘数)

kErrorSubClass 

保留(错误子类 ID 的乘数)

kErrorSubSubClass 

保留(错误子类的子类 ID 的乘数)

kResourceFault 

ResourceException: Generic resource fault!

kBusyResource 

ResourceException: Specified resource is busy!

kInsufficientResource 

ResourceException: Insufficient capacity of specified resource!

kUnreservedResource 

ResourceException: Specified resource was not reserved!

kModifiedResource 

ResourceException: Specified resource has been modified!

kLogicFault 

LogicException: Generic logic fault!

kInvalidArgument 

InvalidArgumentException: An invalid argument value is provided!

kUnknownIdentifier 

InvalidArgumentException: Unknown identifier is provided!

kInsufficientCapacity 

InvalidArgumentException: Insufficient capacity of the output buffer!

kInvalidInputSize 

InvalidArgumentException: Invalid size of an input buffer!

kIncompatibleArguments 

InvalidArgumentException: Provided values of arguments are incompatible!

kInOutBuffersIntersect 

InvalidArgumentException: Input and output buffers are intersect!

kBelowBoundary 

InvalidArgumentException: Provided value is below the lower boundary!

kAboveBoundary 

InvalidArgumentException: Provided value is above the upper boundary!

kAuthTagNotValid 

AuthTagNotValidException: Provided authentication-tag cannot be verified!

kUnsupported 

UnsupportedException: Unsupported request (due to limitations of the implementation)!

kInvalidUsageOrder 

InvalidUsageOrderException: Invalid usage order of the interface!

kUninitializedContext 

InvalidUsageOrderException: Context of the interface was not initialized!

kProcessingNotStarted 

InvalidUsageOrderException: Data processing was not started yet!

kProcessingNotFinished 

InvalidUsageOrderException: Data processing was not finished yet!

kRuntimeFault 

RuntimeException: Generic runtime fault!

kUnsupportedFormat 

RuntimeException: Unsupported serialization format for this object type!

kBruteForceRisk 

RuntimeException: Operation is prohibitted due to a risk of a brute force attack!

kContentRestrictions 

RuntimeException: The operation violates content restrictions of the target container!

kBadObjectReference 

RuntimeException: Incorrect reference between objects!

kContentDuplication 

RuntimeException: Provided content already exists in the target storage!

kUnexpectedValue 

UnexpectedValueException: Unexpected value of an argument is provided!

kIncompatibleObject 

UnexpectedValueException: The provided object is incompatible with requested operation or its configuration!

kIncompleteArgState 

UnexpectedValueException: Incomplete state of an argument!

kEmptyContainer 

UnexpectedValueException: Specified container is empty!

kMissingArgument 

kMissingArgumentException: Expected argument, but none provided!

kBadObjectType 

BadObjectTypeException: Provided object has unexpected type!

kUsageViolation 

UsageViolationException: Violation of allowed usage for the object!

kAccessViolation 

AccessViolationException: Access rights violation!

在文件 第 行定义.

函数说明

◆ MakeErrorCode()

constexpr ara::core::ErrorCode ara::crypto::MakeErrorCode ( CryptoErrorDomain::Errc  code,
ara::core::ErrorDomain::SupportDataType  data 
)
constexprnoexcept

从Crypto Error Domain中生成ErrorCode

模板参数
N/A
参数
[in]code错误代码标识符 CryptoErrc 枚举类型
[in]data错误描述的补充数据
[out]N/A
[in,out]N/A
返回
根据参数创建的 ErrorCode 实例
注解
N/A
错误码偏差项
N/A
异常
N/A
Swsid
SWS_CRYPT_19951
符合标准
yes
非标原因
N/A
种类
function
可见
public
线程安全
reentrant
Fireandforget
no
错误
N/A
头文件
异常安全
noexcept
分类
internal

在文件 第 行定义.

被这些函数引用 .

这是这个函数的调用关系图: