scripts.txt

来自「算法源代码比较经典」· 文本 代码 · 共 73 行

TXT
73
字号
                            RDEMO Test Scripts                                Version 1.0                   Copyright (C) J.S.A.Kapp 1991 - 1995.REDEMO comes with several test scripts that test RSAEUROcryptographic operations of various key sizes.The test scripts are: '508.in', '512a.in', '767.in' and'1024.in'. The scripts consist of REDEMO commands. To exercisea script, redirect REDEMO's input to the script. For example, ona UNIX or DOS system you would run the command     redemo < 508.into exercise the test script '508.in'. The scripts work with a number of input files. Each script alsoproduces output files that you can compare against referencefiles supplied with REDEMO. Both the scripts and the referencefiles are stored in the 'scripts' subdirectory.See the 'redemo.txt' documentation file in the 'doc' subdirectoryfor more information on the demonstration program.'508.in' script     1.   Generates a 508-bit RSA key pair, writing the key to          '508.key'.     2.   Signs 'file' with private key and MD5 message-digest          algorithm, writing signature to '508-5.sig'.     3.   Verifies signature.     4.   Seals 'file' in envelope with public key and DES-CBC          data encryption algorithm, writing encrypted file to          '508-1.env', encrypted data encryption key to          '508-1.key', and initialization vector to '508-1.iv'.     5.   Opens envelope and displays result: should be "Envelope          opened."'512a.in' script     1.   Signs 'file' with first built-in private key and MD2          message-digest algorithm, writing signature to          '512a2.sig'.     2.   Verifies signature.     3.   Repeats (1) and (2) with MD5. Signature in '512a5.sig'.     4.   Seals 'file' in envelope with first built-in public key          and DES-CBC data encryption algorithm, writing          encrypted file to '512a1.env', encrypted data          encryption key to '512a1.key', and initialization          vector to '512a1.iv'.     5.   Opens envelope and displays result.     6.   Repeats (4) and (5) with DESX-CBC, DES-EDE2-CBC, and          DES-EDE3-CBC. Files: '512ax.*', '512a2.*', '512a3.*'.     7.   Repeats (3-5) on 'bigfile'. Result should be "Envelope          opened \ This is a big file", repeated a few times.'767.in' and '1024.in'     Same as '508.in', except that '508' becomes '767' or '1024';     new key pairs are generated in both cases.

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?