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

Diff for /src/usr.bin/ssh/umac.h between version 1.2 and 1.3

version 1.2, 2012/10/04 13:21:50 version 1.3, 2013/07/22 12:20:02
Line 52 
Line 52 
     extern "C" {      extern "C" {
 #endif  #endif
   
 struct umac_ctx *umac_new(u_char key[]);  struct umac_ctx *umac_new(const u_char key[]);
 /* Dynamically allocate a umac_ctx struct, initialize variables,  /* Dynamically allocate a umac_ctx struct, initialize variables,
  * generate subkeys from key.   * generate subkeys from key.
  */   */
Line 62 
Line 62 
 /* Reset a umac_ctx to begin authenicating a new message */  /* Reset a umac_ctx to begin authenicating a new message */
 #endif  #endif
   
 int umac_update(struct umac_ctx *ctx, u_char *input, long len);  int umac_update(struct umac_ctx *ctx, const u_char *input, long len);
 /* Incorporate len bytes pointed to by input into context ctx */  /* Incorporate len bytes pointed to by input into context ctx */
   
 int umac_final(struct umac_ctx *ctx, u_char tag[], u_char nonce[8]);  int umac_final(struct umac_ctx *ctx, u_char tag[], const u_char nonce[8]);
 /* Incorporate any pending data and the ctr value, and return tag.  /* Incorporate any pending data and the ctr value, and return tag.
  * This function returns error code if ctr < 0.   * This function returns error code if ctr < 0.
  */   */
Line 117 
Line 117 
 #endif  #endif
   
 /* matching umac-128 API, we reuse umac_ctx, since it's opaque */  /* matching umac-128 API, we reuse umac_ctx, since it's opaque */
 struct umac_ctx *umac128_new(u_char key[]);  struct umac_ctx *umac128_new(const u_char key[]);
 int umac128_update(struct umac_ctx *ctx, u_char *input, long len);  int umac128_update(struct umac_ctx *ctx, const u_char *input, long len);
 int umac128_final(struct umac_ctx *ctx, u_char tag[], u_char nonce[8]);  int umac128_final(struct umac_ctx *ctx, u_char tag[], const u_char nonce[8]);
 int umac128_delete(struct umac_ctx *ctx);  int umac128_delete(struct umac_ctx *ctx);
   
 #ifdef __cplusplus  #ifdef __cplusplus

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