Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Docs
提交
58c2f258
D
Docs
项目概览
OpenHarmony
/
Docs
大约 1 年 前同步成功
通知
159
Star
292
Fork
28
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
Docs
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
58c2f258
编写于
6月 08, 2023
作者:
Z
zengyawen
提交者:
Gitee
6月 08, 2023
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add huks 文档,从native 头文件生成
Signed-off-by:
N
zengyawen
<
zengyawen1@huawei.com
>
上级
08151111
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
3 addition
and
2 deletion
+3
-2
zh-cn/application-dev/reference/native-apis/native__huks__type_8h.md
...cation-dev/reference/native-apis/native__huks__type_8h.md
+3
-2
未找到文件。
zh-cn/application-dev/reference/native-apis/native__huks__type_8h.md
浏览文件 @
58c2f258
...
...
@@ -69,8 +69,9 @@
|
[
OH_Huks_AlgSuite
](
_huks_type_api.md#oh_huks_algsuite
)
{
<br/>
OH_HUKS_UNWRAP_SUITE_X25519_AES_256_GCM_NOPADDING = 1,
<br/>
OH_HUKS_UNWRAP_SUITE_ECDH_AES_256_GCM_NOPADDING = 2
<br/>
} | 密文导入所需的算法套件类型 |
|
[
OH_Huks_KeyGenerateType
](
_huks_type_api.md#oh_huks_keygeneratetype
)
{
<br/>
OH_HUKS_KEY_GENERATE_TYPE_DEFAULT = 0,
<br/>
OH_HUKS_KEY_GENERATE_TYPE_DERIVE = 1,
<br/>
OH_HUKS_KEY_GENERATE_TYPE_AGREE = 2
<br/>
} | 生成的密钥类型。 |
|
[
OH_Huks_KeyFlag
](
_huks_type_api.md#oh_huks_keyflag
)
{
<br/>
OH_HUKS_KEY_FLAG_IMPORT_KEY = 1,
<br/>
OH_HUKS_KEY_FLAG_GENERATE_KEY = 2,
<br/>
OH_HUKS_KEY_FLAG_AGREE_KEY = 3,
<br/>
OH_HUKS_KEY_FLAG_DERIVE_KEY = 4
<br/>
} | 密钥的产生方式。 |
|
[
OH_Huks_KeyStorageType
](
_huks_type_api.md#oh_huks_keystoragetype
)
{
<br/>
OH_HUKS_STORAGE_TEMP = 0,
<br/>
OH_HUKS_STORAGE_PERSISTENT = 1
<br/>
} | 密钥的存储方式。 |
|
[
OH_Huks_KeyStorageType
](
_huks_type_api.md#oh_huks_keystoragetype
)
{
<br/>
OH_HUKS_STORAGE_TEMP = 0,
<br/>
OH_HUKS_STORAGE_PERSISTENT = 1
,
<br/>
OH_HUKS_STORAGE_ONLY_USED_IN_HUKS = 2,
<br/>
OH_HUKS_STORAGE_KEY_EXPORT_ALLOWED = 3
<br/>
} | 密钥的存储方式。 |
|
[
OH_Huks_ImportKeyType
](
_huks_type_api.md#oh_huks_importkeytype
)
{
<br/>
OH_HUKS_KEY_TYPE_PUBLIC_KEY = 0,
<br/>
OH_HUKS_KEY_TYPE_PRIVATE_KEY = 1,
<br/>
OH_HUKS_KEY_TYPE_KEY_PAIR = 2
<br/>
}| 导入密钥的类型,默认为导入公钥,导入对称密钥时不需要该字段。 |
|
[
OH_Huks_RsaPssSaltLenType
](
_huks_type_api.md#oh_huks_rsapsssaltlentype
)
{
<br/>
OH_HUKS_RSA_PSS_SALT_LEN_DIGEST = 0, OH_HUKS_RSA_PSS_SALT_LEN_MAX = 1
<br/>
} | RSA在签名验签、填充模式为PSS时需要指定的盐值长度类型。 |
|
[
OH_Huks_ErrCode
](
_huks_type_api.md#oh_huks_errcode
)
{
<br/>
OH_HUKS_SUCCESS = 0,
<br/>
OH_HUKS_ERR_CODE_PERMISSION_FAIL = 201,
<br/>
OH_HUKS_ERR_CODE_ILLEGAL_ARGUMENT = 401,
<br/>
OH_HUKS_ERR_CODE_NOT_SUPPORTED_API = 801,
<br/>
OH_HUKS_ERR_CODE_FEATURE_NOT_SUPPORTED = 12000001,
<br/>
OH_HUKS_ERR_CODE_MISSING_CRYPTO_ALG_ARGUMENT = 12000002,
<br/>
OH_HUKS_ERR_CODE_INVALID_CRYPTO_ALG_ARGUMENT = 12000003,
<br/>
OH_HUKS_ERR_CODE_FILE_OPERATION_FAIL = 12000004,
<br/>
OH_HUKS_ERR_CODE_COMMUNICATION_FAIL = 12000005,
<br/>
OH_HUKS_ERR_CODE_CRYPTO_FAIL = 12000006,
<br/>
OH_HUKS_ERR_CODE_KEY_AUTH_PERMANENTLY_INVALIDATED = 12000007,
<br/>
OH_HUKS_ERR_CODE_KEY_AUTH_VERIFY_FAILED = 12000008,
<br/>
OH_HUKS_ERR_CODE_KEY_AUTH_TIME_OUT = 12000009,
<br/>
OH_HUKS_ERR_CODE_SESSION_LIMIT = 12000010,
<br/>
OH_HUKS_ERR_CODE_ITEM_NOT_EXIST = 12000011,
<br/>
OH_HUKS_ERR_CODE_INTERNAL_ERROR = 12000012,
<br/>
OH_HUKS_ERR_CODE_CREDENTIAL_NOT_EXIST = 12000013
<br/>
} | 错误码。 |
|
[
OH_Huks_TagType
](
_huks_type_api.md#oh_huks_tagtype
)
{
<br/>
OH_HUKS_TAG_TYPE_INVALID = 0
<<
28,
<br/>
OH_HUKS_TAG_TYPE_INT = 1
<<
28,
<br/>
OH_HUKS_TAG_TYPE_UINT = 2
<<
28,
<br/>
OH_HUKS_TAG_TYPE_ULONG = 3
<<
28,
<br/>
OH_HUKS_TAG_TYPE_BOOL = 4
<<
28,
<br/>
OH_HUKS_TAG_TYPE_BYTES = 5
<<
28
<br/>
} | 参数集中参数类型的掩码值。 |
|
[
OH_Huks_UserAuthType
](
_huks_type_api.md#oh_huks_userauthtype
)
{
<br/>
OH_HUKS_USER_AUTH_TYPE_FINGERPRINT = 1
<<
0,
<br/>
OH_HUKS_USER_AUTH_TYPE_FACE = 1
<<
1,
<br/>
OH_HUKS_USER_AUTH_TYPE_PIN = 1
<<
2
<br/>
} | 密钥访问控制中的用户认证类型 |
...
...
@@ -78,4 +79,4 @@
|
[
OH_Huks_ChallengeType
](
_huks_type_api.md#oh_huks_challengetype
)
{
<br/>
OH_HUKS_CHALLENGE_TYPE_NORMAL = 0,
<br/>
OH_HUKS_CHALLENGE_TYPE_CUSTOM = 1,
<br/>
OH_HUKS_CHALLENGE_TYPE_NONE = 2
<br/>
} | 密钥使用时生成challenge的类型 |
|
[
OH_Huks_ChallengePosition
](
_huks_type_api.md#oh_huks_challengeposition
)
{
<br/>
OH_HUKS_CHALLENGE_POS_0 = 0,
<br/>
OH_HUKS_CHALLENGE_POS_1,
<br/>
OH_HUKS_CHALLENGE_POS_2,
<br/>
OH_HUKS_CHALLENGE_POS_3
<br/>
} | challenge类型为用户自定义类型时,生成的challenge有效长度仅为8字节连续的数据,且仅支持4种位置。 |
|
[
OH_Huks_SecureSignType
](
_huks_type_api.md#oh_huks_securesigntype
)
{ OH_HUKS_SECURE_SIGN_WITH_AUTHINFO = 1 } | 生成或导入密钥时,指定该密钥的安全签名类型。 |
|
[
OH_Huks_Tag
](
_huks_type_api.md#oh_huks_tag
)
{
<br/>
OH_HUKS_TAG_ALGORITHM = OH_HUKS_TAG_TYPE_UINT
\|
1, OH_HUKS_TAG_PURPOSE = OH_HUKS_TAG_TYPE_UINT
\|
2, OH_HUKS_TAG_KEY_SIZE = OH_HUKS_TAG_TYPE_UINT
\|
3,
<br/>
OH_HUKS_TAG_DIGEST = OH_HUKS_TAG_TYPE_UINT
\|
4, OH_HUKS_TAG_PADDING = OH_HUKS_TAG_TYPE_UINT
\|
5, OH_HUKS_TAG_BLOCK_MODE = OH_HUKS_TAG_TYPE_UINT
\|
6, OH_HUKS_TAG_KEY_TYPE = OH_HUKS_TAG_TYPE_UINT
\|
7,
<br/>
OH_HUKS_TAG_ASSOCIATED_DATA = OH_HUKS_TAG_TYPE_BYTES
\|
8, OH_HUKS_TAG_NONCE = OH_HUKS_TAG_TYPE_BYTES
\|
9, OH_HUKS_TAG_IV = OH_HUKS_TAG_TYPE_BYTES
\|
10, OH_HUKS_TAG_INFO = OH_HUKS_TAG_TYPE_BYTES
\|
11,
<br/>
OH_HUKS_TAG_SALT = OH_HUKS_TAG_TYPE_BYTES
\|
12, OH_HUKS_TAG_ITERATION = OH_HUKS_TAG_TYPE_UINT
\|
14, OH_HUKS_TAG_KEY_GENERATE_TYPE = OH_HUKS_TAG_TYPE_UINT
\|
15,
<br/>
OH_HUKS_TAG_AGREE_ALG = OH_HUKS_TAG_TYPE_UINT
\|
19,
<br/>
OH_HUKS_TAG_AGREE_PUBLIC_KEY_IS_KEY_ALIAS = OH_HUKS_TAG_TYPE_BOOL
\|
20, OH_HUKS_TAG_AGREE_PRIVATE_KEY_ALIAS = OH_HUKS_TAG_TYPE_BYTES
\|
21, OH_HUKS_TAG_AGREE_PUBLIC_KEY = OH_HUKS_TAG_TYPE_BYTES
\|
22, OH_HUKS_TAG_KEY_ALIAS = OH_HUKS_TAG_TYPE_BYTES
\|
23,
<br/>
OH_HUKS_TAG_DERIVE_KEY_SIZE = OH_HUKS_TAG_TYPE_UINT
\|
24, OH_HUKS_TAG_IMPORT_KEY_TYPE = OH_HUKS_TAG_TYPE_UINT
\|
25, OH_HUKS_TAG_UNWRAP_ALGORITHM_SUITE = OH_HUKS_TAG_TYPE_UINT
\|
26, OH_HUKS_TAG_ALL_USERS = OH_HUKS_TAG_TYPE_BOOL
\|
301,
<br/>
OH_HUKS_TAG_USER_ID = OH_HUKS_TAG_TYPE_UINT
\|
302, OH_HUKS_TAG_NO_AUTH_REQUIRED = OH_HUKS_TAG_TYPE_BOOL
\|
303, OH_HUKS_TAG_USER_AUTH_TYPE = OH_HUKS_TAG_TYPE_UINT
\|
304, OH_HUKS_TAG_AUTH_TIMEOUT = OH_HUKS_TAG_TYPE_UINT
\|
305,
<br/>
OH_HUKS_TAG_AUTH_TOKEN = OH_HUKS_TAG_TYPE_BYTES
\|
306, OH_HUKS_TAG_KEY_AUTH_ACCESS_TYPE = OH_HUKS_TAG_TYPE_UINT
\|
307, OH_HUKS_TAG_KEY_SECURE_SIGN_TYPE = OH_HUKS_TAG_TYPE_UINT
\|
308, OH_HUKS_TAG_CHALLENGE_TYPE = OH_HUKS_TAG_TYPE_UINT
\|
309,
<br/>
OH_HUKS_TAG_CHALLENGE_POS = OH_HUKS_TAG_TYPE_UINT
\|
310, OH_HUKS_TAG_ATTESTATION_CHALLENGE = OH_HUKS_TAG_TYPE_BYTES
\|
501, OH_HUKS_TAG_ATTESTATION_APPLICATION_ID = OH_HUKS_TAG_TYPE_BYTES
\|
502, OH_HUKS_TAG_ATTESTATION_ID_ALIAS = OH_HUKS_TAG_TYPE_BYTES
\|
511,
<br/>
OH_HUKS_TAG_ATTESTATION_ID_SEC_LEVEL_INFO = OH_HUKS_TAG_TYPE_BYTES
\|
514, OH_HUKS_TAG_ATTESTATION_ID_VERSION_INFO = OH_HUKS_TAG_TYPE_BYTES
\|
515,
<br/>
OH_HUKS_TAG_IS_KEY_ALIAS = OH_HUKS_TAG_TYPE_BOOL
\|
1001, OH_HUKS_TAG_KEY_STORAGE_FLAG = OH_HUKS_TAG_TYPE_UINT
\|
1002, OH_HUKS_TAG_IS_ALLOWED_WRAP = OH_HUKS_TAG_TYPE_BOOL
\|
1003, OH_HUKS_TAG_KEY_WRAP_TYPE = OH_HUKS_TAG_TYPE_UINT
\|
1004,
<br/>
OH_HUKS_TAG_KEY_AUTH_ID = OH_HUKS_TAG_TYPE_BYTES
\|
1005, OH_HUKS_TAG_KEY_ROLE = OH_HUKS_TAG_TYPE_UINT
\|
1006, OH_HUKS_TAG_KEY_FLAG = OH_HUKS_TAG_TYPE_UINT
\|
1007, OH_HUKS_TAG_IS_ASYNCHRONIZED = OH_HUKS_TAG_TYPE_UINT
\|
1008,
<br/>
OH_HUKS_TAG_KEY_DOMAIN = OH_HUKS_TAG_TYPE_UINT
\|
1011, OH_HUKS_TAG_SYMMETRIC_KEY_DATA = OH_HUKS_TAG_TYPE_BYTES
\|
20001,
<br/>
OH_HUKS_TAG_ASYMMETRIC_PUBLIC_KEY_DATA = OH_HUKS_TAG_TYPE_BYTES
\|
20002, OH_HUKS_TAG_ASYMMETRIC_PRIVATE_KEY_DATA = OH_HUKS_TAG_TYPE_BYTES
\|
20003
<br/>
} | 参数集所用的TAG值枚举 |
|
[
OH_Huks_Tag
](
_huks_type_api.md#oh_huks_tag
)
{
<br/>
OH_HUKS_TAG_ALGORITHM = OH_HUKS_TAG_TYPE_UINT
\|
1, OH_HUKS_TAG_PURPOSE = OH_HUKS_TAG_TYPE_UINT
\|
2, OH_HUKS_TAG_KEY_SIZE = OH_HUKS_TAG_TYPE_UINT
\|
3,
<br/>
OH_HUKS_TAG_DIGEST = OH_HUKS_TAG_TYPE_UINT
\|
4, OH_HUKS_TAG_PADDING = OH_HUKS_TAG_TYPE_UINT
\|
5, OH_HUKS_TAG_BLOCK_MODE = OH_HUKS_TAG_TYPE_UINT
\|
6, OH_HUKS_TAG_KEY_TYPE = OH_HUKS_TAG_TYPE_UINT
\|
7,
<br/>
OH_HUKS_TAG_ASSOCIATED_DATA = OH_HUKS_TAG_TYPE_BYTES
\|
8, OH_HUKS_TAG_NONCE = OH_HUKS_TAG_TYPE_BYTES
\|
9, OH_HUKS_TAG_IV = OH_HUKS_TAG_TYPE_BYTES
\|
10, OH_HUKS_TAG_INFO = OH_HUKS_TAG_TYPE_BYTES
\|
11,
<br/>
OH_HUKS_TAG_SALT = OH_HUKS_TAG_TYPE_BYTES
\|
12, OH_HUKS_TAG_ITERATION = OH_HUKS_TAG_TYPE_UINT
\|
14, OH_HUKS_TAG_KEY_GENERATE_TYPE = OH_HUKS_TAG_TYPE_UINT
\|
15, OH_HUKS_TAG_AGREE_ALG = OH_HUKS_TAG_TYPE_UINT
\|
19,
<br/>
OH_HUKS_TAG_AGREE_PUBLIC_KEY_IS_KEY_ALIAS = OH_HUKS_TAG_TYPE_BOOL
\|
20, OH_HUKS_TAG_AGREE_PRIVATE_KEY_ALIAS = OH_HUKS_TAG_TYPE_BYTES
\|
21, OH_HUKS_TAG_AGREE_PUBLIC_KEY = OH_HUKS_TAG_TYPE_BYTES
\|
22, OH_HUKS_TAG_KEY_ALIAS = OH_HUKS_TAG_TYPE_BYTES
\|
23,
<br/>
OH_HUKS_TAG_DERIVE_KEY_SIZE = OH_HUKS_TAG_TYPE_UINT
\|
24, OH_HUKS_TAG_IMPORT_KEY_TYPE = OH_HUKS_TAG_TYPE_UINT
\|
25, OH_HUKS_TAG_UNWRAP_ALGORITHM_SUITE = OH_HUKS_TAG_TYPE_UINT
\|
26,
<br/>
OH_HUKS_TAG_DERIVED_AGREED_KEY_STORAGE_FLAG = OH_HUKS_TAG_TYPE_UINT
\|
29,
<br/>
OH_HUKS_TAG_RSA_PSS_SALT_LEN_TYPE = OH_HUKS_TAG_TYPE_UINT
\|
30, OH_HUKS_TAG_ALL_USERS = OH_HUKS_TAG_TYPE_BOOL
\|
301,
<br/>
OH_HUKS_TAG_USER_ID = OH_HUKS_TAG_TYPE_UINT
\|
302, OH_HUKS_TAG_NO_AUTH_REQUIRED = OH_HUKS_TAG_TYPE_BOOL
\|
303, OH_HUKS_TAG_USER_AUTH_TYPE = OH_HUKS_TAG_TYPE_UINT
\|
304, OH_HUKS_TAG_AUTH_TIMEOUT = OH_HUKS_TAG_TYPE_UINT
\|
305,
<br/>
OH_HUKS_TAG_AUTH_TOKEN = OH_HUKS_TAG_TYPE_BYTES
\|
306, OH_HUKS_TAG_KEY_AUTH_ACCESS_TYPE = OH_HUKS_TAG_TYPE_UINT
\|
307, OH_HUKS_TAG_KEY_SECURE_SIGN_TYPE = OH_HUKS_TAG_TYPE_UINT
\|
308, OH_HUKS_TAG_CHALLENGE_TYPE = OH_HUKS_TAG_TYPE_UINT
\|
309,
<br/>
OH_HUKS_TAG_CHALLENGE_POS = OH_HUKS_TAG_TYPE_UINT
\|
310, OH_HUKS_TAG_KEY_AUTH_PURPOSE = OH_HUKS_TAG_TYPE_UINT
\|
311, OH_HUKS_TAG_ATTESTATION_CHALLENGE = OH_HUKS_TAG_TYPE_BYTES
\|
501, OH_HUKS_TAG_ATTESTATION_APPLICATION_ID = OH_HUKS_TAG_TYPE_BYTES
\|
502, OH_HUKS_TAG_ATTESTATION_ID_ALIAS = OH_HUKS_TAG_TYPE_BYTES
\|
511,
<br/>
OH_HUKS_TAG_ATTESTATION_ID_SEC_LEVEL_INFO = OH_HUKS_TAG_TYPE_BYTES
\|
514, OH_HUKS_TAG_ATTESTATION_ID_VERSION_INFO = OH_HUKS_TAG_TYPE_BYTES
\|
515,
<br/>
OH_HUKS_TAG_IS_KEY_ALIAS = OH_HUKS_TAG_TYPE_BOOL
\|
1001, OH_HUKS_TAG_KEY_STORAGE_FLAG = OH_HUKS_TAG_TYPE_UINT
\|
1002, OH_HUKS_TAG_IS_ALLOWED_WRAP = OH_HUKS_TAG_TYPE_BOOL
\|
1003, OH_HUKS_TAG_KEY_WRAP_TYPE = OH_HUKS_TAG_TYPE_UINT
\|
1004,
<br/>
OH_HUKS_TAG_KEY_AUTH_ID = OH_HUKS_TAG_TYPE_BYTES
\|
1005, OH_HUKS_TAG_KEY_ROLE = OH_HUKS_TAG_TYPE_UINT
\|
1006, OH_HUKS_TAG_KEY_FLAG = OH_HUKS_TAG_TYPE_UINT
\|
1007, OH_HUKS_TAG_IS_ASYNCHRONIZED = OH_HUKS_TAG_TYPE_UINT
\|
1008,
<br/>
OH_HUKS_TAG_KEY_DOMAIN = OH_HUKS_TAG_TYPE_UINT
\|
1011, OH_HUKS_TAG_SYMMETRIC_KEY_DATA = OH_HUKS_TAG_TYPE_BYTES
\|
20001,
<br/>
OH_HUKS_TAG_ASYMMETRIC_PUBLIC_KEY_DATA = OH_HUKS_TAG_TYPE_BYTES
\|
20002, OH_HUKS_TAG_ASYMMETRIC_PRIVATE_KEY_DATA = OH_HUKS_TAG_TYPE_BYTES
\|
20003
<br/>
} | 参数集所用的TAG值枚举 |
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录