package
0.0.0-20241019075200-7a7f2041bc1e
Repository: https://github.com/si-co/vpir-code.git
Documentation: pkg.go.dev
# Functions
No description provided by the author
Raise the group element obtained via index hashing to the scalar.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
CreateRandomBytes return a random bytes database.
No description provided by the author
No description provided by the author
CreateRandomMerkle blockLen is the number of byte in a block, as byte is viewed as an element in this case.
CreateBitBytes return a random bytes database.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
GetKeyInfoFromPacket parses packet bytes and returns information about the key.
Take the indices (j, l) and hash them to get a group element.
HashToIndex hashes the given id to an index for a database of the given length.
InitBytes return an empty database with a initial zero capacity, to be used when embedding keys into a bytes database.
Marshal a slice of group elements.
No description provided by the author
No description provided by the author
Simple ISO/IEC 7816-4 padding where 0x80 is appended to the block, then zeros to make up to blockLen.
No description provided by the author
Unmarshal a slice of group elements.
No description provided by the author
# Structs
Auth is authentication information for the single-server setting.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Merkle is the info needed for the Merkle-tree based approach.