<dt><span class="strong">Returns:</span></dt><dd>The encrypted value of the plaintext, modulo n^2.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../crypto_scheme/CryptoException.html" title="class in crypto_scheme">CryptoException</a></code> - CryptoException If the encryption cannot be performed or
throws <a href="../crypto_scheme/CryptoException.html" title="class in crypto_scheme">CryptoException</a></pre>
<div class="block">Encrypts the given plaintext to produce ciphertext.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>plain</code> - The plaintext.</dd>
<dt><span class="strong">Returns:</span></dt><dd>The encrypted value of the plaintext, modulo n^2.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../crypto_scheme/CryptoException.html" title="class in crypto_scheme">CryptoException</a></code> - If the encryption cannot be performed or
throws <a href="../crypto_scheme/CryptoException.html" title="class in crypto_scheme">CryptoException</a></pre>
<div class="block">Decrypts the given ciphertext, which was previously encrypted using
the public key given to this instance of the class. This method will
throw an exception if no decryption keys were defined.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>cipher</code> - The ciphertext.</dd>
<dt><span class="strong">Returns:</span></dt><dd>The decrypted value of the plaintext, modulo n.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../crypto_scheme/CryptoException.html" title="class in crypto_scheme">CryptoException</a></code> - If the decryption fails.</dd></dl>