PebbleOS v4.47.0-1312-gf1984a001
Loading...
Searching...
No Matches
pbl_crypto_ops Struct Reference

Crypto engine driver operations. More...

#include <crypto.h>

Data Fields

int(* init )(const struct pbl_crypto *crypto)
 Optional.
 
size_t(* sha256_blocks )(const struct pbl_crypto *crypto, uint32_t state[8], const void *data, size_t nblocks)
 Optional.
 
size_t(* aes_ecb )(const struct pbl_crypto *crypto, bool encrypt, const uint8_t *key, size_t key_len, uint8_t *out, const uint8_t *in, size_t nblocks)
 Optional.
 

Detailed Description

Crypto engine driver operations.

Field Documentation

◆ aes_ecb

size_t(* pbl_crypto_ops::aes_ecb) (const struct pbl_crypto *crypto, bool encrypt, const uint8_t *key, size_t key_len, uint8_t *out, const uint8_t *in, size_t nblocks)

Optional.

Encrypt or decrypt AES blocks in ECB mode, see pbl_crypto_aes_ecb_encrypt().

◆ init

int(* pbl_crypto_ops::init) (const struct pbl_crypto *crypto)

Optional.

Bring the hardware up.

◆ sha256_blocks

size_t(* pbl_crypto_ops::sha256_blocks) (const struct pbl_crypto *crypto, uint32_t state[8], const void *data, size_t nblocks)

Optional.

Compress blocks into a SHA-256 chaining value, see pbl_crypto_sha256_blocks().


The documentation for this struct was generated from the following file: