Hi Lampa,

On Wed, Nov 19, 2008 at 02:09:16AM -0800, lampa wrote:
> At first, I really thank you very much!

You're welcome.

> Now, the question is that what string exactly is hashed by the above code.

The string "lampa\x00exit\n".

> Because the hash value of the String "lampa" is
> "34f188585ef3c4c5ab532b0f1508a54ee3d609db",which is defferent from the test
> demo.
> Whether I must add some control char to the String ?

Yes, a 0-byte, 'exit' and "\n". I have no idea _why_ OpenCA makes this
part of the hash, though ...

Cheers,
  Alex
-- 
Dipl.-Math. Alexander Klink | IT-Security Engineer |    [EMAIL PROTECTED]
 mobile: +49 (0)178 2121703 |          Cynops GmbH | http://www.cynops.de
----------------------------+----------------------+---------------------
      HRB 7833, Amtsgericht | USt-Id: DE 213094986 |     Geschäftsführer:
     Bad Homburg v. d. Höhe |                      |      Martin Bartosch

Attachment: smime.p7s
Description: S/MIME cryptographic signature

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Openca-Users mailing list
Openca-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openca-users

Reply via email to