mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 13:53:55 -07:00
ADD: a TEA crypto algorithm implemention.
This commit is contained in:
parent
f74d0b89a2
commit
0a886a1d1b
3 changed files with 114 additions and 9 deletions
18
common/tea.h
Normal file
18
common/tea.h
Normal file
|
@ -0,0 +1,18 @@
|
|||
//-----------------------------------------------------------------------------
|
||||
// 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
|
||||
|
||||
#include "util.h"
|
||||
#include <stdint.h>
|
||||
#include <stddef.h>
|
||||
void tea_encrypt(uint8_t *v, uint8_t *key);
|
||||
void tea_decrypt(uint8_t *v, uint8_t *key);
|
||||
#endif /* __TEA_H */
|
Loading…
Add table
Add a link
Reference in a new issue