示例#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;
 }
示例#2
0
 /**Deşifreleme için ciphertext objesini kullanan method*/
 public BigInteger decryptFromCiphertext(Ciphertext ciphertext)
 {
     BigInteger plaintext = ciphertext.getPlainttext(privateKey);
     return plaintext;
 }