[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.13 and 1.14

version 1.13, 2022/10/28 00:37:24 version 1.14, 2022/10/28 00:39:29
Line 63 
Line 63 
         return 0;          return 0;
 }  }
   
   static int
   ssh_ed25519_generate(struct sshkey *k, int bits)
   {
           if ((k->ed25519_pk = malloc(ED25519_PK_SZ)) == NULL ||
               (k->ed25519_sk = malloc(ED25519_SK_SZ)) == NULL)
                   return SSH_ERR_ALLOC_FAIL;
           crypto_sign_ed25519_keypair(k->ed25519_pk, k->ed25519_sk);
           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 197 
Line 207 
         /* .cleanup = */        ssh_ed25519_cleanup,          /* .cleanup = */        ssh_ed25519_cleanup,
         /* .equal = */          ssh_ed25519_equal,          /* .equal = */          ssh_ed25519_equal,
         /* .ssh_serialize_public = */ ssh_ed25519_serialize_public,          /* .ssh_serialize_public = */ ssh_ed25519_serialize_public,
           /* .generate = */       ssh_ed25519_generate,
 };  };
   
 const struct sshkey_impl sshkey_ed25519_impl = {  const struct sshkey_impl sshkey_ed25519_impl = {

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