找回密码
 注册
搜索
查看: 927|回复: 3

[讨论] 如何加密解密

[复制链接]
发表于 2007-4-16 11:13:52 | 显示全部楼层 |阅读模式
下面是我们代理的NEOWINE的加密芯片的DATASHEET,有需要详细原理说明的,请联系我LUVKYHJ@HOTMAIL.COM
1.   Features
l         ALPU
Ø         Algorithm License Permission Unit
l         Security
Ø         Supply Random Programmable Encoder Key
Ø         Encoder Key Read Protect
Ø         The Original Encryption Algorithm
²       64 bit Encryption
Ø         The Preventive Measure of Pirate Edition System
²       H/W, S/W Lock Device
Ø         Supply Unique Seed Key
l         Operating
Ø         3.3V Operation
Ø         Input Drive Clock, up to 27 MHz
Ø         Simple and Easy Program Interface
²       IIC Interface up to 400 KHz
²       Pave the way for Development of Product
Ø         Supply the Bypass Mode and Source Code for H/W and S/W Test
Ø         Apply to Simple/Complex 2 Step Encryption Algorithm
²       Simple Encryption : Supply Hole Source Code
²       Complex Encryption : Supply Library File such as Binary Code
l         Additional Function
Ø         Include POR(Power On Reset)
l         Typical Application
Ø         DAB/DMB/DVB Receiver
Ø         Mobile Phone, MP3 Player, PMP
Ø         STB/DVR/PVR/DVDP
Ø         Etc. (Most of Electronic System Using u-Processor )


2.   Overview
l         Global competition among the companies
Ø         Necessity of using ALPU-05
²       need the long run of the product to build up the profitability of the high profit design product
²       need pacesetting and unique products in the market as the result from global competition
²       diminish the creative development motivation as the result from the product copy.
²       need a market driven by the chip designer
²       Purchase of the unique products despite of the high price
ð      make mandatory to use authentic chips
l         Paradigm shift
Ø         Possible to shift from the big enterprise market to the small and medium sized technology- driven enterprise market.
Ø         Possible to shift to the profitability driven market by the loyalty collection of the enterprise with high-tech skills
Ø         Possible to shift to develop the subdivided products such as solution development, module, set, marketing, funding.
l         Technical Issue
Ø         The operation principle of ALPU-05
²       Mutual interface for the encrypted data
Ø         Y(n) = X(n) * C(n) * Y(n-1)
²       X(n) : Supplied Random Input Data
²       C(n) : Encryption Algorithm and Parameter
²       Y(n-1) : Previous result value
Ø         System operation is based on the output of the comparison between Y(n) the output of ALPU-05 with Y’(n) the output of CPU calculation.







3.   Pin Description
< Table 1 ALPU-05 Pin Description>

l         SCL/SDA : I2C Clock and Data, Support up to 400KHz Data Rate
l         CLK : ALPU-05 Master Clock Input, Detection of Correct I2C Data
l         VCC : Input Power Resource

4.   Functional Block Diagram

<Figure 1 ALPU-05 Functional Block Diagram>

l         Communication to CPU
&Oslash;         I2C Communication Using SCL/SDA
&Oslash;         Up to 400 KHz Data Rate
l         ALPU-05 Master Clock
&Oslash;         f = I2C Data Rate(if 400 KHz) * 4 Clock = 1.2MHz
&sup2;       ALPU-05 Detect Stable Data in 4 Master Clock
&Oslash;         Master Clock Supply Must be Higher than f, and up to 27 MHz

5.   I2C Data Packet Structure

<Figure 2 ALPU-05 I2C Data Packet>

l         S : I2C Start
l         Device Address : ALPU-05 Device Address 7 bit
l         W/R : ‘High’ then Read, ‘Low’ then Write
l         Algorithm : Internal Encryption Algorithm
&Oslash;         0x00 : Bypass Mode for Test / Feedback Enable Set Mode
&Oslash;         Others : Encryption Algorithm / Parameter
l         A : Acknowledge
l         Data4 ~ Data0 : 5 Byte Random Input Data
l         P : IIC Stop

<Figure 3 ALPU-05 I2C Timing>



6.   Operation Flow Chart

<Figure 4 ALPU-05 Operation Flow Chart>


