Elrond <[EMAIL PROTECTED]> writes:

> On Wed, Mar 22, 2006 at 10:11:05AM +0100, Simon Josefsson wrote:
> [...]
>> See src/shisa.c for an example.  You'll have to compute the salt
>> yourself, e.g. like this:
> [...]
>
> Yeah, I saw that code and wondered, that it should be put
> in a library.

Sounds like a good idea.

>> Given that deriving the salt is non-trivial, I agree that there should
>> be some helper API that does this step for you (and even does it
>> correctly as well, a proper principal parser exists in libshishi).
> [...]
>
> Do we have a chance of getting the (not yet correct) one
> into the library, so that the API is there and apps at
> least start using a consistent salt generation?

I've created shishi_key_from_name:

int
shishi_key_from_name (Shishi * handle,
                      int32_t type,
                      const char *name,
                      const char *password, size_t passwordlen,
                      const char *parameter, Shishi_key ** outkey)

Which even does this step correctly.  Shisa now use this API.

Thanks,
Simon


_______________________________________________
Help-shishi mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-shishi

Reply via email to