Re: [ntp:questions] issue with the hmac-md5 digest

2016-04-01 Thread Miroslav Lichvar
On Fri, Apr 01, 2016 at 07:37:15AM +, Sukanya K. wrote:
> But when I sending ntp packet with symmetric key, client is not synchronizing.
> 
> The hmac md5 digest which is generated by the client is not matching with the 
>  calculated digest from server side.
> 
> I have evaluated my hmac-md5 code by giving the all test cases(rfc2202) as 
> per the rfc. And all the digest were matched.
> 
> But it is not matching with the clients ntp packet message digest.

NTP doesn't use HMAC. The NTP MAC uses hash calculated over the
symmetric key concatenated with the NTP packet. See 7.3 in RFC 5905.

-- 
Miroslav Lichvar
___
questions mailing list
questions@lists.ntp.org
http://lists.ntp.org/listinfo/questions


[ntp:questions] issue with the hmac-md5 digest

2016-04-01 Thread Sukanya K .
Greetings of the day,

I have implemented Ntpv4 with symmetric in our hardware. Where my application 
code will act as  Ntp-server.

When I sent synchronization request from linux pc(Ntp-client::using ntpd 
services) without key , client is synchronizing properly.

But when I sending ntp packet with symmetric key, client is not synchronizing.

The hmac md5 digest which is generated by the client is not matching with the  
calculated digest from server side.

I have evaluated my hmac-md5 code by giving the all test cases(rfc2202) as per 
the rfc. And all the digest were matched.

But it is not matching with the clients ntp packet message digest.


Please suggest some solution for the above issue.




Thanks & Regards
Sukanya Kamakolanu


 The information transmitted is intended for the person or entity to which it 
is addressed and may contain confidential and/or privileged material. Any 
review, retransmission, dissemination, copying or other use of, or taking any 
action in reliance upon, this information by persons or entities other than the 
intended recipient is prohibited. If you have received this in error, please 
contact the sender and delete the material from your system. Accord Software & 
Systems Pvt. Ltd. (ACCORD) is not responsible for any changes made to the 
material other than those made by ACCORD or for the effect of the changes on 
the meaning of the material. 

___
questions mailing list
questions@lists.ntp.org
http://lists.ntp.org/listinfo/questions