l         [1] Initialization
&Oslash;         When power is turned on the internal registers of CPU and ALPU-05 are initialized.
l         [2] Encryption Algorithm Generation
&Oslash;         Generate Algorithm Parameter for ALPU-05
&Oslash;         Bypass/Encryption, Simple/Complex
&Oslash;         Refer to 7.Internal Registers for the more details.
l         [3] Encryption Algorithm Generation
&Oslash;         Feedback Enable/Disable
&Oslash;         Refer to 7.Internal Registers for the more details.
l         [4] 5 Byte Data Generation (Data4 ~ Data0)
&Oslash;         I2C Data Packet structure of ALPU-05 is fixed by 5 Bytes.
&Oslash;         Generate random data (Data4 ~ Data 0) in the general cases
l         [5] Algorithm & Data Transmission (Data4 ~ Data0)
&Oslash;         Transfer the generated algorithm and data to ALPU-05 through I2C
Communication
&Oslash;         Refer to I2C Timing of 5. Data Packet Structure
l         [6] Encryption (Library)
&Oslash;         Call the function in the library provided by Neowine and encrypt it.
&Oslash;         Data4 ~ Data0 à (Library) à Data’’4 ~ Data’’0
l         [7] Wait Mode
&Oslash;         Wait until CPU access after the initialization of ALPU-05
l         [8] Algorithm & Data Reception (Data4 ~ Data0)
&Oslash;         Receive the algorithm and data through I2C Communication
l         [9] Detect Algorithm
Extract Bypass/Encryption, Simple/Complex, Feedback Enable/Disable and etc from the received algorithm
l         [10] Encryption (Data’4 ~ Data’0)
&Oslash;         Encrypt the data applying the unique Neowine algorithm
l         [11] Data Transmission (Data’4 ~ Data’0)
&Oslash;         convert to stand by mode after transferring the encrypted data to CPU by the CPU control.
l         [12] Data Reception
&Oslash;         Receive the data from ALPU-05 through I2C Communication
l         [13] (Data’ == Data’’) ?
&Oslash;         Compare of the Data’ from ALPU-05 with Data” from the library
&sup2;       [14] system Operation
ü         When the result is same it operates well.
&sup2;        [15] System Halt
ü         when the result is different the system will not work.

7.   Internal Registers

< Figure 5 ALPU-05 Register Control>

l         Algorithm
&Oslash;         Algorithm[7]
&sup2;       0 : Bypass Mode
&sup2;       1 : Encryption Mode
&Oslash;         Algorithm[6:4]
&sup2;       Encryption Parameter #1
&Oslash;         Algorithm[3]
&sup2;       0 : Simple Encryption Mode
&sup2;       1 : Complex Encryption Mode
&Oslash;         Algorithm[2:0]
&sup2;       Encryption Parameter #2
l         Feedback Enable
&Oslash;         Condition
&sup2;       Algorithm == 0x00
&Oslash;         Data4[3]
&sup2;       1 : Feedback Enable
&sup2;       0 : Feedback Disable



8.   Application Circuit

<Figure 6 ALPU-05 Typical Application Circuit>

l         R1/R2 : Full-up Resister, 4.7 K
l         C1 : Bypass Capacitor, 0.1uF
l         SDA/SCL : I2C Communication Data/Clock
l         CLK : External Crystal or Oscillator Output



9.   Electrical Specifications
l         Electrical Characteristics and Operating Condition
(  VCC = 3.3V ± 0.3V ; TA = Ambient = 25 °C )


ParameterConditionMinTypMaxUnit
Core Digital Voltage (VCC) 3.03.33.6V
IO Digital Voltage(VCCQ) 3.03.33.6V
Operating TemperatureMeasured at Junction-40 80°C

<Table 2 Electrical Characteristics>
l         I/O Parameters


PINParameterDefinitionConditionMinTypMaxUnit
All OutputsVOHOutput High Voltage 2.4  V
VOLOutput Low Voltage   0.4V
IOHOutput High CurrentVCC = 2.727750 uA
IOLOutput Low CurrentVCC = 2.727750 uA
All InputsVIHInput High VoltageVCC = 2.7 ~ 3.62  V
VILInput Low VoltageVCC = 2.7 ~ 3.6  0.8V
CLKINCLK27Master ClockAbsolute Minimum1 27MHz

