NewHash returns a new hash.Hash of the currently recommended hash type. Currently this is SHA-224, but is subject to change over time.
()
| 732 | // NewHash returns a new hash.Hash of the currently recommended hash type. |
| 733 | // Currently this is SHA-224, but is subject to change over time. |
| 734 | func NewHash() hash.Hash { |
| 735 | return sha256.New224() |
| 736 | } |
| 737 | |
| 738 | func ValidRefString(s string) bool { |
| 739 | // TODO: optimize to not allocate |
no outgoing calls