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
0
votes
0 answers

I have installed charm-crypto, what is the reason for the error when I use it

When I use "from charm. Toolbox. Pairinggroup import pairinggroup, ZR, G1, G2, GT, pair" prompt error. Cannot find reference 'GT' in 'pairinggroup.py' How do I fix this error
lch
  • 1
0
votes
2 answers

How to convert a python integer to a integer.Element mod N in Charm-crypto?

I want to convert a python integer to a integer.Element mod N in Charm-crypto, but I don't know how to do this. I found the Class of Conversion that said its input types can be bytes, Bytes, int, Integer Element, Modular Integer Element and output…
0
votes
0 answers

Error install Charm Crypto 0.50 Error:---> make: *** [Makefile:29: all] Segmentation fault

Charm installation problem solution needs suggestions. Hello, I am not a well good expert I have to face the problem by installing charm crypto 0.50 documentation using ubuntu 21.10 using python 3.7.1 and got the error make file 29 and…
Alex
  • 1
  • 7
0
votes
1 answer

error while using make command in ubuntu 20.04

I'm trying to install Charm library in python 3.8, but when I use the make command this error occurs, does anyone know how to solve this problem? This is the tutorial I'm using to install the library…
Chai Ma
  • 27
  • 7
0
votes
1 answer

How to install Charm-crypto library for python3 on windows 10?

I've installed GMP 5.x , PBC (latest) and OPENSSL but when I try `pip3 install charm-crypto this error occurs. If anyone knows how to solve this error because I don't understand it please tell me? By the way the error is much longer than this but I…
Chai Ma
  • 27
  • 7
0
votes
0 answers

What security level is provided by pairing curves in Charm Crypto?

I want to know what security level is provided by the type a and type d curves which are included in charm crypto library? For example, the type a curves SS512 and SS1024 have a prime field of 512 and 1024 bits respectively? Can anyone tell me what…
Aisha
  • 127
  • 10
0
votes
1 answer

How to convert python integers to a number in ZP group in Charm-Crypto?

I want to convert an integer to a number in ZP group. I have written following code but it is returning a number of type. Can someone tell me how can I do this? num= 193857774579808121448 bb= Conversion. IP2OS(num, …
Aisha
  • 127
  • 10
0
votes
0 answers

How to compute polynomials in CPABE Scheme based on Elliptic Curves?

I am implementing the CPABE scheme proposed in paper CPABE based on Elliptic Curves using Charm Crypto Library Charm. I have written the setup function correctly but I am having a problem in KeyGen, Encrytp and Decrypt functions where different…
Aisha
  • 127
  • 10
0
votes
2 answers

Java equivalent of Crypto Charm ECGroup serialize / deserialize

I am new to cryptography and am learning how to use Bouncy Castle in Java for crypto purposes. I know that Python has Crypto-Charm which I have used import charm.toolbox.ecgroup serializedKey =…
user1660344
  • 39
  • 1
  • 3
  • 8
0
votes
0 answers

How to implement a Collision Resistance Hash Function in Charm Crypto Python?

I am trying to implement a collision resistance hash function i.e. Hash Function in charm crypto. I have checked the hashModule.py and Hash.py classes and tried the Waters Hashing Scheme also. But I unable to find a collision resistance hash…
Aisha
  • 127
  • 10
0
votes
1 answer

Python.exe stopped working on Charm Crypto HybridEnc.Decrypt()

I am trying to run the code of a Proxy Re-Encryption implementation, thanks to Nikosft on https://github.com/nikosft/IB-PRE I am using the pre_mg07a.py file. Python executes and successfully prints all debug messages for encryption and reencryption,…
Shoaib
  • 188
  • 2
  • 11
0
votes
1 answer

Web Application with Charm Crypto

I suppose to make a web application where the users can login in this platform with username and password (I want to make a MySQL database to stare username and password). After when the user is logged, he selects a file from his computer and send…
JLo
  • 53
  • 1
  • 7
0
votes
1 answer

How to encode data for use in Charm's attribute based encryption?

I'm using Charm Crypto from Github. I'd like to use the attribute based encryption algorithms. The test code works fine, however, it uses a random message generated from PairingGroup. How do I use my own data for encryption? >>> group =…
projectshave
  • 3,771
  • 5
  • 23
  • 24
0
votes
0 answers

Benchmarking of a scheme in charm-crypto?

Looking at the following scheme in Charm Crypto abenc_yct14 and i am trying to understand the use of looping for the benchmark function (line 134). Seems to me that the algorithms are run multiple times with the total time given as the result. Is…
chisky
  • 13
  • 3
0
votes
1 answer

Charm-Crypto: Got when trying to serialize object

I'm implementing a Dabe scheme with Charm and I need to share the public parameters over multiple entities. I'm trying to serialize the charm object containing these parameters using objectToBytes() function in the serialization API that come with…
Delsan