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