Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecryptAssignmentData ¶
func DecryptAssignmentData(dlocCiphertexts [][]byte, encryptedAssignmentData []encryption.GCMCiphertext, dlocPrivateKey *rsa.PrivateKey) ([]types.AssignmentData, error)
DecryptAssignmentData decrypts a list of encrypted assignment data. It does this by finding a common k value amongst matched dlocData and attempting to decrypt encrypted assignment keys with this k. It then uses the decrypted assignment keys to decrypt all assignment data.
func DecryptEntryData ¶
func DecryptEntryData(locCiphertexts [][]byte, encryptedEntryData []encryption.GCMCiphertext, locPrivateKey *rsa.PrivateKey) ([]types.EntryData, error)
DecryptEntryData decrypts a list of encrypted entry data. It does this by finding a common k value amongst matched locData and attempting to decrypt encrypted entry keys with this k. It then uses the decrypted entry keys to decrypt all entry data.
Types ¶
type PiMatch ¶
type PiMatch struct { MatchedEntries []Matchable }
func FindMatches ¶
FindMatches returns a list of Pi matches. A match is defined as >= 2 entries sharing the same pi value, but different user IDs. The returned list is nil if no matches were found.