Code Monkey home page Code Monkey logo

dcpabe's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

dcpabe's Issues

Encryption bug

I discovered this bug while running the test case of your library.

Element M = pairing.getGT().newRandomElement().getImmutable();
message.m = M.toBytes();

I understand that you want to associate the message byte array with the element M that is generated randomly but surely this won't allow if we set the message by ourselves. Also the bug itself will actually passes the test but also the test should be wrong as in the test case there isn't any byte assigned to it then suddenly after encryption the byte is then filled with random element M, which is wrong.

What I suggest for fix of this bug is something like this:

Element M = pairing.getGT().newZeroElement();
M.setFromBytes(message.m)

Decryption algorithm of DCPABE.java

As Per the Lewko Waters Paper "Decentralized ABE" ,in decrypt algorithm , the decryptor need to choose constants cx such that Σ cx Ax = (1,0,...0) . In the of DCPABE.java file , how the statement "t.mul(c1x.mul(p1).mul(p2.invert()));" in loop i.e. the product of the statement satisfies the condition. There is no algorithm for choosing constants in package sg.edu.ntu.sce.sands.crypto.dcpabe.ac

Please reply

paper

where can I check the corresponding papers?

CVE-2019-12086

Vulnerable versions: >= 2.0.0, < 2.9.9
Patched version: 2.9.9

A Polymorphic Typing issue was discovered in FasterXML jackson-databind 2.x before 2.9.9. When Default Typing is enabled (either globally or for a specific property) for an externally exposed JSON endpoint, the service has the mysql-connector-java jar (8.0.14 or earlier) in the classpath, and an attacker can host a crafted MySQL server reachable by the victim, an attacker can send a crafted JSON message that allows them to read arbitrary local files on the server. This occurs because of missing com.mysql.cj.jdbc.admin.MiniAdmin validation.

Policy structure

Could you tell me how do you define the structure for the policy? In the test case you wrote something like this
AccessStructure as = AccessStructure.buildFromPolicy("and a or d and b c");
and the attributes that fulfill the policy is a and d. How is that possible? Also what if I would like to make simple policy like a or b? How do I define it?

About encrypt any file

When I try to encrypt the specified file, the decrypted data is always a fixed length byte stream, resulting in decryption failure. Could you give me some guidance。

// Message message = DCPABE.generateRandomMessage(gp);
Path path = Paths.get("src/test/java/textTest/test.txt");
byte[] ss = Files.readAllBytes(path);
Message msg = new Message(ss);

Lambda input for global setup

Could you explain what the lambda input for global setup represents? In the Testing.java you put 160 as the input parameter of the global setup, is it the length of the keys later will be generated or the security level?

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.