<Table 3 ALPU-05 I/O Parameters>



10.              Dimensional Specifications : SOT-25
<Figure 7 ALPU-05 Dimensional Specifications>



11.              How to provide Library Services
l         Requirements
&Oslash;         Neowine
&sup2;       C source Code (Bypass Code) for ALPU I2C Interface
&Oslash;         ALPU user company
&sup2;       development environment (compiler, the kind of CPU and etc)
&sup2;       Select CPU Port for I2C interface
l         Make ALPU Library
&Oslash;         refer to I2C Interface Code (Bypass Code) provided by Neowine, ALPU-05 User Company allocates the ports that is fixed for the H/W. keep using the variable’s name same if possible
&sup2;       performs Bypass Test
&eth;      When the algorithm value is 0x00, the written data returns without encryption.
&sup2;       After the conversion, send the converted code to Neowine
&Oslash;         If Neowine does not have the compiler that is used in ALPU user company, then Neowine would lend the complier.
&sup2;       If Neowine can not lend the compiler Neowine visits the ALPU-05 user company and make the library and delete the source code that is
&Oslash;         After receiving the converted code, Neowine synthesizes the conversion code with the encryption code using the compiler provided by the ALPU-05 user company and makes the library.
&Oslash;         Neowine provides the synthesized library file to the ALPU user company
l         How to use ALPU Library
&Oslash;         After including the library provided by Neowine to main program the ALPU user company uses the execution function in the library
&Oslash;         The function in the library uses Input variables and output variables as the provided manual explanation
&Oslash;         Library could be inserted in different positions for the purpose of the use as 9. Application description in the datasheet













这是我们代理的NEOWINE加密芯片,下面是DATASHEET ,有需要详细原理说的请联系我.LUVKYHJ@HOTMAIL.COM

1.   Features
l         ALPU
&Oslash;         Algorithm License Permission Unit
l         Security
&Oslash;         Supply Random Programmable Encoder Key
&Oslash;         Encoder Key Read Protect
&Oslash;         The Original Encryption Algorithm
&sup2;       64 bit Encryption
&Oslash;         The Preventive Measure of Pirate Edition System
&sup2;       H/W, S/W Lock Device
&Oslash;         Supply Unique Seed Key
l         Operating
&Oslash;         3.3V Operation
&Oslash;         Input Drive Clock, up to 27 MHz
&Oslash;         Simple and Easy Program Interface
&sup2;       IIC Interface up to 400 KHz
&sup2;       Pave the way for Development of Product
&Oslash;         Supply the Bypass Mode and Source Code for H/W and S/W Test
&Oslash;         Apply to Simple/Complex 2 Step Encryption Algorithm
&sup2;       Simple Encryption : Supply Hole Source Code
&sup2;       Complex Encryption : Supply Library File such as Binary Code
l         Additional Function
&Oslash;         Include POR(Power On Reset)
l         Typical Application
&Oslash;         DAB/DMB/DVB Receiver
&Oslash;         Mobile Phone, MP3 Player, PMP
&Oslash;         STB/DVR/PVR/DVDP
&Oslash;         Etc. (Most of Electronic System Using u-Processor )


2.   Overview
l         Global competition among the companies
&Oslash;         Necessity of using ALPU-05
&sup2;       need the long run of the product to build up the profitability of the high profit design product
&sup2;       need pacesetting and unique products in the market as the result from global competition
&sup2;       diminish the creative development motivation as the result from the product copy.
&sup2;       need a market driven by the chip designer
&sup2;       Purchase of the unique products despite of the high price
&eth;      make mandatory to use authentic chips
l         Paradigm shift
&Oslash;         Possible to shift from the big enterprise market to the small and medium sized technology- driven enterprise market.
&Oslash;         Possible to shift to the profitability driven market by the loyalty collection of the enterprise with high-tech skills
&Oslash;         Possible to shift to develop the subdivided products such as solution development, module, set, marketing, funding.
l         Technical Issue
&Oslash;         The operation principle of ALPU-05
&sup2;       Mutual interface for the encrypted data
&Oslash;         Y(n) = X(n) * C(n) * Y(n-1)
&sup2;       X(n) : Supplied Random Input Data
&sup2;       C(n) : Encryption Algorithm and Parameter
&sup2;       Y(n-1) : Previous result value
&Oslash;         System operation is based on the output of the comparison between Y(n) the output of ALPU-05 with Y’(n) the output of CPU calculation.







