sbvarsign: fix incorrect pointer in add_auth_descriptor
Brown paper bag time: we want to hash the variable data, not the stack. Signed-off-by: Jeremy Kerr <jeremy.kerr@canonical.com>
This commit is contained in:
parent
c933b5e8fd
commit
cf747fcca3
1 changed files with 1 additions and 1 deletions
|
@ -246,7 +246,7 @@ static int add_auth_descriptor(struct varsign_context *ctx)
|
|||
BIO_write(data_bio, &ctx->var_guid, sizeof(ctx->var_guid));
|
||||
BIO_write(data_bio, &ctx->var_attrs, sizeof(ctx->var_attrs));
|
||||
BIO_write(data_bio, ×tamp, sizeof(timestamp));
|
||||
BIO_write(data_bio, &ctx->data, ctx->data_len);
|
||||
BIO_write(data_bio, ctx->data, ctx->data_len);
|
||||
|
||||
md = EVP_get_digestbyname("SHA256");
|
||||
|
||||
|
|
Loading…
Reference in a new issue