46
46
// BlockSize returns the AES block size, 16 bytes.
47
47
// It is necessary to satisfy the Cipher interface in the
49
49
func (c *Cipher) BlockSize() int { return BlockSize }
51
51
// Encrypt encrypts the 16-byte buffer src using the key k
52
52
// and stores the result in dst.
53
53
// Note that for amounts of data larger than a block,
54
54
// it is not safe to just call Encrypt on successive blocks;
56
56
func (c *Cipher) Encrypt(dst, src []byte) { encryptBlock(c.enc, dst, src) }
58
58
// Decrypt decrypts the 16-byte buffer src using the key k