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

Diff for /src/usr.bin/ssh/Attic/key.h between version 1.39 and 1.40

version 1.39, 2013/12/06 13:30:08 version 1.40, 2013/12/06 13:39:49
Line 37 
Line 37 
         KEY_RSA,          KEY_RSA,
         KEY_DSA,          KEY_DSA,
         KEY_ECDSA,          KEY_ECDSA,
           KEY_ED25519,
         KEY_RSA_CERT,          KEY_RSA_CERT,
         KEY_DSA_CERT,          KEY_DSA_CERT,
         KEY_ECDSA_CERT,          KEY_ECDSA_CERT,
           KEY_ED25519_CERT,
         KEY_RSA_CERT_V00,          KEY_RSA_CERT_V00,
         KEY_DSA_CERT_V00,          KEY_DSA_CERT_V00,
         KEY_UNSPEC          KEY_UNSPEC
Line 80 
Line 82 
         int      ecdsa_nid;     /* NID of curve */          int      ecdsa_nid;     /* NID of curve */
         EC_KEY  *ecdsa;          EC_KEY  *ecdsa;
         struct KeyCert *cert;          struct KeyCert *cert;
           u_char  *ed25519_sk;
           u_char  *ed25519_pk;
 };  };
   
   #define ED25519_SK_SZ   crypto_sign_ed25519_SECRETKEYBYTES
   #define ED25519_PK_SZ   crypto_sign_ed25519_PUBLICKEYBYTES
   
 Key             *key_new(int);  Key             *key_new(int);
 void             key_add_private(Key *);  void             key_add_private(Key *);
 Key             *key_new_private(int);  Key             *key_new_private(int);
Line 120 
Line 127 
 const EVP_MD    *key_ec_nid_to_evpmd(int nid);  const EVP_MD    *key_ec_nid_to_evpmd(int nid);
 int              key_ec_validate_public(const EC_GROUP *, const EC_POINT *);  int              key_ec_validate_public(const EC_GROUP *, const EC_POINT *);
 int              key_ec_validate_private(const EC_KEY *);  int              key_ec_validate_private(const EC_KEY *);
 char            *key_alg_list(void);  char            *key_alg_list(int, int);
   
 Key             *key_from_blob(const u_char *, u_int);  Key             *key_from_blob(const u_char *, u_int);
 int              key_to_blob(const Key *, u_char **, u_int *);  int              key_to_blob(const Key *, u_char **, u_int *);
Line 137 
Line 144 
 int      ssh_ecdsa_verify(const Key *, const u_char *, u_int, const u_char *, u_int);  int      ssh_ecdsa_verify(const Key *, const u_char *, u_int, const u_char *, u_int);
 int      ssh_rsa_sign(const Key *, u_char **, u_int *, const u_char *, u_int);  int      ssh_rsa_sign(const Key *, u_char **, u_int *, const u_char *, u_int);
 int      ssh_rsa_verify(const Key *, const u_char *, u_int, const u_char *, u_int);  int      ssh_rsa_verify(const Key *, const u_char *, u_int, const u_char *, u_int);
   int      ssh_ed25519_sign(const Key *, u_char **, u_int *, const u_char *, u_int);
   int      ssh_ed25519_verify(const Key *, const u_char *, u_int, const u_char *, u_int);
   
 #if defined(DEBUG_KEXECDH) || defined(DEBUG_PK)  #if defined(DEBUG_KEXECDH) || defined(DEBUG_PK)
 void    key_dump_ec_point(const EC_GROUP *, const EC_POINT *);  void    key_dump_ec_point(const EC_GROUP *, const EC_POINT *);

Legend:
Removed from v.1.39  
changed lines
  Added in v.1.40