Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
golang
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
golang
Commits
364e564e
Commit
364e564e
authored
Nov 11, 2009
by
Russ Cox
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use fully qualified names for hash interfaces
Fixes #38. R=r1, r
https://golang.org/cl/152072
parent
d8134e73
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
5 deletions
+5
-5
md5.go
src/pkg/crypto/md5/md5.go
+1
-1
sha1.go
src/pkg/crypto/sha1/sha1.go
+1
-1
adler32.go
src/pkg/hash/adler32/adler32.go
+1
-1
crc32.go
src/pkg/hash/crc32/crc32.go
+2
-2
No files found.
src/pkg/crypto/md5/md5.go
View file @
364e564e
...
...
@@ -38,7 +38,7 @@ func (d *digest) Reset() {
d
.
len
=
0
;
}
// New returns a Hash computing the SHA1 checksum.
// New returns a
hash.
Hash computing the SHA1 checksum.
func
New
()
hash
.
Hash
{
d
:=
new
(
digest
);
d
.
Reset
();
...
...
src/pkg/crypto/sha1/sha1.go
View file @
364e564e
...
...
@@ -40,7 +40,7 @@ func (d *digest) Reset() {
d
.
len
=
0
;
}
// New returns a Hash computing the SHA1 checksum.
// New returns a
new hash.
Hash computing the SHA1 checksum.
func
New
()
hash
.
Hash
{
d
:=
new
(
digest
);
d
.
Reset
();
...
...
src/pkg/hash/adler32/adler32.go
View file @
364e564e
...
...
@@ -32,7 +32,7 @@ type digest struct {
func
(
d
*
digest
)
Reset
()
{
d
.
a
,
d
.
b
=
1
,
0
}
// New returns a new Hash32 computing the Adler-32 checksum.
// New returns a new
hash.
Hash32 computing the Adler-32 checksum.
func
New
()
hash
.
Hash32
{
d
:=
new
(
digest
);
d
.
Reset
();
...
...
src/pkg/hash/crc32/crc32.go
View file @
364e564e
...
...
@@ -60,11 +60,11 @@ type digest struct {
tab
*
Table
;
}
// New creates a new
Hash
computing the CRC-32 checksum
// New creates a new
hash.Hash32
computing the CRC-32 checksum
// using the polynomial represented by the Table.
func
New
(
tab
*
Table
)
hash
.
Hash32
{
return
&
digest
{
0
,
tab
}
}
// NewIEEE creates a new
Hash
computing the CRC-32 checksum
// NewIEEE creates a new
hash.Hash32
computing the CRC-32 checksum
// using the IEEE polynomial.
func
NewIEEE
()
hash
.
Hash32
{
return
New
(
IEEETable
)
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment