nRF5 SDK v13.1.0
Modules | Data Structures | Macros | Enumerations
Commonly shared types

Provides definitions of commonly shared cryptographic types like hashes and curves used in the nrf_crypto APIs. More...

Modules

 Cryptographic curves
 Cryptographic curves that are available to the application.
 
 Cryptographic hash sizes
 Sizes of different cryptographic hashes.
 
 ECDSA signature sizes.
 Sizes of different ECDSA signatures.
 
 ECC private key sizes.
 Sizes of different elliptical curve cryptography private keys.
 
 ECC public key sizes.
 Sizes of different elliptical curve cryptographic public keys.
 
 ECDH shared secret sizes.
 Sizes of ECDH shared secret values.
 

Data Structures

struct  nrf_value_length_t
 Generic type to hold pointer to value and length. More...
 
struct  nrf_crypto_signature_info_t
 Combined structure containing curve type, hash type and endian type. More...
 
struct  nrf_crypto_curve_info_t
 Combined structure containin curve type and endian type. More...
 
struct  nrf_crypto_hash_info_t
 Combined structure containing hash type and endian type. More...
 
struct  nrf_crypto_ecdsa_sizes_t
 Combined to hold sizes used by ECDSA sign/verify. More...
 
struct  nrf_crypto_hash_sizes_t
 Structure holding hash size according to algorithm. More...
 

Macros

#define BLE_LESC_CURVE_TYPE_INFO
 Macro to declare a cryptographic curve used in BLE Secure Connections (LESC). More...
 

Enumerations

enum  nrf_hash_type_t {
  NRF_CRYPTO_HASH_TYPE_INVALID = 0x00,
  NRF_CRYPTO_HASH_TYPE_MD5 = 0x01,
  NRF_CRYPTO_HASH_TYPE_SHA1 = 0x03,
  NRF_CRYPTO_HASH_TYPE_SHA224 = 0x04,
  NRF_CRYPTO_HASH_TYPE_SHA256 = 0x05,
  NRF_CRYPTO_HASH_TYPE_SHA384 = 0x06,
  NRF_CRYPTO_HASH_TYPE_SHA512 = 0x07
}
 Hashing algorithms that are available through nrf_crypto. More...
 
enum  nrf_endian_type_t {
  NRF_CRYPTO_ENDIAN_LE = 0x00,
  NRF_CRYPTO_ENDIAN_BE = 0x01
}
 Type definition for endianness.
 

Detailed Description

Provides definitions of commonly shared cryptographic types like hashes and curves used in the nrf_crypto APIs.

Macro Definition Documentation

#define BLE_LESC_CURVE_TYPE_INFO
Value:
{ \
.curve_type = NRF_CRYPTO_CURVE_SECP256R1, \
.endian_type = NRF_CRYPTO_ENDIAN_LE \
}

Macro to declare a cryptographic curve used in BLE Secure Connections (LESC).

Enumeration Type Documentation

Hashing algorithms that are available through nrf_crypto.

Note
All cryptographic hash types may not be available through the nrf_crypto backend.
Enumerator
NRF_CRYPTO_HASH_TYPE_INVALID 

Invalid hashing algorithm.

NRF_CRYPTO_HASH_TYPE_MD5 

MD5.

NRF_CRYPTO_HASH_TYPE_SHA1 

SHA-1.

NRF_CRYPTO_HASH_TYPE_SHA224 

SHA-224 (SHA-2).

NRF_CRYPTO_HASH_TYPE_SHA256 

SHA-256 (SHA-2).

NRF_CRYPTO_HASH_TYPE_SHA384 

SHA-384 (SHA-2).

NRF_CRYPTO_HASH_TYPE_SHA512 

SHA-512 (SHA-2).


Documentation feedback | Developer Zone | Subscribe | Updated