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

Diff for /src/usr.bin/ssh/ssh-ecdsa.c between version 1.18 and 1.19

version 1.18, 2022/10/28 00:36:31 version 1.19, 2022/10/28 00:37:24
Line 79 
Line 79 
                 return 0;                  return 0;
         if (EC_POINT_cmp(grp_a, pub_a, pub_b, NULL) != 0)          if (EC_POINT_cmp(grp_a, pub_a, pub_b, NULL) != 0)
                 return 0;                  return 0;
   
         return 1;          return 1;
 }  }
   
   static int
   ssh_ecdsa_serialize_public(const struct sshkey *key, struct sshbuf *b,
       const char *typename, enum sshkey_serialize_rep opts)
   {
           int r;
   
           if (key->ecdsa == NULL)
                   return SSH_ERR_INVALID_ARGUMENT;
           if ((r = sshbuf_put_cstring(b, typename)) != 0 ||
               (r = sshbuf_put_cstring(b,
               sshkey_curve_nid_to_name(key->ecdsa_nid))) != 0 ||
               (r = sshbuf_put_eckey(b, key->ecdsa)) != 0)
                   return r;
   
           return 0;
   }
   
 /* ARGSUSED */  /* ARGSUSED */
 int  int
 ssh_ecdsa_sign(const struct sshkey *key, u_char **sigp, size_t *lenp,  ssh_ecdsa_sign(const struct sshkey *key, u_char **sigp, size_t *lenp,
Line 240 
Line 258 
         /* .alloc = */          NULL,          /* .alloc = */          NULL,
         /* .cleanup = */        ssh_ecdsa_cleanup,          /* .cleanup = */        ssh_ecdsa_cleanup,
         /* .equal = */          ssh_ecdsa_equal,          /* .equal = */          ssh_ecdsa_equal,
           /* .ssh_serialize_public = */ ssh_ecdsa_serialize_public,
 };  };
   
 const struct sshkey_impl sshkey_ecdsa_nistp256_impl = {  const struct sshkey_impl sshkey_ecdsa_nistp256_impl = {

Legend:
Removed from v.1.18  
changed lines
  Added in v.1.19