Questions tagged [charm-crypto]

Charm is a framework for rapidly prototyping advanced cryptosystems in Python.

Charm is a framework for rapidly prototyping advanced cryptosystems in Python.

References:

35 questions
2
votes
1 answer

Charmcrypto Installation: ImportError during make

Setup build/staging directories set -x set +x Building the Charm Framework /usr/bin/python3 setup.py build Downloading http://pypi.python.org/packages/source/d/distribute/distribute-0.6.42.tar.gz Traceback (most recent call last): File…
Mr. A
  • 103
  • 1
  • 2
  • 17
2
votes
1 answer

Serializing and deserializing group elements in Charm-Crypto

I need help to convert the list representation (string) of elliptic curve pairing group element back to an object. Explanation: I am using charm crypto v0.43 to use CPABE scheme in my web application. I need to store the pairing element that is…
2
votes
1 answer

How to set order of pairing groups in Charm crypto

I am trying to implement a scheme using charm crypto framework. For that I need to limit the order of Pairing groups. It was mentioned in docs that all pairing groups are of prime order p. Is there a way to set and retrieve the order of a…
1
vote
1 answer

How to perform XOR of two pairing elements of group GT in Charm-Crypto?

In Charm Crypto, I want to compute the XOR of two pairing elements belonging to group GT. However, it seems that XOR operation is not supported but only multiplication(mul) and division(div) operations are supported for pairing element of group…
ashizz
  • 11
  • 1
1
vote
1 answer

Problem with installing Charm-Crypto for Python3

Hello fellow Programmers, currently I am trying to install Charm-Crypto 0.43 on my Ubuntu. Unfortunately nothing seems to work. I tried the linked manual install, as well as pip install charm-crypto I always get this Error log: [...] running…
1
vote
0 answers

how to export/import keys in charm-crypto or in python generaly

I am trying to create an ABE by using charm-crypto library, I managed to generate the master secret key (msk) and the master public key (mpk) : group = PairingGroup('SS512') cpabe = CPabe09(group) (msk, mpk) = cpabe.setup() now I need to export…
A.D
  • 11
  • 1
1
vote
1 answer

What is the Identity element on Elliptic Curve in Charm Crypto?

I need the identity element on an elliptic curve in charm crypto. Because I want to sum up 5 different random elements in G1 i.e. elementList= {g1, g2, g3, g4, g5}. Right now, I have generated another random element in G1 i.e. temp=…
Aisha
  • 127
  • 10
1
vote
0 answers

How to XOR two group elements in Charm Crypto?

I am using Charm Crypto for implementation. I want to XOR two elements in G1. I have written the following code and XOR operation is correct but I am getting a list. Can someone tell me how can I convert the list to an element in G1? Hope to hear…
Aisha
  • 127
  • 10
1
vote
1 answer

Complex policies for abenc_bsw07 in charm crypto

I am trying to use cpabe functionality of the Charm Crypto library. Specifically I am using the abenc_bsw07 scheme. Is there a way to define more complex policies and attributes than the ones in the examples: attributes = ['ONE', 'TWO',…
1
vote
1 answer

Multiplicative inverse in Charm Crypto

In Charm Crypto, how would I go about getting at the multiplicative inverse for ZR? I have roughly the following code: a = group.random(G) e = group.random(ZR) x = a ** e somestuff() y = x ** (1/e) where a is not stored on purpose. However while -e…
1
vote
2 answers

How to serialize/store the ciphertext encrypted by hybrid CPabe_BSW07 in Charm

I want to store the ciphertext encrypted by hybrid cpabe_BSW07 in files, but I found errors when pickling the ciphertext: raise TypeError, "can't pickle %s objects" % base.__name__ TypeError: can't pickle Element objects from…
Lex
  • 31
  • 2
1
vote
1 answer

Is there a way to extend Charm-Crypto schemes to encrypt files?

As far as I know the implemented Charm schemes only allow you to encrypt either randomly generated group element or msg string encoded as a group element. But these have limitations too, as the order of group elements are derived from prime…
1
vote
0 answers

Is there an identity group element in pairing groups in Charm Crypto

I need to multiply a group element with another group element which doesn't change its value. As the integer multiplication of a pairing group element will alter its value. group = PairingGroup('SS512') g= group.random(G1) g*1 ==> some other pairing…
1
vote
0 answers

Big List Python for Charm-Crypto group element

While working with Charm-Crypto package, I need to do lots and lots of group element exponentiation. The group elements come from bi-linear pairing group. The Order of the group element is a 1024 bit integer. So to reduce the average cost of…
0
votes
0 answers

Install charm crypto on windows 10

PLEASE i can't isntall charm chrypto on windows10 , can anyone guide me? and send me all the dependecies to install with links , cuz i don't find them pleaaasee to help me find dependecies and install charm crypto, pleaase
1
2 3