?? tea.h
字號:
// The TEA encryption algorithm was invented by
// David Wheeler & Roger Needham at Cambridge
// University Computer Lab
// http://www.cl.cam.ac.uk/ftp/papers/djw-rmn/djw-rmn-tea.html (1994)
// http://www.cl.cam.ac.uk/ftp/users/djw3/xtea.ps (1997)
// http://www.cl.cam.ac.uk/ftp/users/djw3/xxtea.ps (1998)
//
// This code was originally written in JavaScript by
// Chris Veness at Movable Type Ltd
// http://www.movable-type.co.uk
//
// It was adapted to C++ by Andreas Jonsson
// http://www.angelcode.com
#ifndef TEA_H
#define TEA_H
typedef unsigned int UINT;
// The length of the data should be at least 8
// bytes, else the algorithm will not work.
// The key should be 128 bit, or 16 bytes
// The memory pointed to by data will be modified by
// the functions.
int TeaEncrypt(UINT *data, UINT dataLen, UINT *key);
int TeaDecrypt(UINT *data, UINT dataLen, UINT *key);
#endif
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -