Skip to content

Commit

Permalink
Use correct out_size for out instead of total_signatures.
Browse files Browse the repository at this point in the history
  • Loading branch information
sakridge committed Dec 13, 2019
1 parent 363186c commit 9148749
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cuda-ecc-ed25519/gpu_ctx.cu
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ void setup_gpu_ctx(verify_ctx_t* cur_ctx,
CUDA_CHK(cudaFree(cur_ctx->out));
CUDA_CHK(cudaMalloc(&cur_ctx->out, out_size));

cur_ctx->out_size_bytes = total_signatures;
cur_ctx->out_size_bytes = out_size;
}

if (cur_ctx->public_key_offsets == NULL || cur_ctx->offsets_len < total_signatures) {
Expand Down

0 comments on commit 9148749

Please sign in to comment.