blob: 4394d553c0b166488062d995b3ebc0104681b831 [file] [log] [blame]
package crypto
import "v.io/x/ref/profiles/internal/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 }