Incomplete cipher and diffie-hellman implementation