Lines Matching +full:16 +full:- +full:128
6 * Copyright (c) 2017-2020 Nordic Semiconductor ASA
7 * Copyright (c) 2015-2017 Intel Corporation
9 * SPDX-License-Identifier: Apache-2.0
41 /** @brief AES encrypt little-endian data.
47 * @param key 128 bit LS byte first key for the encryption of the plaintext
48 * @param plaintext 128 bit LS byte first plaintext data block to be encrypted
49 * @param enc_data 128 bit LS byte first encrypted data block
53 int bt_encrypt_le(const uint8_t key[16], const uint8_t plaintext[16],
54 uint8_t enc_data[16]);
56 /** @brief AES encrypt big-endian data.
62 * @param key 128 bit MS byte first key for the encryption of the plaintext
63 * @param plaintext 128 bit MS byte first plaintext data block to be encrypted
64 * @param enc_data 128 bit MS byte first encrypted data block
68 int bt_encrypt_be(const uint8_t key[16], const uint8_t plaintext[16],
69 uint8_t enc_data[16]);
72 /** @brief Decrypt big-endian data with AES-CCM.
74 * Decrypts and authorizes @c enc_data with AES-CCM, as described in
79 * @param key 128 bit MS byte first key
89 * @retval -EINVAL Invalid parameters.
90 * @retval -EBADMSG Authentication failed.
92 int bt_ccm_decrypt(const uint8_t key[16], uint8_t nonce[13], const uint8_t *enc_data,
97 /** @brief Encrypt big-endian data with AES-CCM.
99 * Encrypts and generates a MIC from @c plaintext with AES-CCM, as described in
104 * @param key 128 bit MS byte first key
114 * @retval -EINVAL Invalid parameters.
116 int bt_ccm_encrypt(const uint8_t key[16], uint8_t nonce[13],