mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-03 23:47:08 +00:00
mesh: use rijndael from test folder
This commit is contained in:
parent
b673498b9a
commit
b7f1c2ae8d
1220
3rd-party/rijndael/rijndael.c
vendored
1220
3rd-party/rijndael/rijndael.c
vendored
File diff suppressed because it is too large
Load Diff
23
3rd-party/rijndael/rijndael.h
vendored
23
3rd-party/rijndael/rijndael.h
vendored
@ -1,23 +0,0 @@
|
||||
// =============================== 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
|
||||
|
@ -25,9 +25,9 @@ CFLAGS += -g -DUNIT_TEST \
|
||||
-I$(BTSTACK_ROOT)/platform/embedded \
|
||||
-I$(BTSTACK_ROOT)/platform/posix \
|
||||
-I$(BTSTACK_ROOT)/3rd-party/tinydir \
|
||||
-I$(BTSTACK_ROOT)/3rd-party/rijndael \
|
||||
-I$(BTSTACK_ROOT)/test/rijndael \
|
||||
|
||||
VPATH += ${BTSTACK_ROOT}/3rd-party/rijndael
|
||||
VPATH += ${BTSTACK_ROOT}/test/rijndael
|
||||
VPATH += ${BTSTACK_ROOT}/src/ble/mesh
|
||||
VPATH += ${BTSTACK_ROOT}/src/classic
|
||||
VPATH += ${BTSTACK_ROOT}/platform/posix
|
||||
|
Loading…
Reference in New Issue
Block a user