Debian Codegraph @

doc/crypto

raw
1 @(#)$eterna: crypto,v 1.7 2023/10/04 09:28:00 mrg Exp $
2
3 ircII crypto implementation notes.
4
5
6 the ircII code had traditionally contained a very simple (and thus
7 useless) cipher called "SED" for simple encrypted data. as it is
8 quite desirable to talk to others via a secure, private channel,
9 ircII now comes with a strong cipher, CAST-128. the /encrypt
10 command has been enhanced to take -cast or -sed switches to choose
11 which (the build process will pick a default, cast if it exists,
12 otherwise sed).
13
14 ircII sends encrypted messages via ctcp messages. this has several
15 features: it uses an existing ircII (and beyond) protocol to send
16 messages that may require special quoting due to full 8 bit data
17 output from the cryptography routines. see the "ctcp" paper in the
18 same directory this paper is for details on ctcp quoting.
19
20
21
22 cipher notes: cast-128
23
24 the cast 128 specification takes 64 bit at a time to encrypt, which
25 requires that strings be padded to 64bit boundaries. to avoid many
26 problems with "electronic codebook" mode, this cipher is implemented
27 with "cyclic block chaining" mode. see "applied cryptography" by
28 bruce schenier for details on cipher modes.
29
30
31 cipher notes: rijndael
32
33 this cipher isn't working yet, sorry.
34
35
36 future directions:
37
38 it's likely that in the future, ircii will use a "CTCP CRYPTO", that
39 may contain various information after this, before the data.
40
41 we'll also probably end up using openssl crypto to get all their
42 routines and ditching any private copies.