public final class ApplicationKeySupport extends Object
用于处理 Weave 应用密钥的实用方法和定义。
嵌套类摘要
| 接口 | ApplicationKeySupport.ConstituentKeySource | ||
常量摘要
| int | kAppIntermediateKeySize | 派生中间密钥的大小(以字节为单位)。 |
字段摘要
| public static final byte[] | kAppIntermediateKeyDiversifier | 用于从根密钥和周期密钥派生中间密钥的 Diversifier 值。 |
公共构造函数摘要
公共方法摘要
| static byte[] |
deriveApplicationKey(int keyId,
ApplicationKeySupport.ConstituentKeySource keySource, byte[] salt, byte[]
diversifier, int keyLen)
|
继承的方法摘要
常量
public static final int kAppIntermediateKeySize
派生中间密钥的大小(以字节为单位)。
常量值: 32
字段
public static final byte[] kAppIntermediateKeyDiversifier
用于从根密钥和周期密钥派生中间密钥的多样化值。
公共构造函数
public ApplicationKeySupport ()
公共方法
public static byte[] deriveApplicationKey (int keyId, ApplicationKeySupport.ConstituentKeySource keySource, byte[] salt, byte[] diversifier, int keyLen)
参数
| keyId | |
|---|---|
| keySource | |
| 食盐 | |
| 多样化工具 | |
| keyLen |
抛出
| 异常 |
|---|