|
◆ CRYPT_EAL_KdfTls12()
int32_t CRYPT_EAL_KdfTls12 |
( |
CRYPT_MAC_AlgId |
id, |
|
|
const uint8_t * |
key, |
|
|
uint32_t |
keyLen, |
|
|
const uint8_t * |
label, |
|
|
uint32_t |
labelLen, |
|
|
const uint8_t * |
seed, |
|
|
uint32_t |
seedLen, |
|
|
uint8_t * |
out, |
|
|
uint32_t |
len |
|
) |
| |
KDF-TLS1.2
- 参数
-
id | [IN] MAC algorithm ID (Only some HMAC algorithm IDs are supported.) These include CRYPT_MAC_HMAC_SHA256, CRYPT_MAC_HMAC_SHA384, and CRYPT_MAC_HMAC_SHA512) |
key | [IN] Key, string input by the user. |
keyLen | [IN] Key length, any length. |
label | [IN] Label, string input by the user, combined with the seed as the PRF input data. |
labelLen | [IN] Label length, any length. |
seed | [IN] Seed, string input by the user, used as the input data of the PRF. |
seedLen | [IN] Seed length, any length. |
out | [OUT] Derive the key. |
len | [IN] Derived key length. the value range is [1, 0xFFFFFFFF]. |
- 返回值
-
|