2015-12-09 21:57:16 +08:00
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
// This code is licensed to you under the terms of the GNU GPL, version 2 or,
|
|
|
|
// at your option, any later version. See the LICENSE.txt file for the text of
|
|
|
|
// the license.
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
// Generic TEA crypto code.
|
|
|
|
// ref: http://143.53.36.235:8080/source.htm#ansi
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
#ifndef __TEA_H
|
|
|
|
#define __TEA_H
|
|
|
|
|
2019-08-08 22:57:33 +08:00
|
|
|
#include "common.h"
|
|
|
|
|
2015-12-09 21:57:16 +08:00
|
|
|
void tea_encrypt(uint8_t *v, uint8_t *key);
|
|
|
|
void tea_decrypt(uint8_t *v, uint8_t *key);
|
2019-08-08 22:57:33 +08:00
|
|
|
|
2019-03-12 07:12:26 +08:00
|
|
|
#endif /* __TEA_H */
|