Fraunhofer-AISEC / rabe

rabe is an Attribute Based Encryption library, written in Rust
MIT License
76 stars 20 forks source link

Duplicate attributes not supported in BSW scheme #15

Closed wkwai closed 5 months ago

wkwai commented 1 year ago

The following policy with duplicated attribute "B" would caused decryption in BSW scheme to fail:

    let policy = String::from(r#"{"name": "or", "children": [{"name": "and", "children":  [{"name": "A"}, {"name": "B"}]}, {"name": "and", "children":  [{"name": "C"}, {"name": "B"}]}]}"#);

I've tested with the Python implementation by the original BSW authors and duplicated attributes are supported. Their paper also mentioned duplicated attributes are supported.

Please help to resolve this.

georgbramm commented 8 months ago

I will have look in the course of this week... sorry for the late response =)

georgbramm commented 5 months ago

should be fixed now