📄 idea.l
字号:
.TH IDEA 1 "November 16, 1993".GN 2.SH NAMEidea \- encrypt and decrypt using IDEA.SH SYNOPSIS.TP.B idea[.B \-e|.B \-d] [.B \-r] [.B \-ecb|.B \-cbc\c.I N|.B \-cfb\c.I N|.B \-ofb\c.I N] .br(.B \-k.I keyString|.B \-K.I keyHexString) .br[.I inputFile[.I ouputFile] ].TP.B idea[.B \-h|.B \-H] [.B \-tan|.B \-abr] .br[.B \-k.I keyString|.B \-K.I keyHexString] .br[.I inputFile[ [.I ouputFile].I hashvalFile].SH DESCRIPTION.I Ideareads.I inputFileand writes the en/decrypted data to.I outputFileor writes the hash value to.I hashvalFile\c\&.If file name is not given in command line, .I idea uses standard input or output.If the input file name is given as '-', .I idea reads from the standard input..br.br.B IDEA (International Data Encryption Algorithm) is a block cipher developedby Dr. Xuejia Lai and Prof. Dr. J. L. Massey at the Swiss Federal Institute of Technology..SH OPTIONS.TP.B \-eEncrypt data. (default).TP.B \-d Decrypt data..TP.B \-r .I InputFile is a raster-file..TP.B \-k Key is specified with .I keyString\c\&..TP.B \-K Key and initial values are specified with .I keyHexString\c\&..TP.B \-h Compute a 128 bit hash value from the input data. Thehash value is written to .I hashvalFile(or standard output)..TP.B \-H Compute a 128 bit hash value from the input data. The input is copied to .I outputFile(or standard output) and the hash value is written to .I hashvalFile(or standard error)..TP.B Notation:.brN = interleave factor (1 is default).brz = 128 bit key.brx[i] = 64 bit plaintext block.bry[i] = 64 bit ciphertext block.brx[1]..x[L] = plaintext (last block is filled with zeros).brx[L+1] = length of plaintext in bits.bry[1]..y[L+1]= ciphertext.brIDEA(z, .) = encryption function.brIIDEA(z, .) = decryption function.brx = IIDEA(z, IDEA(z ,x)) .TP.B Encryption / Decrypion Modes:.TP.B \-ecb electronic code book mode.bry[i] = IDEA(z, x[i]).brx[i] = IIDEA(z, y[i]).TP.B \-cbc cipher block chaining mode (cbc1 is default).bry[i] = IDEA(z, x[i] ^ y[i-N]).brx[i] = IIDEA(z, y[i]) ^ y[i-N].TP.B \-cfb ciphertext feedback mode.bry[i] = x[i] ^ IDEA(z, y[i-N]).brx[i] = y[i] ^ IDEA(z, y[i-N]).TP.B \-ofb output feedback mode.brh[i] = IDEA(z, h[i-N]).bry[i] = x[i] ^ h[i].brx[i] = y[i] ^ h[i].TP.B Hash Functions:.brIf no key is given, .I idea uses the all zero key..brhash value = h[L+1] * 2**64 + g[L+1].brh[0] = z / 2**64.brg[0] = z % 2**64.TP.B \-tan tandem DM-scheme (default).brw = IDEA(g[i-1] * 2**64 + x[i], h[i-1]).brh[i] = h[i-1] ^ w.brg[i] = g[i-1] ^ IDEA(x[i] * 2**64 + w, g[i-1]).TP.B \-abr abreast DM-scheme.brh[i] = h[i-1] ^ IDEA(g[i-1] * 2**64 + x[i], h[i-1]).brg[i] = g[i-1] ^ IDEA(x[i] * 2**64 + h[i-1], ~ g[i-1]).TP.B Key Formats:.br.I keyHexString= { '0'..'9' | 'a'..'f' | 'A'..'F' | ':' } .br.I keyHexString= z:y[1-N]:y[2-N]:y[3-N]...br.I keyString= { '!'..'~' } = z.SH EXAMPLESTo encrypt and decrypt a file in cipher block chaining mode with an interleave factor of 8:.LP.RS.nf.ft Bidea -e -cbc8 -K 12345:67:89::ab:cDEf data data.cridea -d -cbc8 -K 12345:67:89::ab:cDef data.cr data.oridata and data.ori are identical.ft R.fi.RE.br.ne 10.LPTo compute the hash value with tandem DM-scheme:.LP.RS.nf.ft Bidea -h data.ft R.fi.RE.br.ne 10.LPTo compute the hash value and encrypt the data in one step:.LP.RS.nf.ft Bidea -Hk "k e y" data | idea -K 123:9a::eF - data.cr.ft R.fi.RE.SH PATENTIDEA is registered as the international patent WO 91/18459 "Device for Converting a Digital Block and the Use thereof". For commercial use of IDEA, one should contact.br.brASCOM TECH AG.brFreiburgstrasse 370.brCH-3018 Bern, Switzerland.SH AUTHORRichard De Moliner (demoliner@isi.ee.ethz.ch).brSignal and Information Processing Laboratory.brSwiss Federal Institute of Technology.brCH-8092 Zurich, Switzerland.SH BUGSThis program is at most as strong as IDEA itself. So, we urge the user to use this program only after he has assured himself that IDEA is strong enough AND he has read the source code of this program and its libraries AND he has compiled the program himself with a troyan-free compiler. WE DO NOT GUARANTEE THAT THIS PROGRAM IS A DECENT ENCRYPTION PROGRAM.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -