Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(30)

Issue 96360043: code review 96360043: crypto/sha256, crypto/sha512: fix argument size in assembly (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 11 months ago by rsc
Modified:
10 years, 11 months ago
Reviewers:
bradfitz
CC:
golang-codereviews, bradfitz
Visibility:
Public.

Description

crypto/sha256, crypto/sha512: fix argument size in assembly The function takes 32 bytes of arguments: 8 for the *block and then 3*8 for the slice. The 24 is not causing a bug (today at least) because the final word is the cap of the slice, which the assembly does not use. Identified by 'go vet std'.

Patch Set 1 #

Patch Set 2 : diff -r 712f6b41d382 https://code.google.com/p/go/ #

Patch Set 3 : diff -r 712f6b41d382 https://code.google.com/p/go/ #

Patch Set 4 : diff -r b10044024a6d https://code.google.com/p/go/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -2 lines) Patch
M src/pkg/crypto/sha256/sha256block_amd64.s View 1 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/crypto/sha512/sha512block_amd64.s View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 3
rsc
Hello golang-codereviews@googlegroups.com, I'd like you to review this change to https://code.google.com/p/go/
10 years, 11 months ago (2014-05-15 15:53:33 UTC) #1
bradfitz
LGTM On Thu, May 15, 2014 at 8:53 AM, <rsc@golang.org> wrote: > Reviewers: golang-codereviews, > ...
10 years, 11 months ago (2014-05-15 16:01:13 UTC) #2
rsc
10 years, 11 months ago (2014-05-15 19:34:28 UTC) #3
*** Submitted as https://code.google.com/p/go/source/detail?r=9b16dca7541d ***

crypto/sha256, crypto/sha512: fix argument size in assembly

The function takes 32 bytes of arguments: 8 for the *block
and then 3*8 for the slice.

The 24 is not causing a bug (today at least) because the
final word is the cap of the slice, which the assembly
does not use.

Identified by 'go vet std'.

LGTM=bradfitz
R=golang-codereviews, bradfitz
CC=golang-codereviews
https://codereview.appspot.com/96360043
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b