code: func (e *encryption) Encrypt(data []byte) ([]byte, error) {
  	length := len(data)
  	outLength := length
  	isFixedPadding := e.padding > 0
  	if isFixedPadding {
  		if length > e.padding {
  			return nil, fmt.Errorf("Data length longer than padding, data length %v padding %v", length, e.padding)
  		}
  		outLength = e.padding
  	}
  	out := make([]byte, outLength)
  	e.transform(data, out)
  	return out, nil
  }
docs: // Encrypt encrypts the data and does padding if specified