Questions tagged [jpbc]

Questions about the Java Port/Wrapper of the Pairing-Based Cryptography Library

The Java Pairing Based Cryptography Library (jPBC) is:

  • a Java Port of the Pairing-Based Cryptography Library (PBC) library developed by Ben Lynn.
  • a Java Wrapper on the [PBC library. This means that you can delegate the pairing computation to PBC. Have a look here to know how to use the wrapper.
7 questions
1
vote
1 answer

How to store serialized element in PBC?

I am using pairing-based cryptography lib to implement an application. And I want to store the element by calling int element_length_in_bytes(element_t e) and int element_to_bytes(unsigned char *data, element_t e) The problem is that the value…
FFYzz
  • 13
  • 3
1
vote
2 answers

Save and load asymmetric keys from jPBC

I want similar functionality as prescribe Easy way to store/restore encryption key for decrypting string in java But my case is different. In the above link they are using javax.crypto.* but in my case I am using org.bouncycastle.crypto.* and…
Junaid
  • 2,572
  • 6
  • 41
  • 77
0
votes
1 answer

Request for Attribute based Encryption pseudocode or java code (Jpbc library)

I want to implement the bilinear pairing Attribute based Encryption using Jpbc library. However, I could not find any pseudocode or code. Could you help me to find the pseudocode or code of ABE. Thank you.
user1850484
  • 388
  • 1
  • 3
  • 23
0
votes
1 answer

How to decrypt plaintext from bilinear mapping in JPBC?

Suppose the plaintext is a string, and I map the plaintext to the group using setFromHash function before I can perform the encryption operation, and the final decryption is only the hash of the plaintext, not the plaintext, how can I decrypt the…
0
votes
0 answers

How to serialize pairing or how to use JPBC between client and server?

I'm doing a project which uses JPBC library in Java. In local area, it's easy to implement a scheme because I don't care about serializing keys or other parameters. However, if I implement a encryption scheme, I must consider how to serialize the…
chaoliu
  • 1
  • 1
0
votes
0 answers

BLS Signature Scheme in Java: Storing and Loading Keys

We need a method to sign messages using signatures that are as short as possible and came across the BLS scheme, which promises rather short-ish signatures. Trying the JPBC implementation, the examples are easy to set up and run, but they lack a…
Eadilu
  • 91
  • 1
  • 5
0
votes
1 answer

Java Get String from JPBC library Element

I'm using the jpbc java library to achieve the HIBE encryption in order to encrypt and decrypt a String data. In this case, i found a function that's allowed me to get an Element from a String as it shown below and it make me able to encrypt &…
arbi mahdi
  • 64
  • 2
  • 9