Permalink
Browse files

Updated: SHA-3 Library in Go

  • Loading branch information...
1 parent cffde9e commit f792056fb2c913e6db856cb85069df7c78f744a2 @tav tav committed Mar 29, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 sha-3-library-in-go.md
View
@@ -4,13 +4,13 @@ tags: #go, TODO
title: SHA-3 Library in Go
---
-Now that NIST have officially selected [<span style="font-variant: small-caps">Keccak</span>](http://keccak.noekeon.org/) as the [winner of the SHA-3 Competition](http://www.nist.gov/itl/csd/sha-100212.cfm), we can start implementing a `sha3` library which provides the standard [hash.Hash interface](http://golang.org/pkg/hash/#Hash). Since <span style="font-variant: small-caps">Keccak</span> allows for user-specified digest lengths, the constructor should support it:
+Now that NIST have officially selected [<span style="font-variant: small-caps">Keccak</span>](http://keccak.noekeon.org/) as the [winner of the SHA-3 Competition](http://www.nist.gov/itl/csd/sha-100212.cfm), we can start implementing a `sha3` library which provides the standard [hash.Hash interface](http://golang.org/pkg/hash/#Hash). Since <span style="font-variant: small-caps">Keccak</span> allows for user-specified digest lengths, the constructor should support it being specified:
```go
func New(size int) hash.Hash
```
-For the final SHA-3 spec, NIST will most likely eliminate this generality and define outputs matching the existing SHA-2 lengths. So we should have matching constructors, i.e.
+Do bear in mind that for the final SHA-3 spec, NIST will most likely eliminate this generality and define outputs matching the existing SHA-2 lengths. So we should have matching constructors, i.e.
```go
func New224() hash.Hash

0 comments on commit f792056

Please sign in to comment.