Questions tagged [elgamal]

68 questions
0
votes
1 answer

Modular arithmetic and semi elgamal encryption

I'm implementing a semi ELGamal cryptosystem(from a research paper) function that has been used in PVSS. Unfortunately, I fail to decrypt as it has been described in the algorithm. Here is the initialisation phase: Select a secure prime p such that…
mr-ma
  • 199
  • 13
0
votes
0 answers

Encryption and Decryption with El-Gamal Elliptic Curve

I was look around the answer and googling to find a way how to encrypt and decrypt a string with El-Gamal Elliptic Curve without any third party library but there's always the answer to use a third party library like bo*...castle or fle**provider.…
Rhony
  • 86
  • 1
  • 10
0
votes
1 answer

How represent message for Elgamal EC?

I am working on my project that uses elgamal elliptic curve. I know when the elgamal ec encrypt by following steps Represent the message m as a point M in E(Fp). Select k ∈R [1,n−1]. Compute C1 = kP. Compute C2 = M +kQ. Return(C1,C2). Where Q is…
MHS
  • 55
  • 3
0
votes
0 answers

How represent message in elgamal elliptic curve Scheme?

I read about elgamal elliptic curve Scheme but I didn't understood how it represent message in this algorithm. If the message m has 128 bit and base point b(x,y) and private key k1 and public key is pub= k1 * b.now Is message m should be is…
MHS
  • 55
  • 3
0
votes
0 answers

How can compute execution time for ELGAMAL generation key?

I try compute execution time for ELGAMAL generation key by java program but I find problem. It is well known a generator g. Initially, any number {0,…,n−1} When try compute time for generate key the generator key take very long time specially when…
MHS
  • 55
  • 3
0
votes
1 answer

How to encrypt text using ElGamal encryption

I just want to know how to encrypt text documents using ElGamal algorithm? I got encryption of integers using this algorithm. Please help with example
0
votes
0 answers

How can i use string instead of file when I want to decrypte with elgamal?

I want to use ElGamal encryption. I can do it with a File, but I don't know how to do it with a String. Like this: public static String decrypt(String encrypted_sql) { File f = new File(sPrFile); ElGamalPrivateKey elpr = null; try { …
user1716182
  • 51
  • 1
  • 9
0
votes
1 answer

Encrypted RMI communication without using certificates

I need to make two java proceses on the same host to communicate securely. I do not need to authenticate the processes so I don't want to use certificates. I want to generate a random key in the server and client, exchange the keys between the…
Saurabh
  • 195
  • 1
  • 2
  • 7
1 2 3 4
5