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

Side by Side Diff: src/pkg/crypto/sha1/sha1block.go

Issue 56990044: code review 56990044: An ARM version of sha1block.go with a big improvement i... (Closed)
Patch Set: diff -r 54a5513d9d6a https://code.google.com/p/go Created 10 years, 1 month ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | src/pkg/crypto/sha1/sha1block_arm.s » ('j') | src/pkg/crypto/sha1/sha1block_arm.s » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2009 The Go Authors. All rights reserved. 1 // Copyright 2009 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style 2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file. 3 // license that can be found in the LICENSE file.
4 4
5 // +build !amd64,!386 5 // +build !amd64,!386,!arm
dfc 2014/02/10 05:14:53 We now have no implementations that use sha1block.
bradfitz 2014/02/10 20:36:01 Let's remove this +build line so this file always
adg 2014/02/11 07:09:06 So the tests will call both block and genblock?
6 6
7 // SHA1 block step. 7 // SHA1 block step.
8 // In its own file so that a faster assembly or C version 8 // In its own file so that a faster assembly or C version
9 // can be substituted easily. 9 // can be substituted easily.
10 10
11 package sha1 11 package sha1
12 12
13 const ( 13 const (
14 _K0 = 0x5A827999 14 _K0 = 0x5A827999
15 _K1 = 0x6ED9EBA1 15 _K1 = 0x6ED9EBA1
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 h1 += b 85 h1 += b
86 h2 += c 86 h2 += c
87 h3 += d 87 h3 += d
88 h4 += e 88 h4 += e
89 89
90 p = p[chunk:] 90 p = p[chunk:]
91 } 91 }
92 92
93 dig.h[0], dig.h[1], dig.h[2], dig.h[3], dig.h[4] = h0, h1, h2, h3, h4 93 dig.h[0], dig.h[1], dig.h[2], dig.h[3], dig.h[4] = h0, h1, h2, h3, h4
94 } 94 }
OLDNEW
« no previous file with comments | « no previous file | src/pkg/crypto/sha1/sha1block_arm.s » ('j') | src/pkg/crypto/sha1/sha1block_arm.s » ('J')

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