]> Cypherpunks.ru repositories - gostls13.git/blobdiff - src/crypto/aes/cipher_asm.go
[dev.boringcrypto] all: merge master into dev.boringcrypto
[gostls13.git] / src / crypto / aes / cipher_asm.go
index c948f1a579ef2fd2390c15230a9970e107e73cf5..ecc6ccbbfbb6129424c9ea5e893c9c6fd002afc0 100644 (file)
@@ -12,6 +12,8 @@ import (
        "internal/cpu"
 )
 
+import "crypto/internal/boring"
+
 // defined in asm_*.s
 
 //go:noescape
@@ -56,6 +58,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")
        }
@@ -69,6 +72,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")
        }