Documented supported ciphers and hash functions.
[crypto.git] / TODO
1 TODO for 1.2 And Beyond
2 =======================
3
4 NOTE: Any item that doesn't have (***DONE) in it, isn't done yet.  The
5 (***TESTING NEEDED) means that the item has been done but not yet properly
6 tested.
7
8 NOTE: A TODO entry does not mean that it is ever going to be done.  Some
9 of the entries may be just ideas, good, bad or ugly.  If you want to work
10 on some of the TODO entries simply let us know about it by dropping a note
11 to silc-devel mailing list or appear on 'silc' channel on SILCNet.
12
13
14 Crypto Library, lib/silccrypt/
15 ==============================
16
17  o SilcHmac must be replaced with generic SilcMac so that we can add
18    others than just HMAC algorithms.  Backwards support (via #define's)
19    must be preserved.
20
21  o Change the DSA implementation to support FIPS186-3.  This means that
22    the q length is determined by the key length.  Also note that specific
23    hash functions must be used with different q lengths.
24
25  o AES CBC is missing proper alignment code (see silc_1_1_branch).
26
27  o The asynchronous functions to perhaps to _async to preserve backwards
28    compatibility with synchronous versions, and make easier to migrate
29    from 1.1 to 1.2.
30
31  o Do GCC vs ICC benchmarks of all key algorithms.
32
33  o silc_pkcs_public_key_alloc should accept also SILC_PKCS_ANY as argument
34    and try all supported PKCS until one succeeds (ala load_public_key).
35
36  o Add fingerprint to SilcSILCPublicKey and retrieval to silcpk.h, and
37    possibly to silcpkcs.h.
38
39    /* Return fingerprint of the `public_key'.  Returns also the algorithm
40       that has been used to make the fingerprint. */
41    const unsigned char *
42    silc_pkcs_get_fingerprint(SilcPublicKey public_key,
43                              const char **hash_algorithm,
44                              SilcUInt32 *fingerprint_len);
45
46  o Add DSA support to SILC public key.
47
48  o Global RNG must be changed to use SILC Global API.
49
50  o Add silc_crypto_init and silc_crypto_uninit.  The _init should take
51    SilcStack that will act as global memory pool for all of crypto
52    library.  It should not be necessary anymore to separately register
53    default ciphers, HMACs, etc, the _init would do that.  However, if
54    user after _init calls silc_pkcs_register, for example, it would take
55    preference over the default once, ie. user can always dictate the
56    order of algorithms. (***DONE)
57
58  o Change SILC PKCS API to asynchronous, so that accelerators can be used.
59    All PKCS routines should now take callbacks as argument and they should
60    be delivered to SilcPKCSObject and SilcPKCSAlgorithm too. (***DONE)
61
62  o Change PKCS Algorithm API to take SilcPKCSAlgorithm as argument to
63    encrypt, decrypt, sign and verify functions.  We may need to for exmaple
64    check the alg->hash, supported hash functions.  Maybe deliver it also
65    to all other functions in SilcPKCSAlgorithm to be consistent. (***DONE)
66
67  o Add DSS support. (***DONE)
68
69  o Implement the defined SilcDH API.  The definition is in
70    lib/silccrypt/silcdh.h.  Make sure it is asynchronous so that it can
71    be accelerated.  Also take into account that it could use elliptic
72    curves.
73
74  o All cipher, hash, hmac etc. allocation routines should take their name
75    in as const char * not const unsigned char *. (***DONE)
76
77  o Add ECDSA support.
78
79  o Add ECDH support.
80
81
82 SKR Library, lib/silcskr/
83 =========================
84
85  o Add fingerprint as search constraint.
86
87  o Add SSH support. (***DONE, TESTING NEEDED)
88
89  o Add OpenPGP support.  Adding, removing, fetching PGP keys.  (Keyring
90    support?)
91
92  o Add support for importing public keys from a directory and/or from a
93    file.  Add support for exporting the repository (different formats for
94    different key types?).
95
96  o Change the entire silc_skr_find API.  Remove SilcSKRFind and just simply
97    add the find constraints as variable argument list to silc_skr_find, eg:
98
99   silc_skr_find(skr, schedule, callback, context,
100                 SILC_SKR_FIND_PUBLIC_KEY, public_key,
101                 SILC_SKR_FIND_COUNTRY, "FI",
102                 SILC_SKR_FIND_USAGE, SILC_SKR_USAGE_AUTH,
103                 SILC_SKR_FIND_END);
104
105    NULL argument would be ignored and skipped.
106
107  o Add OR logical rule in addition of the current default AND, eg:
108
109   // Found key(s) MUST have this public key AND this country.
110   silc_skr_find(skr, schedule, callback, context,
111                 SILC_SKR_FIND_RULE_AND,
112                 SILC_SKR_FIND_PUBLIC_KEY, public_key,
113                 SILC_SKR_FIND_COUNTRY, "FI",
114                 SILC_SKR_FIND_END);
115
116   // Found key(s) MUST have this public key OR this key context
117   silc_skr_find(skr, schedule, callback, context,
118                 SILC_SKR_FIND_RULE_OR,
119                 SILC_SKR_FIND_PUBLIC_KEY, public_key,
120                 SILC_SKR_FIND_CONTEXT, key_context,
121                 SILC_SKR_FIND_END);
122
123  o SilcStack to SKR API.
124
125
126 SILC Accelerator Library
127 ========================
128
129  o Diffie-Hellman acceleration
130
131  o SILC Accelerator API.  Provides generic way to use different kind of
132    accelerators.  Basically implements SILC PKCS API so that SilcPublicKey
133    and SilcPrivateKey can be used but they call the accelerators.
134    (***DONE)
135
136  o Implement software accelerator.  It is a thread pool system where the
137    public key and private key operations are executed in threads.
138    (***DONE)
139
140  o Add SilcCipher support to SilcAccelerator and software accelerator.
141    Accelerate at least ciphers using CTR mode which can be done in
142    parallel.  Do it in producer/consumer fashion where threads generate
143    key stream and other thread(s) encrypt using the key stream. (***DONE)
144
145
146 lib/silcmath
147 ============
148
149  o Prime generation progress using callback instead of printing to
150    stdout.
151
152  o All utility functions should be made non-allocating ones.
153
154  o Import TFM.  We want TFM's speed but its memory requirements are
155    just too much.  By default it uses large pre-allocated tables which
156    will eat memory when there are thousands of public keys in system.
157    We probably want to change TFM. (***DONE)
158
159  o Add AND, OR and XOR support to TFM. (***DONE)
160
161  o The SILC MP API function must start returning indication of success
162    and failure of the operation. (***DONE)
163
164  o Do SilcStack support for silc_mp_init, silc_mp_init_size and other
165    any other MP function (including utility ones) that may allocate
166    memory. (***DONE)
167
168
169 lib/silcasn1
170 ============
171
172  o Negative integer encoding is missing, add it.
173
174  o SILC_ASN1_CHOICE should perhaps return an index what choice in the
175    choice list was found.  Currently it is left for caller to figure out
176    which choice was found. (***DONE)
177
178  o SILC_ASN1_NULL in decoding should return SilcBool whether or not
179    the NULL was present.  It's important when it's SILC_ASN1_OPTIONAL
180    and we need to know whether it was present or not. (***DONE)
181
182
183 lib/silcpgp
184 ===========
185
186  o OpenPGP certificate support, allowing the use of PGP public keys and
187    private keys.
188
189  o Signatures for data, public keys and private keys (Signature packet).
190
191  o Signature verification from public keys, private keys and other signed
192    data (Signature packet).
193
194  o Encryption and decryption support (Packet tags 8 and 18 most likely).
195
196  o Retrieval of User ID from public key and private key (Used ID packet
197    and User Attribute packet).
198
199  o Creation of OpenPGP key pairs.
200
201  o Trust packet handling (GNU PG compatible) from public and private keys.
202
203  o Add option that the signature format doesn't use the OpenPGP format
204    but whatever is the default in SILC crypto library.
205
206
207 lib/silcssh
208 ===========
209
210  o Add option that the signature format doesn't use the SSH2 protocol
211    but whatever is the default in SILC crypto library;
212    silc_ssh_private_key_set_signature_type, or something.
213
214  o SSH2 public key/private key support, allowing the use of SSH2 keys.
215    RFC 4716.  (***DONE)
216
217
218 lib/silcpkix
219 ============
220
221  o PKIX implementation