nRF5 SDK v15.0.0
Modules | 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 hash sizes
 Sizes of different cryptographic hashes.
 

Macros

#define NRF_CRYPTO_AES_BLOCK_SIZE   (16u)
 

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_crypto_key_size_id_t {
  NRF_CRYPTO_KEY_SIZE_128 = 128,
  NRF_CRYPTO_KEY_SIZE_192 = 192,
  NRF_CRYPTO_KEY_SIZE_256 = 256
}
 Type definition for key size.
 
enum  nrf_crypto_operation_t {
  NRF_CRYPTO_DECRYPT = 0,
  NRF_CRYPTO_ENCRYPT = 1,
  NRF_CRYPTO_MAC_CALCULATE = 2
}
 Type specifying whether decrypt or encrypt operation shall be performed.
 

Detailed Description

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

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