gitee.com/curryzheng/dm@v0.0.1/security/zza.go (about)

     1  /*
     2   * Copyright (c) 2000-2018, 达梦数据库有限公司.
     3   * All rights reserved.
     4   */
     5  
     6  package security
     7  
     8  type Cipher interface {
     9  	Encrypt(plaintext []byte, genDigest bool) []byte
    10  	Decrypt(ciphertext []byte, checkDigest bool) ([]byte, error)
    11  }