aboutsummaryrefslogtreecommitdiff
path: root/src/crypto/aes/cipher_amd64.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/crypto/aes/cipher_amd64.go')
-rw-r--r--src/crypto/aes/cipher_amd64.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/crypto/aes/cipher_amd64.go b/src/crypto/aes/cipher_amd64.go
index 43de3bdffd..fcdebabb33 100644
--- a/src/crypto/aes/cipher_amd64.go
+++ b/src/crypto/aes/cipher_amd64.go
@@ -6,6 +6,7 @@ package aes
import (
"crypto/cipher"
+ "crypto/internal/boring"
"crypto/internal/cipherhw"
)
@@ -46,6 +47,7 @@ func newCipher(key []byte) (cipher.Block, error) {
func (c *aesCipherAsm) BlockSize() int { return BlockSize }
func (c *aesCipherAsm) Encrypt(dst, src []byte) {
+ boring.Unreachable()
if len(src) < BlockSize {
panic("crypto/aes: input not full block")
}
@@ -56,6 +58,7 @@ func (c *aesCipherAsm) Encrypt(dst, src []byte) {
}
func (c *aesCipherAsm) Decrypt(dst, src []byte) {
+ boring.Unreachable()
if len(src) < BlockSize {
panic("crypto/aes: input not full block")
}