3.   Pin Description
< Table 1 ALPU-05 Pin Description>

l         SCL/SDA : I2C Clock and Data, Support up to 400KHz Data Rate
l         CLK : ALPU-05 Master Clock Input, Detection of Correct I2C Data
l         VCC : Input Power Resource

4.   Functional Block Diagram

<Figure 1 ALPU-05 Functional Block Diagram>

l         Communication to CPU
&Oslash;         I2C Communication Using SCL/SDA
&Oslash;         Up to 400 KHz Data Rate
l         ALPU-05 Master Clock
&Oslash;         f = I2C Data Rate(if 400 KHz) * 4 Clock = 1.2MHz
&sup2;       ALPU-05 Detect Stable Data in 4 Master Clock
&Oslash;         Master Clock Supply Must be Higher than f, and up to 27 MHz

5.   I2C Data Packet Structure

<Figure 2 ALPU-05 I2C Data Packet>

l         S : I2C Start
l         Device Address : ALPU-05 Device Address 7 bit
l         W/R : ‘High’ then Read, ‘Low’ then Write
l         Algorithm : Internal Encryption Algorithm
&Oslash;         0x00 : Bypass Mode for Test / Feedback Enable Set Mode
&Oslash;         Others : Encryption Algorithm / Parameter
l         A : Acknowledge
l         Data4 ~ Data0 : 5 Byte Random Input Data
l         P : IIC Stop

<Figure 3 ALPU-05 I2C Timing>



6.   Operation Flow Chart

<Figure 4 ALPU-05 Operation Flow Chart>


l         [1] Initialization
&Oslash;         When power is turned on the internal registers of CPU and ALPU-05 are initialized.
l         [2] Encryption Algorithm Generation
&Oslash;         Generate Algorithm Parameter for ALPU-05
&Oslash;         Bypass/Encryption, Simple/Complex
&Oslash;         Refer to 7.Internal Registers for the more details.
l         [3] Encryption Algorithm Generation
&Oslash;         Feedback Enable/Disable
&Oslash;         Refer to 7.Internal Registers for the more details.
l         [4] 5 Byte Data Generation (Data4 ~ Data0)
&Oslash;         I2C Data Packet structure of ALPU-05 is fixed by 5 Bytes.
&Oslash;         Generate random data (Data4 ~ Data 0) in the general cases
l         [5] Algorithm & Data Transmission (Data4 ~ Data0)
&Oslash;         Transfer the generated algorithm and data to ALPU-05 through I2C
Communication
&Oslash;         Refer to I2C Timing of 5. Data Packet Structure
l         [6] Encryption (Library)
&Oslash;         Call the function in the library provided by Neowine and encrypt it.
&Oslash;         Data4 ~ Data0 à (Library) à Data’’4 ~ Data’’0
l         [7] Wait Mode
&Oslash;         Wait until CPU access after the initialization of ALPU-05
l         [8] Algorithm & Data Reception (Data4 ~ Data0)
&Oslash;         Receive the algorithm and data through I2C Communication
l         [9] Detect Algorithm
Extract Bypass/Encryption, Simple/Complex, Feedback Enable/Disable and etc from the received algorithm
l         [10] Encryption (Data’4 ~ Data’0)
&Oslash;         Encrypt the data applying the unique Neowine algorithm
l         [11] Data Transmission (Data’4 ~ Data’0)
&Oslash;         convert to stand by mode after transferring the encrypted data to CPU by the CPU control.
l         [12] Data Reception
&Oslash;         Receive the data from ALPU-05 through I2C Communication
l         [13] (Data’ == Data’’) ?
&Oslash;         Compare of the Data’ from ALPU-05 with Data” from the library
&sup2;       [14] system Operation
ü         When the result is same it operates well.
&sup2;        [15] System Halt
ü         when the result is different the system will not work.

7.   Internal Registers

< Figure 5 ALPU-05 Register Control>

