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

Diff for /src/usr.bin/ssh/ssh-ed25519.c between version 1.12 and 1.13

version 1.12, 2022/10/28 00:36:31 version 1.13, 2022/10/28 00:37:24
Line 48 
Line 48 
         return 1;          return 1;
 }  }
   
   static int
   ssh_ed25519_serialize_public(const struct sshkey *key, struct sshbuf *b,
       const char *typename, enum sshkey_serialize_rep opts)
   {
           int r;
   
           if (key->ed25519_pk == NULL)
                   return SSH_ERR_INVALID_ARGUMENT;
           if ((r = sshbuf_put_cstring(b, typename)) != 0 ||
               (r = sshbuf_put_string(b, key->ed25519_pk, ED25519_PK_SZ)) != 0)
                   return r;
   
           return 0;
   }
   
 int  int
 ssh_ed25519_sign(const struct sshkey *key, u_char **sigp, size_t *lenp,  ssh_ed25519_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 181 
Line 196 
         /* .alloc = */          NULL,          /* .alloc = */          NULL,
         /* .cleanup = */        ssh_ed25519_cleanup,          /* .cleanup = */        ssh_ed25519_cleanup,
         /* .equal = */          ssh_ed25519_equal,          /* .equal = */          ssh_ed25519_equal,
           /* .ssh_serialize_public = */ ssh_ed25519_serialize_public,
 };  };
   
 const struct sshkey_impl sshkey_ed25519_impl = {  const struct sshkey_impl sshkey_ed25519_impl = {

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.13