github.com/q45/go@v0.0.0-20151101211701-a4fb8c13db3f/src/crypto/aes/cipher_generic.go (about)

     1  // Copyright 2012 The Go Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  // +build !amd64
     6  
     7  package aes
     8  
     9  func encryptBlock(xk []uint32, dst, src []byte) {
    10  	encryptBlockGo(xk, dst, src)
    11  }
    12  
    13  func decryptBlock(xk []uint32, dst, src []byte) {
    14  	decryptBlockGo(xk, dst, src)
    15  }
    16  
    17  func expandKey(key []byte, enc, dec []uint32) {
    18  	expandKeyGo(key, enc, dec)
    19  }
    20  
    21  func hasGCMAsm() bool {
    22  	return false
    23  }
    24  
    25  type aesCipherGCM struct {
    26  	aesCipher
    27  }