Giter Club home page Giter Club logo

Comments (14)

emantas avatar emantas commented on August 16, 2024

@sagrawal87 Same error here , same configuration as Rocky before. Any solution so far?

from abe.

sagrawal87 avatar sagrawal87 commented on August 16, 2024

Hi. I haven't seen this error before. May be try the newer version of Charm, Charm 0.43, which I used. It can be downloaded from here.

Let me know if the error doesn't go away.

from abe.

emantas avatar emantas commented on August 16, 2024

@sagrawal87 tried it with Charm 0.43 and still the same error

from abe.

RockyZhangHKU avatar RockyZhangHKU commented on August 16, 2024

@emantas @sagrawal87 Hi, everyone, I also tried Charm 0.43 on my Mac OS(High Sierra10.13, Python 2.7.11). After Installing GMP 5.x, PBC, OpenSSL, I download the Charm-Crypto-0.43_Python2.7.tar.gz (Python 2.7 Source) on my laptop, when executing "make", I meet this error:

Setup build/staging directories
set -x
set +x
Building the Charm Framework
/Users/rocky/anaconda/bin/python distribute_setup.py
Downloading http://pypi.python.org/packages/source/d/distribute/distribute-0.6.42.tar.gz
Traceback (most recent call last):
File "distribute_setup.py", line 497, in <module>
main(sys.argv[1:])
File "distribute_setup.py", line 492, in main
tarball = download_setuptools()
File "distribute_setup.py", line 193, in download_setuptools
src = urlopen(url)
File "/Users/rocky/anaconda/lib/python2.7/urllib2.py", line 154, in urlopen
return opener.open(url, data, timeout)
File "/Users/rocky/anaconda/lib/python2.7/urllib2.py", line 437, in open
response = meth(req, response)
File "/Users/rocky/anaconda/lib/python2.7/urllib2.py", line 550, in http_response
'http', request, response, code, msg, hdrs)
File "/Users/rocky/anaconda/lib/python2.7/urllib2.py", line 475, in error
return self._call_chain(*args)
File "/Users/rocky/anaconda/lib/python2.7/urllib2.py", line 409, in _call_chain
result = func(*args)
File "/Users/rocky/anaconda/lib/python2.7/urllib2.py", line 558, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
urllib2.HTTPError: HTTP Error 403: SSL is required
make: *** [all] Error 1
I am wondering whether it caused by my openssl installation, have you meet this error before?

from abe.

RockyZhangHKU avatar RockyZhangHKU commented on August 16, 2024

@sagrawal87 Hi Shashank, can I ask you which is your Charm 0.43 version? Charm-Crypto-0.43.dmg (Mac OS X 10.6+ Installer) or Charm-Crypto-0.43_Python2.7.tar.gz (Python 2.7 Source)?Have you test your code under Charm-dev?

from abe.

sagrawal87 avatar sagrawal87 commented on August 16, 2024

The DMG file is an easy way to install charm. Just download, extract, and follow the instructions in README-OSX.rtf. I think dependencies like PBC, OpenSSL, etc. are automatically taken care of.

from abe.

RockyZhangHKU avatar RockyZhangHKU commented on August 16, 2024

Hi Shashank, Thanks for your response, well, I still failed in my Macbook, but then I have deployed it successfully in my Ubuntu 12.04 with Charm 0.42 and Python 3.2.3. The AC17 and BSW07 scheme has been tested correctly. 👍 But there is another issue about CGW15 and waters11 scheme. I will open a new topic to talk with you more.

from abe.

stylishssai avatar stylishssai commented on August 16, 2024

sai@sai-Lenovo-Invalid-entry-length-16-Fixed-up-to-11:~/Downloads/veera/code/ABE$ python main.py
Traceback (most recent call last):
File "main.py", line 38, in
main()
File "main.py", line 25, in main
ctxt = cpabe.encrypt(pk, msg, policy_str)
File "/home/sai/Downloads/veera/code/ABE/ac17.py", line 186, in encrypt
prod1 *= (hash_table[j][l][t] ** row[j])
pairing.Error: unsupported right operand types: int, bytes, str
@RockyZhangHKU please help me for getting this error...AC17 scheme
I am using Ubuntu 16.04 and python 2.7

from abe.

samandeepdhindsa18 avatar samandeepdhindsa18 commented on August 16, 2024

HI @RockyZhangHKU ,
I am facing the same issue ,can you suggest me the solution?

File "main.py", line 31, in main
ctxt = cpabe.encrypt(pk, msg, policy_str)
File "/home/ubuntu/Desktop/CodeAccessControl/ABE-master/ac17.py", line 201, in encrypt
prod1 *= (hash_table[j][l][t] ** row[j])
pairing.Error: unsupported right operand types: int, bytes, str

from abe.

samandeepdhindsa18 avatar samandeepdhindsa18 commented on August 16, 2024

HI @sagrawal87 ,

I am facing the same issue ,can you suggest me the solution?

File "main.py", line 31, in main
ctxt = cpabe.encrypt(pk, msg, policy_str)
File "/home/ubuntu/Desktop/CodeAccessControl/ABE-master/ac17.py", line 201, in encrypt
prod1 *= (hash_table[j][l][t] ** row[j])
pairing.Error: unsupported right operand types: int, bytes, str

from abe.

sagrawal87 avatar sagrawal87 commented on August 16, 2024

@samandeepdhindsa18 Could you say which version of Charm and Python are you using?

from abe.

samandeepdhindsa18 avatar samandeepdhindsa18 commented on August 16, 2024

from abe.

sagrawal87 avatar sagrawal87 commented on August 16, 2024

@samandeepdhindsa18 Try Charm 0.43 from here

from abe.

canhtuan97 avatar canhtuan97 commented on August 16, 2024

How can I save the masterkey and the publickey at the server and when I reboot the server I can still use mk, pk? Charm-Crypto

from abe.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.