blob: 04010765728099d11c40e962ae419ca2b02f78e3 [file] [log] [blame]
package crypto
import "veyron/runtimes/google/lib/iobuf"
// NewNullCrypter returns a Crypter that does no encryption/decryption.
func NewNullCrypter() Crypter { return null{} }
type null struct{}
func (null) Encrypt(src *iobuf.Slice) (*iobuf.Slice, error) { return src, nil }
func (null) Decrypt(src *iobuf.Slice) (*iobuf.Slice, error) { return src, nil }
func (null) String() string { return "Null" }
func (null) ChannelBinding() []byte { return nil }