encryption with two key pairs