
19 Mar
2009
19 Mar
'09
4:49 p.m.
Kasra wrote:
My proposal is to have a crypto library that provides high-level facilities. The library has different encapsulation layers. Within the low-level (internal) there are algorithms that share the same concept i.e.
class block_cipher_type: + setkey(const void* key, size_type key_size) -> void; + encrypt(void* output, const void* input) -> const void; + decrypt(void* output, const void* input) -> const void;
Why the C-like interface? Why not work with iterator, or better, ranges?