Kenji Arai / mbed-os_TYBLE16

Dependents:   TYBLE16_simple_data_logger TYBLE16_MP3_Air

Embed: (wiki syntax)

« Back to documentation index

crys_kdf.h File Reference

crys_kdf.h File Reference

This module defines the API that supports Key derivation function in modes as defined in PKCS#3, ANSI X9.42-2001, and ANSI X9.63-1999. More...

Go to the source code of this file.

Data Structures

struct  CRYS_KDF_OtherInfo_t

Enumerations

enum  CRYS_KDF_HASH_OpMode_t {
  CRYS_KDF_HASH_SHA1_mode = 0, CRYS_KDF_HASH_SHA224_mode = 1, CRYS_KDF_HASH_SHA256_mode = 2, CRYS_KDF_HASH_SHA384_mode = 3,
  CRYS_KDF_HASH_SHA512_mode = 4, CRYS_KDF_HASH_NumOfModes, CRYS_KDF_HASH_OpModeLast = 0x7FFFFFFF
}
enum  CRYS_KDF_DerivFuncMode_t {
  CRYS_KDF_ASN1_DerivMode = 0, CRYS_KDF_ConcatDerivMode = 1, CRYS_KDF_X963_DerivMode = CRYS_KDF_ConcatDerivMode, CRYS_KDF_ISO18033_KDF1_DerivMode = 3,
  CRYS_KDF_ISO18033_KDF2_DerivMode = 4, CRYS_KDF_DerivFunc_NumOfModes = 5, CRYS_KDF_DerivFuncModeLast = 0x7FFFFFFF
}

Functions

CIMPORT_C CRYSError_t CRYS_KDF_KeyDerivFunc (uint8_t *ZZSecret_ptr, uint32_t ZZSecretSize, CRYS_KDF_OtherInfo_t *OtherInfo_ptr, CRYS_KDF_HASH_OpMode_t KDFhashMode, CRYS_KDF_DerivFuncMode_t derivation_mode, uint8_t *KeyingData_ptr, uint32_t KeyingDataSizeBytes)
 CRYS_KDF_KeyDerivFunc performs key derivation according to one of the modes defined in standards: ANS X9.42-2001, ANS X9.63, ISO/IEC 18033-2.

Detailed Description

This module defines the API that supports Key derivation function in modes as defined in PKCS#3, ANSI X9.42-2001, and ANSI X9.63-1999.

Definition in file crys_kdf.h.