Size returns number of bytes returned by the hash.
()
| 80 | |
| 81 | // Size returns number of bytes returned by the hash. |
| 82 | func (a Algorithm) Size() int { |
| 83 | h, ok := algorithms[a] |
| 84 | if !ok { |
| 85 | return 0 |
| 86 | } |
| 87 | return h.Size() |
| 88 | } |
| 89 | |
| 90 | // Set implemented to allow use of Algorithm as a command line flag. |
| 91 | func (a *Algorithm) Set(value string) error { |