Documentation ¶
Index ¶
- Constants
- Variables
- func GenerateAuthenticator(i int64, s int64, T0 T0, piece []byte, Alpha *pbc.Element, ...) []byte
- func Split(filefullpath string, blocksize, filesize int64) ([][]byte, uint64, error)
- type FileTagT
- type HashNameAndI
- type PBCKeyPair
- type PoDR2Commit
- type PoDR2CommitResponse
- type PoDR2Prove
- type PoDR2ProveResponse
- type PoDR2StatueMsg
- type PoDR2Verify
- type QElement
- type T0
- type TagInfo
Constants ¶
View Source
const ( Success = 200 Error = 201 ErrorParam = 202 ErrorParamNotFound = 203 )
Variables ¶
View Source
var ( Key_Ssk = []byte{55, 32, 220, 181, 208, 19, 253, 239, 98, 230, 99, 252, 121, 44, 39, 145, 251, 44, 7, 84} Key_Spk = []byte{} /* 128 elements not displayed */ )
Functions ¶
func GenerateAuthenticator ¶
Types ¶
type HashNameAndI ¶
type PBCKeyPair ¶
func Keygen ¶
func Keygen() PBCKeyPair
type PoDR2Commit ¶
func (PoDR2Commit) PoDR2ProofCommit ¶
func (commit PoDR2Commit) PoDR2ProofCommit(ssk []byte, sharedParams string, segmentSize int64) (<-chan PoDR2CommitResponse, error)
type PoDR2CommitResponse ¶
type PoDR2CommitResponse struct { T FileTagT `json:"file_tag_t"` Sigmas [][]byte `json:"sigmas"` StatueMsg PoDR2StatueMsg `json:"statue_msg"` }
type PoDR2Prove ¶
type PoDR2Prove struct { QSlice []QElement `json:"q_slice"` T FileTagT `json:"file_tag_t"` Sigmas [][]byte `json:"sigmas"` Matrix [][]byte `json:"matrix"` S int64 `json:"s"` }
func (PoDR2Prove) PoDR2ProofProve ¶
func (prove PoDR2Prove) PoDR2ProofProve(spk []byte, sharedParams string, sharedG []byte, segmentSize int64) <-chan PoDR2ProveResponse
type PoDR2ProveResponse ¶
type PoDR2ProveResponse struct { Sigma []byte `json:"sigmas"` MU [][]byte `json:"mu"` StatueMsg PoDR2StatueMsg `json:"statue_msg"` }
type PoDR2StatueMsg ¶
type PoDR2Verify ¶
type PoDR2Verify struct { T FileTagT `json:"file_tag_t"` QSlice []QElement `json:"q_slice"` MU [][]byte `json:"mu"` Sigma []byte `json:"sigmas"` }
func (PoDR2Verify) PoDR2ProofVerify ¶
func (verify PoDR2Verify) PoDR2ProofVerify(SharedG, spk []byte, sharedParams string) bool
type QElement ¶
func PoDR2ChallengeGenerate ¶
Click to show internal directories.
Click to hide internal directories.