#include <types.h>
Go to the source code of this file.
Defines | |
#define | TEA_KEY_LEN 16 |
TEA key size. More... | |
#define | TEA_BLOCK_LEN 8 |
TEA block length. More... | |
#define | DELTA 0x9E3779B9 |
Magic value. (Golden number * 2^31). More... | |
#define | ROUNDS 32 |
Number of rounds. More... | |
Functions | |
void | tea_enc (iu32 *v, iu32 *k) |
TEA encryption function. More... | |
void | tea_dec (iu32 *v, iu32 *k) |
TEA decryption function. More... |
Documentation for TEA is available at http://www.cl.cam.ac.uk/ftp/users/djw3/tea.ps.
|
Magic value. (Golden number * 2^31).
|
|
Number of rounds.
|
|
TEA block length.
|
|
TEA key size.
|
|
TEA decryption function. This function decrypts v with k and returns the decrypted data in v.
|
|
TEA encryption function. This function encrypts v with k and returns the encrypted data in v.
|