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

Diff for /src/usr.bin/ssh/cipher-chachapoly.h between version 1.4 and 1.5

version 1.4, 2014/06/24 01:13:21 version 1.5, 2020/04/03 04:27:03
Line 24 
Line 24 
   
 #define CHACHA_KEYLEN   32 /* Only 256 bit keys used here */  #define CHACHA_KEYLEN   32 /* Only 256 bit keys used here */
   
 struct chachapoly_ctx {  struct chachapoly_ctx;
         struct chacha_ctx main_ctx, header_ctx;  
 };  
   
 int     chachapoly_init(struct chachapoly_ctx *cpctx,  struct chachapoly_ctx *chachapoly_new(const u_char *key, u_int keylen)
     const u_char *key, u_int keylen)      __attribute__((__bounded__(__buffer__, 1, 2)));
     __attribute__((__bounded__(__buffer__, 2, 3)));  void chachapoly_free(struct chachapoly_ctx *cpctx);
   
 int     chachapoly_crypt(struct chachapoly_ctx *cpctx, u_int seqnr,  int     chachapoly_crypt(struct chachapoly_ctx *cpctx, u_int seqnr,
     u_char *dest, const u_char *src, u_int len, u_int aadlen, u_int authlen,      u_char *dest, const u_char *src, u_int len, u_int aadlen, u_int authlen,
     int do_encrypt);      int do_encrypt);

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5