Standard library / crypto/sha512
crypto/sha512.BlockSize
Input compression block size in bytes (128); not the digest size. Writes need not align to blocks. A digest alone does not authenticate data; use HMAC or a signature where appropriate. Not a password hashing scheme. Expected stdout: '128\n'.
Formal Syntax & Structure
go syntaxgo
const BlockSize = 128Working Example
Example Snippetgo
package main
import ( "crypto/sha512" "fmt")
func main() { fmt.Println(sha512.BlockSize) }