Home
last modified time | relevance | path

Searched full:bytes (Results 1 – 25 of 567) sorted by relevance

12345678910>>...23

/nrf52832-nimble/packages/NimBLE-latest/ext/tinycrypt/include/tinycrypt/
H A Dccm_mode.h51 * between 0 and (2^16 - 2^8) bytes.
84 /* max additional authenticated size in bytes: 2^16 - 2^8 = 65280 */
87 /* max message size in bytes: 2^(8L) = 2^16 = 65536 */
94 unsigned int mlen; /* mac length in bytes (parameter t in SP-800 38C) */
108 * @param nlen -- nonce length in bytes
109 * @param mlen -- mac length in bytes (parameter t in SP-800 38C)
127 * @param olen IN -- output length in bytes
129 * @param alen IN -- associated data length in bytes
131 * @param plen IN -- payload length in bytes
134 * @note: out buffer should be at least (plen + c->mlen) bytes long.
[all …]
H A Dctr_prng.h71 /* updated each time another BLOCKLEN_BYTES bytes are produced */
90 * @note Only the first (TC_AES_KEY_SIZE + TC_AES_BLOCK_SIZE) bytes of
92 * supplying additional bytes has no effect.
95 * @param entropyLen IN -- entropy length in bytes
98 * @param plen IN -- personalization length in bytes
122 * @param entropylen IN -- length of entropy in bytes
124 * @param additionallen IN -- additional input length in bytes
134 * Generates outlen pseudo-random bytes into out buffer, updates prng
144 * @param additionallen IN -- additional input length in bytes
146 * @param outlen IN -- size of out buffer in bytes
H A Dcbc_mode.h64 * 16 bytes larger than the plaintext buffer.
85 * CBC encrypts inlen bytes of the in buffer into the out buffer
102 * - inlen gives the number of bytes in the in buffer
104 * @param outlen IN -- length of ciphertext buffer in bytes
106 * @param inlen IN -- length of plaintext buffer in bytes
116 * CBC decrypts inlen bytes of the in buffer into the out buffer
134 * - inlen gives the number of bytes in the in buffer
136 * @param outlen IN -- length of plaintext buffer in bytes
138 * @param inlen IN -- length of ciphertext buffer in bytes
H A Decc.h80 /* Word size (4 bytes considering 32-bits architectures) */
106 /* Number of bytes to represent an element of the the curve p-256: */
153 /* Bytes to words ordering: */
210 * The RNG function should fill 'size' random bytes into 'dest'. It should
228 * @brief Set the function that will be used to generate random bytes. The RNG
235 * @param rng_function IN -- function that will be used to generate random bytes
241 * @return Returns the function that will be used to generate random bytes.
246 * @brief computes the size of a private key for the curve in bytes.
248 * @return size of a private key for the curve in bytes.
253 * @brief computes the size of a public key for the curve in bytes.
[all …]
H A Dctr_mode.h79 * CTR mode encrypts (or decrypts) inlen bytes from in buffer into out buffer
90 * - out points to inlen bytes
91 * - in points to inlen bytes
95 * @param outlen IN -- length of ciphertext buffer in bytes
97 * @param inlen IN -- length of input data in bytes
/nrf52832-nimble/packages/NimBLE-latest/nimble/host/tools/
H A Dlog2smtest.rb118 bytes = []
122 bytes << byte
128 return bytes
148 def bytes_to_arr_body(bytes, indent) argument
152 while idx < bytes.size
154 if bytes.size - idx >= 8
157 slice_len = bytes.size - idx
160 slice = bytes[idx...(idx + slice_len)]
171 def bytes_to_arr(bytes, name, indent) argument
173 str << bytes_to_arr_body(bytes, indent + 4)
[all …]
/nrf52832-nimble/rt-thread/components/drivers/mtd/
H A Dmtdnand.c34 size_t bytes; in nand_fill_oob() local
36 bytes = min(len, free->length); in nand_fill_oob()
39 rt_memcpy(chip->oob_poi + boffs, oob, bytes); in nand_fill_oob()
40 oob += bytes; in nand_fill_oob()
62 size_t bytes = 0; in nand_transfer_oob() local
64 for (; free->length && len; free++, len -= bytes) in nand_transfer_oob()
75 bytes = min(len, (free->length - roffs)); in nand_transfer_oob()
80 bytes = min(len, free->length); in nand_transfer_oob()
84 rt_memcpy(oob, chip->oob_poi + boffs, bytes); in nand_transfer_oob()
85 oob += bytes; in nand_transfer_oob()
[all …]
/nrf52832-nimble/rt-thread/components/dfs/filesystems/uffs/
H A DREADME15 * Low cost: e.g. it needs only 41K bytes RAM for 64MB NAND flash (page size 2048).
47 Example 1: 128M bytes NAND, 8192 blocks, total memory cost:
48 (16 * 8192)128K + 5.4K + 4.6K = 138K bytes.
50 Example 2: 32M Bytes NAND, 2048 blocks, total memory cost:
51 (16 * 2048)32K + 5.4K + 4.6K = 42K bytes.
53 Example 3: 16M bytes NAND, 1024 blocks, total memory cost:
54 (16 * 1024)16K + 5.4K + 4.6K = 26K bytes.
61 Example 1: 512M bytes NAND, 8192 blocks, total memory cost:
62 (16 * 8192)128K + 20.4K + 4.6K = 153K bytes.
64 Example 2: 128M Bytes NAND, 2048 blocks, total memory cost:
[all …]
/nrf52832-nimble/packages/NimBLE-latest/nimble/controller/include/controller/
H A Dble_ll.h253 #define BLE_DEV_ADDR_LEN (6) /* bytes */
267 * -> Preamble (1/2 bytes)
268 * -> Access Address (4 bytes)
270 * -> CRC (3 bytes)
290 * -> Payload (max 37 bytes)
350 * -> Header (2 bytes)
354 * -> MIC (0 or 4 bytes)
372 * -> InitA (6 bytes)
373 * -> AdvA (6 bytes)
374 * -> LLData (22 bytes)
[all …]
H A Dble_ll_adv.h63 * -> AdvA (6 bytes)
64 * -> AdvData (0 - 31 bytes)
74 * -> AdvA (6 bytes)
75 * -> InitA (6 bytes)
88 * -> AdvA (6 bytes)
89 * -> AdvData (0 - 31 bytes)
100 * -> AdvA (6 bytes)
101 * -> AdvData (0 - 31 bytes)
H A Dble_ll_ctrl.h55 * -> Data (0 - 26 bytes)
89 /* Maximum # of payload bytes in a LL control PDU */
153 * -> 8 bytes of data containing features supported by device.
161 * -> comp_id (2 bytes)
183 * -> 8 bytes of data containing features supported by device.
220 * -> max_rx_bytes (2 bytes): defines connMaxRxOctets. Range 27 to 251
221 * -> max_rx_time (2 bytes): defines connMaxRxTime. Range 328 to 2120 usecs.
222 * -> max_tx_bytes (2 bytes): defines connMaxTxOctets. Range 27 to 251
223 * -> max_tx_time (2 bytes): defines connMaxTxTime. Range 328 to 2120 usecs.
/nrf52832-nimble/rt-thread/examples/test/
H A Drbb_test.c103 rt_kprintf("6 blocks in 52 bytes ring block buffer object create success.\n"); in rbb_test()
107 rt_kprintf("Test error: 6 blocks in 52 bytes ring block buffer object create failed.\n"); in rbb_test()
115 rt_kprintf("Block1 (2 bytes) allocate success.\n"); in rbb_test()
119 rt_kprintf("Test error: block1 (2 bytes) allocate failed.\n"); in rbb_test()
126 rt_kprintf("Block2 (4 bytes) allocate success.\n"); in rbb_test()
130 rt_kprintf("Test error: block2 (4 bytes) allocate failed.\n"); in rbb_test()
137 rt_kprintf("Block3 (8 bytes) allocate success.\n"); in rbb_test()
141 rt_kprintf("Test error: block3 (8 bytes) allocate failed.\n"); in rbb_test()
148 rt_kprintf("Block4 (16 bytes) allocate success.\n"); in rbb_test()
152 rt_kprintf("Test error: block4 (16 bytes) allocate failed.\n"); in rbb_test()
[all …]
/nrf52832-nimble/rt-thread/components/dfs/filesystems/jffs2/src/
H A Dcompr_zlib.c31 bytes for it to clean up.
32 Q: Is 12 bytes sufficient?
48 …printk(KERN_WARNING "Failed to allocate %d bytes for deflate workspace\n", zlib_deflate_workspaces… in alloc_workspaces()
51 D1(printk(KERN_DEBUG "Allocated %d bytes for deflate workspace\n", zlib_deflate_workspacesize())); in alloc_workspaces()
54 …printk(KERN_WARNING "Failed to allocate %d bytes for inflate workspace\n", zlib_inflate_workspaces… in alloc_workspaces()
58 D1(printk(KERN_DEBUG "Allocated %d bytes for inflate workspace\n", zlib_inflate_workspacesize())); in alloc_workspaces()
123 D1(printk(KERN_DEBUG "zlib compressed %ld bytes into %ld; failing\n", in jffs2_zlib_compress()
129 D1(printk(KERN_DEBUG "zlib compressed %ld bytes into %ld\n", in jffs2_zlib_compress()
/nrf52832-nimble/rt-thread/components/drivers/i2c/
H A Di2c-bit-ops.c191 rt_size_t bytes = 0; in i2c_send_bytes() local
204 bytes ++; in i2c_send_bytes()
208 i2c_dbg("send bytes: NACK.\n"); in i2c_send_bytes()
214 i2c_dbg("send bytes: error %d\n", ret); in i2c_send_bytes()
220 return bytes; in i2c_send_bytes()
245 rt_int32_t bytes = 0; /* actual bytes */ in i2c_recv_bytes() local
256 bytes ++; in i2c_recv_bytes()
266 bit_dbg("recieve bytes: 0x%02x, %s\n", in i2c_recv_bytes()
278 return bytes; in i2c_recv_bytes()
/nrf52832-nimble/rt-thread/components/net/lwip-1.4.1/src/include/lwip/
H A Dsio.h92 * @param len maximum length (in bytes) of data to receive
93 * @return number of bytes actually received - may be 0 if aborted by sio_read_abort
108 * @param len maximum length (in bytes) of data to receive
109 * @return number of bytes actually received
120 * @param len length (in bytes) of data to send
121 * @return number of bytes actually sent
/nrf52832-nimble/rt-thread/components/net/lwip-2.1.0/src/include/lwip/
H A Dsio.h93 * @param len maximum length (in bytes) of data to receive
94 * @return number of bytes actually received - may be 0 if aborted by sio_read_abort
109 * @param len maximum length (in bytes) of data to receive
110 * @return number of bytes actually received
121 * @param len length (in bytes) of data to send
122 * @return number of bytes actually sent
/nrf52832-nimble/rt-thread/components/net/lwip-2.0.2/src/include/lwip/
H A Dsio.h93 * @param len maximum length (in bytes) of data to receive
94 * @return number of bytes actually received - may be 0 if aborted by sio_read_abort
109 * @param len maximum length (in bytes) of data to receive
110 * @return number of bytes actually received
121 * @param len length (in bytes) of data to send
122 * @return number of bytes actually sent
/nrf52832-nimble/rt-thread/tools/
H A Dmkromfs.py33 # Pad to 4 bytes boundary with \0
54 return bytes(self._data)
78 # Pad to 4 bytes boundary with \0
191 name = bytes(c.bin_name)
197 # pad the data to 4 bytes boundary
211 return bytes().join(d_li) + bytes().join(p_li)
232 name = bytes('/\0\0\0')
/nrf52832-nimble/rt-thread/components/libc/compilers/armlibc/
H A Dstubs.c114 * - the number of bytes _not_ read, if the read was partially successful
115 * - the number of bytes not read, plus the top bit set (0x80000000), if
123 * So if (for example) the user is trying to read 8 bytes at a time
127 * - it can return 0x80000003 (3 bytes not read due to EOF)
128 * - OR it can return 3 (3 bytes not read), and then return
129 * 0x80000008 (8 bytes not read due to EOF) on the next attempt
130 * - OR it can return 3 (3 bytes not read), and then return
131 * 8 (8 bytes not read, meaning 0 read, meaning EOF) on the next
/nrf52832-nimble/rt-thread/components/dfs/filesystems/uffs/src/emu/
H A Duffs_fileem_ecc_hw_auto.c38 * This emulator emulate LPC32x0 MLC NAND controller which generate 10 bytes
39 * Reed-Solomon error correction code (RS-ECC) for every 518 bytes data.
41 * For small page MLC have 16 bytes spare area leves only 6 bytes for 'meta-data',
42 * no enough room for UFFS's 8 bytes tag and bad block mark. For this reason,
46 * to calculate 6 bytes ECC code, so this solution does not have the same error
71 static u8 g_sdata_buf[PAGE_FULL_SIZE]; // emulating LPC32x0's 528-bytes serial data buffer
178 MSGLN("This emulator emulates only for page size %d bytes !", PAGE_FULL_SIZE); in femu_hw_auto_InitFlash()
189 MSGLN("Adjust ECC size to %d bytes", attr->ecc_size); in femu_hw_auto_InitFlash()
253 // automatically write RS-ECC to the latest 10 bytes. in femu_hw_auto_WritePageWithLayout()
/nrf52832-nimble/packages/NimBLE-latest/ext/tinycrypt/src/
H A Dhmac_prng.c39 * min bytes in the seed string.
45 * max bytes in the seed string;
46 * SP800-90A specifies a maximum of 2^35 bits (i.e., 2^32 bytes).
51 * max bytes in the personalization string;
52 * SP800-90A specifies a maximum of 2^35 bits (i.e., 2^32 bytes).
57 * max bytes in the additional_info string;
58 * SP800-90A specifies a maximum of 2^35 bits (i.e., 2^32 bytes).
70 * maximum bytes per generate call;
/nrf52832-nimble/rt-thread/components/net/uip/doc/
H A Dpt-doc.txt29 requires between two and twelve bytes of state, depending on the
45 - Very small RAM overhead - only two bytes per protothread
99 of the available memory. A protothread only requires only two bytes of
152 except for stack pointers, and requires between 16 and 32 bytes of
156 The standard C implementation requires only two bytes of state per
164 purpose. With this implementation, protothreads require 4 bytes of RAM
/nrf52832-nimble/nordic/nrfx/hal/
H A Dnrf_spim.h58 * to be set low during whole transmission (all transmitted bytes are
59 * marked as command bytes). Any lower value causes the DCX line to be
60 * switched from low to high after this number of bytes is transmitted
61 * (all remaining bytes are marked as data bytes).
394 * @brief Function for configuring the number of command bytes.
396 * Maximum value available for dividing the transmitted bytes into command
397 * bytes and data bytes is @ref NRF_SPIM_DCX_CNT_ALL_CMD - 1.
399 * causes all transmitted bytes to be marked as command bytes.
402 * @param[in] count Number of command bytes preceding the data bytes.
469 * @param[in] length Maximum number of data bytes to transmit.
[all …]
/nrf52832-nimble/nordic/nrfx/drivers/include/
H A Dnrfx_spim.h108 /**< This character is used when all bytes from the TX buffer are sent,
322 * @param cmd_length Length of the command bytes preceding the data
323 * bytes. The DCX line will be low during transmission
324 * of command bytes and high during transmission of data bytes.
325 * Maximum value available for dividing the transmitted bytes
326 * into command bytes and data bytes is @ref NRF_SPIM_DCX_CNT_ALL_CMD - 1.
328 * @c cmd_length parameter causes all transmitted bytes
329 * to be marked as command bytes.
/nrf52832-nimble/rt-thread/components/dfs/filesystems/uffs/src/inc/uffs/
H A Duffs_ecc.h53 #define MAX_ECC_LENGTH 24 //!< 2K page ecc length is 24 bytes.
57 * \return length of generated ECC. (3 bytes ECC per 256 data)
72 * generate 12 bit ecc for maximum 8 bytes data
77 * correct maximum 8 bytes data from 12 bits ECC

12345678910>>...23