version 1.9, 2014/01/27 18:58:14 |
version 1.10, 2014/01/31 16:39:19 |
|
|
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) |
|
|
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); |
} |
} |
} |
} |