public void SetUp()
 {
     AccessTree = new AccessTree
     {
         RootNode = new OrGate
         {
             ChildNodes = new List <INode>
             {
                 new AndGate
                 {
                     ChildNodes = new List <INode>
                     {
                         new Attribute
                         {
                             Value = "Computer Science"
                         },
                         new Attribute
                         {
                             Value = "Admission-committee"
                         }
                     }
                 },
                 new Attribute
                 {
                     Value = "Dean"
                 },
                 new SubsetGate
                 {
                     ChildNodes = new List <INode>
                     {
                         new Attribute
                         {
                             Value = "Computer Science"
                         },
                         new Attribute
                         {
                             Value = "Admission-committee"
                         },
                         new Attribute
                         {
                             Value = "Faculty"
                         }
                     }
                 }
             }
         }
     };
 }
 public KeyPolicySecretKey Keygen(AccessTree accessTree)
 {
     return(new KeyPolicySecretKey());
 }
Example #3
0
 public CiphertextPolicyEncryptedFile Encrypt(PublicParameters publicParameters, File file, AccessTree accessTree)
 {
     return(new CiphertextPolicyEncryptedFile());
 }