l         Algorithm
&Oslash;         Algorithm[7]
&sup2;       0 : Bypass Mode
&sup2;       1 : Encryption Mode
&Oslash;         Algorithm[6:4]
&sup2;       Encryption Parameter #1
&Oslash;         Algorithm[3]
&sup2;       0 : Simple Encryption Mode
&sup2;       1 : Complex Encryption Mode
&Oslash;         Algorithm[2:0]
&sup2;       Encryption Parameter #2
l         Feedback Enable
&Oslash;         Condition
&sup2;       Algorithm == 0x00
&Oslash;         Data4[3]
&sup2;       1 : Feedback Enable
&sup2;       0 : Feedback Disable



8.   Application Circuit

<Figure 6 ALPU-05 Typical Application Circuit>

l         R1/R2 : Full-up Resister, 4.7 K
l         C1 : Bypass Capacitor, 0.1uF
l         SDA/SCL : I2C Communication Data/Clock
l         CLK : External Crystal or Oscillator Output



9.   Electrical Specifications
l         Electrical Characteristics and Operating Condition
(  VCC = 3.3V ± 0.3V ; TA = Ambient = 25 °C )


ParameterConditionMinTypMaxUnit
Core Digital Voltage (VCC) 3.03.33.6V
IO Digital Voltage(VCCQ) 3.03.33.6V
Operating TemperatureMeasured at Junction-40 80°C

<Table 2 Electrical Characteristics>
l         I/O Parameters


PINParameterDefinitionConditionMinTypMaxUnit
All OutputsVOHOutput High Voltage 2.4  V
VOLOutput Low Voltage   0.4V
IOHOutput High CurrentVCC = 2.727750 uA
IOLOutput Low CurrentVCC = 2.727750 uA
All InputsVIHInput High VoltageVCC = 2.7 ~ 3.62  V
VILInput Low VoltageVCC = 2.7 ~ 3.6  0.8V
CLKINCLK27Master ClockAbsolute Minimum1 27MHz

<Table 3 ALPU-05 I/O Parameters>



10.              Dimensional Specifications : SOT-25
<Figure 7 ALPU-05 Dimensional Specifications>



11.              How to provide Library Services
l         Requirements
&Oslash;         Neowine
&sup2;       C source Code (Bypass Code) for ALPU I2C Interface
&Oslash;         ALPU user company
&sup2;       development environment (compiler, the kind of CPU and etc)
&sup2;       Select CPU Port for I2C interface
l         Make ALPU Library
&Oslash;         refer to I2C Interface Code (Bypass Code) provided by Neowine, ALPU-05 User Company allocates the ports that is fixed for the H/W. keep using the variable’s name same if possible
&sup2;       performs Bypass Test
&eth;      When the algorithm value is 0x00, the written data returns without encryption.
&sup2;       After the conversion, send the converted code to Neowine
&Oslash;         If Neowine does not have the compiler that is used in ALPU user company, then Neowine would lend the complier.
&sup2;       If Neowine can not lend the compiler Neowine visits the ALPU-05 user company and make the library and delete the source code that is
&Oslash;         After receiving the converted code, Neowine synthesizes the conversion code with the encryption code using the compiler provided by the ALPU-05 user company and makes the library.
&Oslash;         Neowine provides the synthesized library file to the ALPU user company
l         How to use ALPU Library
&Oslash;         After including the library provided by Neowine to main program the ALPU user company uses the execution function in the library
&Oslash;         The function in the library uses Input variables and output variables as the provided manual explanation
&Oslash;         Library could be inserted in different positions for the purpose of the use as 9. Application description in the datasheet






































【文件名】:07416@52RD_电子工程专辑20060816.rar
【格 式】:rar
【大 小】:119K
【简 介】:
【目 录】:


本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

×
发表于 2009-12-20 10:19:47 | 显示全部楼层
楼主想干吗
点评回复

使用道具 举报

发表于 2009-12-22 15:40:42 | 显示全部楼层
同感!想干嘛![em01]
点评回复

使用道具 举报

发表于 2009-12-22 16:35:54 | 显示全部楼层
怎么这么奇怪?不会是陷阱、病毒、木马什么的吧???
[em10]
[em11]
点评回复

使用道具 举报

高级模式
B Color Image Link Quote Code Smilies

本版积分规则

Archiver|手机版|小黑屋|52RD我爱研发网 ( 沪ICP备2022007804号-2 )

GMT+8, 2025-1-23 03:27 , Processed in 0.068033 second(s), 17 queries , Gzip On.

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表