6 ms·
https://github.com/apple/swift-homomorphic-encryption/blob/356b9d19ef1842d31ffc16e29956ebfd9bb43e96/Sources/PrivateInformationRetrieval/KeywordDatabase.swift#L5
by karulont 2y ago
https://github.com/apple/swift-homomorphic-encryption/blob/356b9d19ef1842d31ffc16e29956ebfd9bb43e96/Sources/PrivateInformationRetrieval/KeywordDatabase.swift#L55 https://github.com/apple/swift-homomorphic-encryption/blob/3...
Run SHA256 on the keyword, truncate the hash and take the modulus with number of shards.