JHUISI / charm

Charm: A Framework for Rapidly Prototyping Cryptosystems
http://charm-crypto.io
GNU Lesser General Public License v3.0
541 stars 166 forks source link

initialization of interger failed without raising an exception #287

Closed kitescat closed 1 year ago

kitescat commented 2 years ago

In charm/toolbox/conversion.py Line3: from charm.core.math.interger import interger why came out an error:initialization of interger failed ? Im using Charm-Crypto 0.5,py3.8,testing yct_14 on ubuntu 18. Could anyone who knows about it contact me asap?Thanks!

PekeDevil commented 1 year ago

I also was unable to implement anything using YCT_14.

However, YCT14 is a broken scheme, if possible you should choose a different one. One of the researchers that found the vulnerability in YCT14 explains it here.

That being said, in this issue some suggest that downgrading Python may solve some of the problems with integers on this scheme.

Besides, AC17 and YCT14 apparently have some issues with serialization.

So yeah, you should avoid using that scheme. However, if you cannot, I hope the above issues help.

kitescat commented 1 year ago

Thx!I didn’t expect to get replay such soon.

  1. I did notice that YCT14 is a broken scheme.So now im using the BSW07 as my schema.
  2. Any other better schema for an encryption function? Seems that some schemas implemented in Charm has been proved that they are unsafe. This's the top one topic that im concerned now.
PekeDevil commented 1 year ago

Actually, following Monday I'm presenting a paper about a survey of ABE libraries and you can read it here. Although I only provide experimental results for a few CP-ABE schemes, I think that the Tables will be useful to you. I'm working on an expanded version in which I implement ALL the schemes from four different libraries in an RPI0 and an RPI4. This one, however, is still being revised by my advisors 😄

UPDATE: The Expanded Survey is here!

Still, so far my finding are:

However, if you need an even fastest scheme for encryption, you should implement OpenABE's W11. Bear in mind, however, that this scheme is slower on decryption.

From the point of view of pure security (aka the maths behind the algorithms), I think this paper by Marloes Venema and Greg Alpar will help you. They even have another paper in which they study and discuss the mathematical efficiency of various algorithms.

Both of the above papers have a GitHub repo:

kitescat commented 1 year ago

Thx for answering my questions with these details! My research intrests include blockchain and cryptography.Recently i've been working on experiments about Decentralizing Kerberos(which is a traditional schema about intra-domain authentication in Computer systems).

I've read your paper about the survey of ABE libraries and other articles you've published.Really appreciate your work!

Thx again!Hope your paper will be published smoothly!

PekeDevil commented 1 year ago

I'm glad it was of help! If you're working with Blockchain, ABE and access control, Damiano Di Francesco Maesa may be interesting for you. Last time I checked, he had three papers with Blockchain, Access control and attribute management.

Wish you the best of lucks with your research!