|
|
1.1 root 1: This is some source code that does high-speed IDEA CFB encryption on
2: an 80x86. The functions are not complete, in that they don't handle
3: blocks that are not a multiple of 8 bytes long, but it's a start, and
4: is included here for anybody to experiment with. It is as efficient
5: as I could make it. If USELODS is not set during assembly, a version
6: that uses the minimum number of instructions possible is produced.
7: USELODS, however, seems to be faster. I have not tried it on a '486
8: yet.
9:
10: Test.c is a test driver that times the code. For real use, you'd need
11: to add key-unpacking code and code to handle odd-sized buffers. The code
12: here is designed to be the middle part in a loop for encrypting an
13: arbitrary number of bytes:
14:
15: xor leading odd bytes
16: IDEA encrypt
17: (xor 8 bytes and IDEA encrypt) as often as necessary
18: xor trailing odd bytes
19:
20: It will probably become part of PGP some day.
21: --
22: -Colin <[email protected]>
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.