]> Cypherpunks repositories - gostls13.git/commit
crypto/sha256, crypto/sha512: fix argument size in assembly
authorRuss Cox <rsc@golang.org>
Thu, 15 May 2014 19:34:25 +0000 (15:34 -0400)
committerRuss Cox <rsc@golang.org>
Thu, 15 May 2014 19:34:25 +0000 (15:34 -0400)
commitfbd091500818c095c34f7a221aa298efeb13fb9c
tree1cd0c591edb31bf11af0d134de66e309ddf2d678
parent435ba1295af24c0254707057a7d8dc6f17d6ad19
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://golang.org/cl/96360043
src/pkg/crypto/sha256/sha256block_amd64.s
src/pkg/crypto/sha512/sha512block_amd64.s