Select one of the symbols to view example projects that use it.
 
Outline
#define H__RIJNDAEL
#include <stdint.h>
rijndaelSetupEncrypt(uint32_t *, const uint8_t *, int);
rijndaelSetupDecrypt(uint32_t *, const uint8_t *, int);
rijndaelEncrypt(const uint32_t *, int, const uint8_t *, uint8_t *);
rijndaelDecrypt(const uint32_t *, int, const uint8_t *, uint8_t *);
#define KEYBITS
#define KEYLENGTH
#define RKLENGTH
#define NROUNDS
Files
loading...
SourceVuRaspberry Pi Pico SDK and ExamplesBluetooth LE Stack3rd-party/rijndael/rijndael.h
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
// =============================== RIJNDAEL.H =============================== // from http://www.efgh.com/software/rijndael.htm, // License: Public Domain, // Author: Philip J. Erdelsky #ifndef H__RIJNDAEL #define H__RIJNDAEL #include <stdint.h> int rijndaelSetupEncrypt(uint32_t *rk, const uint8_t *key, int keybits); int rijndaelSetupDecrypt(uint32_t *rk, const uint8_t *key, int keybits); void rijndaelEncrypt(const uint32_t *rk, int nrounds, const uint8_t plaintext[16], uint8_t ciphertext[16]); void rijndaelDecrypt(const uint32_t *rk, int nrounds, const uint8_t ciphertext[16], uint8_t plaintext[16]); #define KEYBITS 128 #define KEYLENGTH(keybits) ((keybits)/8) #define RKLENGTH(keybits) ((keybits)/8+28) #define NROUNDS(keybits) ((keybits)/32+6) /* ... */ #endif
Details