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

Diff for /src/usr.bin/ssh/digest.h between version 1.1 and 1.2

version 1.1, 2014/01/09 23:20:00 version 1.2, 2014/01/27 18:58:14
Line 30 
Line 30 
 #define SSH_DIGEST_SHA512       5  #define SSH_DIGEST_SHA512       5
 #define SSH_DIGEST_MAX          6  #define SSH_DIGEST_MAX          6
   
   struct ssh_digest_ctx;
   
 /* Returns the algorithm's digest length in bytes or 0 for invalid algorithm */  /* Returns the algorithm's digest length in bytes or 0 for invalid algorithm */
 size_t ssh_digest_bytes(int alg);  size_t ssh_digest_bytes(int alg);
   
   /* Returns the block size of the digest, e.g. for implementing HMAC */
   size_t ssh_digest_blocksize(struct ssh_digest_ctx *ctx);
   
   /* Copies internal state of digest of 'from' to 'to' */
   int ssh_digest_copy_state(struct ssh_digest_ctx *from,
       struct ssh_digest_ctx *to);
   
 /* One-shot API */  /* One-shot API */
 int ssh_digest_memory(int alg, const void *m, size_t mlen,  int ssh_digest_memory(int alg, const void *m, size_t mlen,
     u_char *d, size_t dlen)      u_char *d, size_t dlen)
Line 42 
Line 51 
         __attribute__((__bounded__(__buffer__, 3, 4)));          __attribute__((__bounded__(__buffer__, 3, 4)));
   
 /* Update API */  /* Update API */
 struct ssh_digest_ctx;  
 struct ssh_digest_ctx *ssh_digest_start(int alg);  struct ssh_digest_ctx *ssh_digest_start(int alg);
 int ssh_digest_update(struct ssh_digest_ctx *ctx, const void *m, size_t mlen)  int ssh_digest_update(struct ssh_digest_ctx *ctx, const void *m, size_t mlen)
         __attribute__((__bounded__(__buffer__, 2, 3)));          __attribute__((__bounded__(__buffer__, 2, 3)));

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2