[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gnutls-dev
Subject:    Re: crypto engine
From:       Nikos Mavrogiannopoulos <nmav () gnutls ! org>
Date:       2008-05-06 15:00:46
Message-ID: 4820729E.1010003 () gnutls ! org
[Download RAW message or body]

Nikos Mavrogiannopoulos wrote:

>>   do this instead:
>>
>> typedef int (*gnutls_rng_init_func)( void** ctx);
>> typedef int (*gnutls_rng_rnd_func) ( void* ctx, gnutls_rnd_level_t level, void* data, int datasize);
>> typedef void (*gnutls_rng_deinit_func)( void* ctx);
>>
>> int gnutls_crypto_rnd_register( int priority,
>>                                 gnutls_rng_init_func init,
>>                                 gnutls_rng_rnd_func rnd,
>>                                 gnutls_rng_deinit_func deinit);
> 
> I'm really thinking doing this. The only bad thing is that because of
> the many functions that need to be registered the API would be quite
> ugly, but anyway it would allow us to maintain a stable api.

And it is seems that the API is quite ugly and cumbersome to use (such
as a function with 24 arguments). I'll keep the current struct based API
but I'll added some versioning information in the registration functions
to avoid modifying a structure with different version.


_______________________________________________
Gnutls-devel mailing list
Gnutls-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/gnutls-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic