Lines Matching +full:swap +full:- +full:bytes
3 * Copyright (c) 2021-2022 Nordic Semiconductor ASA
5 * SPDX-License-Identifier: Apache-2.0
42 if ((r[BT_CSIP_CRYPTO_PRAND_SIZE - 1] & BIT(7)) || in bt_csip_sih()
43 ((r[BT_CSIP_CRYPTO_PRAND_SIZE - 1] & BIT(6)) == 0)) { in bt_csip_sih()
71 /* Result is the lowest 3 bytes */ in bt_csip_sih()
86 * @param n n is 0 or more bytes.
87 * @param n_size Number of bytes in @p n.
88 * @param salt A 16-byte salt.
89 * @param p p is 0 or more bytes.
90 * @param p_size Number of bytes in @p p.
91 * @param out A 16-byte output buffer.
98 /* TODO: This is basically a duplicate of bt_mesh_k1 - Perhaps they can in k1()
107 * k1(N, SALT, P) = AES-CMAC_T(P) in k1()
132 * @param m A non-zero length octet array or ASCII encoded string
134 * @param out 16-byte output buffer.
144 * s1(M) = AES-CMAC_zero(M) in s1()
175 /* Swap because aes_cmac is big endian in bt_csip_sef()
199 /* Swap result back to little endian */ in bt_csip_sef()