How to use hmac-md5 from the Digital Signature Toolkit (DST)

David Rubel davidrubels at gmail.com
Thu Jun 28 15:42:31 UTC 2012


Hello.

I'm trying to add RFC 3118 support (Authentication option) to ISC DHCP, so
I would like to test in both client and server the HMAC-MD5 implementation
of the Digital Signature Toolkit included in ISC DHCP (/dst/hmac_link.c).
Particularly, I'd like to try this test vector specified in RFC 2104 and
print the resulting digest on-screen:

key =         0x0b0b0b0b0b0b0b0b0b0b0b0b0b0b
0b0b
key_len =     16 bytes
data =        "Hi There"
data_len =    8  bytes
digest =      0x9294727a3638bb1c13f48ef8158bfc9d

Anyone knows how to be able to call those hashing functions from the client
and server (namely "client/dhclient.c" and "server/dhcp.c")?.... because it
seems that normally client and server doesn't have access to those
functions.

And if by chance someone already knows the answer to this, it would be
greatly appreciated: Which functions should I call (and its parameters) to
obtain that digest?.

Thanks in advance.
---
David Rubel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20120628/34b66514/attachment.html>


More information about the dhcp-users mailing list