In Cohen's cryptosystem, a
private key is a
positive integer p. The
algorithm uses k public-keys w_0,\ldots,w_{k-1} defined as follows: Generate k random
integers u_0,\ldots,u_{k-1} chosen randomly and uniformly between -B and B. Where B is some bound. Let A=\lfloor\frac{p}{2k}\rfloor and generate k random integers v_0,\ldots,v_{k-1} chosen randomly and uniformly between 0 and A. Define w_i=(u_i p+v_i). ==Encrypting a bit==