Left: | ||
Right: |
OLD | NEW |
---|---|
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 Loading... | |
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 } |
OLD | NEW |