Skip to content

FavorWen/pre

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

An implementaion of PRE with publicly verification

Proxy Re-Encryption with publicly verification, pre in short, is proposed in Signcryption of proxy re-encryption with publicly verificatio.

This implementaion is based on pbc. Thanks for pbc's contributors.

Algorithm

  1. SetUp(lamda) -> public params
  2. KeyGen() -> key pairs
  3. RkeyGen() -> re-encryption key
  4. Signc() -> original cipher
  5. ReSignc() -> re-encryption cipher
  6. UnSignc() -> plaintext if you want to know how it works, go to read the paper.

Usage

  • pre.go implemented the core Algorithm
  • ulti.go implemented how to seriliaze the data structures in pre This project is based on pbc, so you need to install pbc first. And a very important thing is you need to modify element.go or the serialization will fail!
func checkFieldsMatch(f1, f2 *C.struct_field_s) {
    if f1 != f2 {
		return
	}
    /*
	if f1 != f2 {
		panic(ErrIncompatible)
	}*/
}

Usage sample is in pre_test.go-TestSample()

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages