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

Diff for /src/usr.bin/ssh/ssh-xmss.c between version 1.6 and 1.7

version 1.6, 2022/10/28 00:35:40 version 1.7, 2022/10/28 00:36:31
Line 48 
Line 48 
         k->xmss_filename = NULL;          k->xmss_filename = NULL;
 }  }
   
   static int
   ssh_xmss_equal(const struct sshkey *a, const struct sshkey *b)
   {
           if (a->xmss_pk == NULL || b->xmss_pk == NULL)
                   return 0;
           if (sshkey_xmss_pklen(a) != sshkey_xmss_pklen(b))
                   return 0;
           if (memcmp(a->xmss_pk, b->xmss_pk, sshkey_xmss_pklen(a)) != 0)
                   return 0;
           return 1;
   }
   
 int  int
 ssh_xmss_sign(const struct sshkey *key, u_char **sigp, size_t *lenp,  ssh_xmss_sign(const struct sshkey *key, u_char **sigp, size_t *lenp,
     const u_char *data, size_t datalen, u_int compat)      const u_char *data, size_t datalen, u_int compat)
Line 200 
Line 212 
         /* .size = */           NULL,          /* .size = */           NULL,
         /* .alloc = */          NULL,          /* .alloc = */          NULL,
         /* .cleanup = */        ssh_xmss_cleanup,          /* .cleanup = */        ssh_xmss_cleanup,
           /* .equal = */          ssh_xmss_equal,
 };  };
   
 const struct sshkey_impl sshkey_xmss_impl = {  const struct sshkey_impl sshkey_xmss_impl = {

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7