Datasheet 搜索 > 微控制器 > Microchip(微芯) > DSPIC30F4013-20E/ML 数据手册 > DSPIC30F4013-20E/ML 开发手册 4/18 页


¥ 67.211
DSPIC30F4013-20E/ML 开发手册 - Microchip(微芯)
制造商:
Microchip(微芯)
分类:
微控制器
封装:
QFN-44
描述:
dsPIC30 系列 2 kB RAM 48 kB 闪存 16位 数字信号控制器 - QFN-44
Pictures:
3D模型
符号图
焊盘图
引脚图
产品图
DSPIC30F4013-20E/ML数据手册
Page:
of 18 Go
若手册格式错乱,请下载阅览PDF原文件

AN1044
DS01044A-page 4 © 2006 Microchip Technology Inc.
Using the TDES Algorithm
This implementation of TDES is accessed through
three function calls: initTDES, TDES_encrypt and
TDES_decrypt. Their usage is discussed below.
initTDES
This function precalculates the subkey groups needed for TDES. By precalculating the subkeys, the encryption and
decryption routines can be significantly enhanced for speed.
Syntax
void initTDES(unsigned int *KeyLocation);
Parameters
KeyLocation: word-aligned starting address in RAM where the calculated subkeys will be stored. This requires a
384-byte (192-word) block of memory.
Return Values
None
Pre-Conditions
KeyLocation is either reserved or allocated memory of 384 bytes (192 words).
unsigned int Key[12] is loaded with the Encryption/Decryption Keys, where Key[0-3] is the first DES key,
Key[4-7] is the second key and Key[8-11] is the third key.
The same keys used to encrypt a block must also be used to decrypt it.
Side Effects
Values at reserved addresses are changed.
Example
...
unsigned int *KeyPointer;
KeyPointer = (unsigned int*)malloc(384);
if(KeyPointer != NULL)
{
initTDES(KeyPointer);
}
...
器件 Datasheet 文档搜索
AiEMA 数据库涵盖高达 72,405,303 个元件的数据手册,每天更新 5,000 多个 PDF 文件