Documentation
¶
Index ¶
Constants ¶
View Source
const ( Match = int(C.THEMIS_SCOMPARE_MATCH) NoMatch = int(C.THEMIS_SCOMPARE_NO_MATCH) NotReady = int(C.THEMIS_SCOMPARE_NOT_READY) )
Secure comparison result.
View Source
const ( COMPARE_MATCH = Match COMPARE_NO_MATCH = NoMatch COMPARE_NOT_READY = NotReady )
Secure comparison result.
Deprecated: Since 0.11. Use "compare.Match..." constants instead.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SecureCompare ¶
type SecureCompare struct {
// contains filtered or unexported fields
}
SecureCompare is an interactive protocol for two parties that compares whether they share the same secret or not.
func (*SecureCompare) Append ¶
func (sc *SecureCompare) Append(secret []byte) error
Append adds data to be compared.
func (*SecureCompare) Begin ¶
func (sc *SecureCompare) Begin() ([]byte, error)
Begin initiates secure comparison and returns data to be sent to the peer.
func (*SecureCompare) Close ¶
func (sc *SecureCompare) Close() error
Close destroys Secure Comparator.
func (*SecureCompare) Proceed ¶
func (sc *SecureCompare) Proceed(data []byte) ([]byte, error)
Proceed continues the comparison process with peer data and returns a reply. Comparison is complete when this method returns nil successfully.
func (*SecureCompare) Result ¶
func (sc *SecureCompare) Result() (int, error)
Result returns the result of the comparison.
Click to show internal directories.
Click to hide internal directories.