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

Diff for /src/usr.bin/ssh/hmac.c between version 1.9 and 1.10

version 1.9, 2014/01/27 18:58:14 version 1.10, 2014/01/31 16:39:19
Line 79 
Line 79 
                         ctx->buf[i] ^= 0x36 ^ 0x5c;                          ctx->buf[i] ^= 0x36 ^ 0x5c;
                 if (ssh_digest_update(ctx->octx, ctx->buf, ctx->buf_len) < 0)                  if (ssh_digest_update(ctx->octx, ctx->buf, ctx->buf_len) < 0)
                         return -1;                          return -1;
                 bzero(ctx->buf, ctx->buf_len);                  explicit_bzero(ctx->buf, ctx->buf_len);
         }          }
         /* start with ictx */          /* start with ictx */
         if (ssh_digest_copy_state(ctx->ictx, ctx->digest) < 0)          if (ssh_digest_copy_state(ctx->ictx, ctx->digest) < 0)
Line 124 
Line 124 
                 ssh_digest_free(ctx->octx);                  ssh_digest_free(ctx->octx);
                 ssh_digest_free(ctx->digest);                  ssh_digest_free(ctx->digest);
                 if (ctx->buf) {                  if (ctx->buf) {
                         bzero(ctx->buf, ctx->buf_len);                          explicit_bzero(ctx->buf, ctx->buf_len);
                         free(ctx->buf);                          free(ctx->buf);
                 }                  }
                 bzero(ctx, sizeof(*ctx));                  explicit_bzero(ctx, sizeof(*ctx));
                 free(ctx);                  free(ctx);
         }          }
 }  }

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10