|
PebbleOS v4.47.0-1312-gf1984a001
|
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. | |
Crypto engine driver operations.
| 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().
| int(* pbl_crypto_ops::init) (const struct pbl_crypto *crypto) |
Optional.
Bring the hardware up.
| 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().