Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Docs
提交
78d0fea1
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看板
未验证
提交
78d0fea1
编写于
6月 08, 2023
作者:
O
openharmony_ci
提交者:
Gitee
6月 08, 2023
浏览文件
操作
浏览文件
下载
差异文件
!19399 【轻量级 PR】:add huks 文档
Merge pull request !19399 from zengyawen/N/A
上级
7546034c
6d300f38
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
25 addition
and
2 deletion
+25
-2
zh-cn/application-dev/reference/native-apis/_huks_type_api.md
...n/application-dev/reference/native-apis/_huks_type_api.md
+25
-2
未找到文件。
zh-cn/application-dev/reference/native-apis/_huks_type_api.md
浏览文件 @
78d0fea1
...
...
@@ -74,8 +74,9 @@
|
[
OH_Huks_AlgSuite
](
#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
](
#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
](
#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
](
#oh_huks_keystoragetype
)
{
<br/>
OH_HUKS_STORAGE_TEMP = 0,
<br/>
OH_HUKS_STORAGE_PERSISTENT = 1
<br/>
} | 密钥的存储方式。 |
|
[
OH_Huks_KeyStorageType
](
#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
](
#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
](
#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
](
#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
](
#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
](
#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/>
} | 密钥访问控制中的用户认证类型 |
...
...
@@ -83,7 +84,7 @@
|
[
OH_Huks_ChallengeType
](
#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
](
#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
](
#oh_huks_securesigntype
)
{ OH_HUKS_SECURE_SIGN_WITH_AUTHINFO = 1 } | 生成或导入密钥时,指定该密钥的安全签名类型。 |
|
[
OH_Huks_Tag
](
#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, 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
](
#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, OH_HUKS_TAG_
DERIVED_AGREED_KEY_STORAGE_FLAG = OH_HUKS_TAG_TYPE_UINT
\|
29, 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值枚举 |
## 枚举类型说明
...
...
@@ -175,6 +176,23 @@ enum OH_Huks_CipherMode
| OH_HUKS_MODE_GCM | 使用GCM加密模式。 |
### OH_Huks_RsaPssSaltLenType
```
enum OH_Huks_RsaPssSaltLenType
```
**描述:**
RSA在签名验签、填充模式为PSS时需要指定的盐值长度类型。
**起始版本:**
10
| 枚举值 | 描述 |
| -------- | -------- |
| OH_HUKS_RSA_PSS_SALT_LEN_DIGEST | 以摘要长度设置盐值长度。 |
| OH_HUKS_RSA_PSS_SALT_LEN_MAX | 以最大长度设置盐值长度。 |
### OH_Huks_ErrCode
...
...
@@ -389,6 +407,8 @@ enum OH_Huks_KeyStorageType
| -------- | -------- |
| OH_HUKS_STORAGE_TEMP | 通过本地直接管理密钥。 |
| OH_HUKS_STORAGE_PERSISTENT | 通过HUKS service管理密钥。 |
| OH_HUKS_STORAGE_ONLY_USED_IN_HUKS | 密钥只存储在huks中。 |
| OH_HUKS_STORAGE_KEY_EXPORT_ALLOWED | 密钥从huks中导出,不存储。 |
### OH_Huks_SecureSignType
...
...
@@ -438,6 +458,8 @@ enum OH_Huks_Tag
| OH_HUKS_TAG_DERIVE_KEY_SIZE | 派生密钥大小。 |
| OH_HUKS_TAG_IMPORT_KEY_TYPE | 导入密钥类型, 类型可在枚举OH_Huks_ImportKeyType中选择。 |
| OH_HUKS_TAG_UNWRAP_ALGORITHM_SUITE | 导入加密密钥的套件。 |
| OH_HUKS_TAG_DERIVED_AGREED_KEY_STORAGE_FLAG | 派生密钥/协商密钥的存储类型。 |
| OH_HUKS_TAG_RSA_PSS_SALT_LEN_TYPE | RSA算法,填充模式为PSS时的盐值长度类型。 |
| OH_HUKS_TAG_ALL_USERS | 密钥使用访问控制和使用认证相关的标签取值范围: 301 - 500 多用户中的所有用户。 |
| OH_HUKS_TAG_USER_ID | 表示多用户id。 |
| OH_HUKS_TAG_NO_AUTH_REQUIRED | 表示是否需要密钥访问控制。 |
...
...
@@ -448,6 +470,7 @@ enum OH_Huks_Tag
| OH_HUKS_TAG_KEY_SECURE_SIGN_TYPE | 表示生成或导入密钥时,指定该密钥的签名类型。 |
| OH_HUKS_TAG_CHALLENGE_TYPE | 表示密钥使用时生成的challenge类型。从OH_Huks_ChallengeType中选择。 |
| OH_HUKS_TAG_CHALLENGE_POS | 表示challenge类型为用户自定义类型时,huks产生的challenge有效长度仅为8字节连续的数据的位置。从OH_Huks_ChallengePosition中选择。 |
| H_HUKS_TAG_KEY_AUTH_PURPOSE | 表示密钥认证用途的类型。 |
| OH_HUKS_TAG_ATTESTATION_CHALLENGE | 密钥认证相关的标签值: 501 - 600 密钥认证时的挑战值。 |
| OH_HUKS_TAG_ATTESTATION_APPLICATION_ID | 密钥认证时拥有该密钥的application的Id。 |
| OH_HUKS_TAG_ATTESTATION_ID_ALIAS | 密钥别名。 |
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录