【文章內(nèi)容簡(jiǎn)介】
序?yàn)椋? LE0=A+S[0] RE0=B+S[1] for i=1 to r do LEi= ((LEi1⊕REi1)REi1)+S[2i]。 REi=((REi1 ⊕LEi)LEi)+S[2i+1]。解密算法n 對(duì)兩個(gè) 1字變量 LDr和 RDr。 用變量 LDi和 RDi從 r到 1做: for i=r down to 1 do RDi1=((RDiS[2*i+1]LDi) ⊕LDi)。 LDi1=((LDiS[2*i]RDi1) ⊕RDi1)。 B=RD0S[1]。 A=LD0S[0].n RC5操作模式[RFC2040] Baldwin, R.,and Rivest,R. The RC5,RC5CBC,RC5CBCPad, and RC5CTS algorithms. P96~96CAST128加密算法n RFC 2144[97]定義n 密鑰 48128位, 8位增量n 16輪 Feistel分組結(jié)構(gòu)n 64位分組n 特殊處:n 每一步兩個(gè)子密鑰n 每一步的 F不同CAST128算法之討論n SBox是固定的,但設(shè)計(jì)時(shí)盡量保證了非線性。設(shè)計(jì)者認(rèn)為,選擇一個(gè)好的非線性 SBOX比隨機(jī)的 SBOX更可取。n 子密鑰的產(chǎn)生過程采用了與其他算法不同的產(chǎn)生法來加強(qiáng)其強(qiáng)度。目標(biāo)是對(duì)抗已知明文攻擊。 Blowfish和 RC5算法使用了不同的技術(shù)來保證這一點(diǎn)。n F函數(shù)具有好的 confusion、 diffusion等特性。子密鑰相關(guān)、輪數(shù)相關(guān)增加了強(qiáng)度。RC2加密算法n 設(shè)計(jì)者 Ron Rivestn 分組長(zhǎng)度 64位,密鑰長(zhǎng)度 8到 1024位n 適合于在 16位微處理器上實(shí)現(xiàn)n RC2在 S/MIME中用到的密鑰為 6128位不等RC4流加密算法n 設(shè)計(jì)者 Ron Rivestn 工作方式 OFBn 算法特點(diǎn):n 簡(jiǎn)單、快速n 隨機(jī)序列的產(chǎn)生,用到 8*8的 S盒AES介紹n 1997年 NIST宣布征集 AES算法。n 要求 : 與三重 DES比,要快且至少一樣安全,分組 128位 ,密鑰 128/192/256位。n 1998年確定第一輪 15個(gè)候選者n 1999年確定第二輪五個(gè)候選者 : MARS, RC6, Rijndael, Serpent, Twofish。n 2022年底 Rijndael勝出。Rijndael簡(jiǎn)介n 加密、解密相似但不對(duì)稱n 不屬于 Feistel結(jié)構(gòu)n 支持 128/32=Nb數(shù)據(jù)塊大小n 支持 128/192/256(/32=Nk)密鑰長(zhǎng)度n 有較好的數(shù)學(xué)理論作為基礎(chǔ)n 結(jié)構(gòu)簡(jiǎn)單、速度快NIST對(duì) Rijndael的評(píng)估( 2022)n General Security Rijndael has no known security attacks. Rijndael uses Sboxes as nonlinear appears to have an adequate security margin, but has received some criticism suggesting that its mathematical structure may lead to attacks. On the other hand, the simple structure may have facilitated its security analysis during the timeframe of the AES development process.NIST對(duì) Rijndael的評(píng)估( 2022)n Software Implementations Rijndael performs encryption and decryption very well across a variety of platforms, including 8bit and 64bit platforms, and DSPs. However, there is a decrease in performance with the higher key sizes because of the increased number of rounds that are p