blob: b8b376f4b6fd5b7bd9b9e3df4247aec7c4a43c0c [file] [log] [blame]
package crypto
import "v.io/core/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 }