11 #define BLAKE3_KEY_LEN 32
12 #define BLAKE3_CHUNK_LEN 1024
20 DERIVE_KEY_CONTEXT = 1 << 5,
21 DERIVE_KEY_MATERIAL = 1 << 6,
26 uint32_t input_cv[BLAKE3_NB_OF_WORDS];
28 uint8_t block[BLAKE3_BLOCK_LEN];
31 } cx_blake3_state_out_t;
34 static const uint32_t IV[8] = {0x6A09E667UL,
44 static const uint8_t MSG_SCHEDULE[7][16] = {
45 {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15},
46 {2, 6, 3, 10, 7, 0, 4, 13, 1, 11, 12, 5, 9, 14, 15, 8 },
47 {3, 4, 10, 12, 13, 2, 7, 14, 6, 5, 9, 0, 11, 15, 8, 1 },
48 {10, 7, 12, 9, 14, 3, 13, 15, 4, 0, 11, 2, 5, 8, 1, 6 },
49 {12, 13, 9, 11, 15, 10, 14, 8, 7, 2, 5, 3, 0, 1, 6, 4 },
50 {9, 14, 11, 5, 8, 12, 15, 1, 13, 3, 0, 10, 2, 6, 4, 7 },
51 {11, 15, 5, 0, 1, 9, 8, 6, 14, 10, 2, 12, 3, 4, 7, 13}