[BACK]Return to mac.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / ssh

Diff for /src/usr.bin/ssh/mac.c between version 1.9 and 1.10

version 1.9, 2006/03/25 13:17:02 version 1.10, 2006/03/30 09:58:15
Line 28 
Line 28 
 #include <openssl/hmac.h>  #include <openssl/hmac.h>
   
 #include "xmalloc.h"  #include "xmalloc.h"
 #include "getput.h"  
 #include "log.h"  #include "log.h"
 #include "cipher.h"  #include "cipher.h"
 #include "kex.h"  #include "kex.h"
 #include "mac.h"  #include "mac.h"
   #include "misc.h"
   
 struct {  struct {
         char            *name;          char            *name;
Line 83 
Line 83 
         if (mac->mac_len > sizeof(m))          if (mac->mac_len > sizeof(m))
                 fatal("mac_compute: mac too long");                  fatal("mac_compute: mac too long");
         HMAC_Init(&c, mac->key, mac->key_len, mac->md);          HMAC_Init(&c, mac->key, mac->key_len, mac->md);
         PUT_32BIT(b, seqno);          put_u32(b, seqno);
         HMAC_Update(&c, b, sizeof(b));          HMAC_Update(&c, b, sizeof(b));
         HMAC_Update(&c, data, datalen);          HMAC_Update(&c, data, datalen);
         HMAC_Final(&c, m, NULL);          HMAC_Final(&c, m, NULL);

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10