Standard library / crypto/aes

crypto/aes.BlockSize

Block length is 16 bytes, independent of key length. Expected stdout: '16\n'.

Formal Syntax & Structure

go syntaxgo
const BlockSize = 16

Working Example

Example Snippetgo
package main
import (  "crypto/aes"  "fmt")
func main() { fmt.Println(aes.BlockSize) }func must[T any](v T, e error) T {  if e != nil {    panic(e)  }  return v}func check(e error) {  if e != nil {    panic(e)  }}
Go Reference