/**Şifreleme için ciphertext objesini kullanan method**/ public Ciphertext encryptToCiphertext(BigInteger plaintext, BigInteger targetPublicKey) { Ciphertext ciphertext = new Ciphertext(plaintext, targetPublicKey, FiN); return ciphertext; }
/**Deşifreleme için ciphertext objesini kullanan method*/ public BigInteger decryptFromCiphertext(Ciphertext ciphertext) { BigInteger plaintext = ciphertext.getPlainttext(privateKey); return plaintext; }