diff options
author | Brian Gix <brian.gix@intel.com> | 2019-07-11 15:59:51 -0700 |
---|---|---|
committer | Brian Gix <brian.gix@intel.com> | 2019-07-14 08:32:18 -0700 |
commit | 2e46771050e6f302e4b7a8a1760ab19e68ea2385 (patch) | |
tree | 0a72f16bbe06de217dc2d7fc8eb991834e81238e /mesh/crypto.h | |
parent | 20585d786bd6c52f84182621cb7299e00d01b2dc (diff) | |
download | bluez-2e46771050e6f302e4b7a8a1760ab19e68ea2385.tar.gz |
mesh: Convert provisioning pkts to packed structs
Provisioning packets are defined in the specification
as packed big endian structures. Instead of specifying
an octet array, we now use struct matching the spec.
Diffstat (limited to 'mesh/crypto.h')
-rw-r--r-- | mesh/crypto.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/mesh/crypto.h b/mesh/crypto.h index ffd312231..3e6815a35 100644 --- a/mesh/crypto.h +++ b/mesh/crypto.h @@ -22,13 +22,13 @@ bool mesh_crypto_aes_ccm_encrypt(const uint8_t nonce[13], const uint8_t key[16], const uint8_t *aad, uint16_t aad_len, - const uint8_t *msg, uint16_t msg_len, - uint8_t *out_msg, + const void *msg, uint16_t msg_len, + void *out_msg, void *out_mic, size_t mic_size); bool mesh_crypto_aes_ccm_decrypt(const uint8_t nonce[13], const uint8_t key[16], const uint8_t *aad, uint16_t aad_len, - const uint8_t *enc_msg, uint16_t enc_msg_len, - uint8_t *out_msg, + const void *enc_msg, uint16_t enc_msg_len, + void *out_msg, void *out_mic, size_t mic_size); bool mesh_aes_ecb_one(const uint8_t key[16], const uint8_t plaintext[16], uint8_t encrypted[16]); |