Documentation ¶
Index ¶
- Constants
- func SplitByN(filePath string, N int64) (Data [][]byte, sep int64, err error)
- type GenProofResponse
- type HashSelf
- type QElement
- type RSAKeyPair
- func (keyPair RSAKeyPair) AggrAppendProof(AggrSigma string, QSlice []QElement, Phi []string) (string, bool)
- func (keyPair RSAKeyPair) AggrGenProof(QSlice []QElement, Tag []Tag) string
- func (keyPair RSAKeyPair) GenProof(QSlice []QElement, h HashSelf, Phi []string, Matrix [][]byte) <-chan GenProofResponse
- func (r *RSAKeyPair) VerifyAttest(name, u, phiHash, attest, customData string) (bool, error)
- type StatueMsg
- type T
- type Tag
Constants ¶
View Source
const ( Success = 200 Error = 201 ErrorParam = 202 ErrorParamNotFound = 203 ErrorInternal = 204 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type GenProofResponse ¶
type RSAKeyPair ¶
type RSAKeyPair struct { Spk *rsa.PublicKey Ssk *rsa.PrivateKey }
func NewKey ¶
func NewKey() *RSAKeyPair
func (RSAKeyPair) AggrAppendProof ¶
func (RSAKeyPair) AggrGenProof ¶
func (keyPair RSAKeyPair) AggrGenProof(QSlice []QElement, Tag []Tag) string
func (RSAKeyPair) GenProof ¶
func (keyPair RSAKeyPair) GenProof(QSlice []QElement, h HashSelf, Phi []string, Matrix [][]byte) <-chan GenProofResponse
func (*RSAKeyPair) VerifyAttest ¶ added in v0.7.3
func (r *RSAKeyPair) VerifyAttest(name, u, phiHash, attest, customData string) (bool, error)
Click to show internal directories.
Click to hide internal directories.