package crypto

import 

// Cipher is message encryption utility struct.
type Cipher struct {
	rand        io.Reader
	encryptSide Side
}

// Rand returns random generator.
func ( Cipher) () io.Reader {
	return .rand
}

// NewClientCipher creates new client-side Cipher.
func ( io.Reader) Cipher {
	return Cipher{rand: , encryptSide: Client}
}

// NewServerCipher creates new server-side Cipher.
func ( io.Reader) Cipher {
	return Cipher{rand: , encryptSide: Server}
}