rlwe-challenges-0.1.0.1: Ring-LWE/LWR challenges using Lol.

Copyright(c) Eric Crockett 2011-2017
Chris Peikert 2011-2017
LicenseGPL-2
Maintainerecrockett0@email.com
Stabilityexperimental
PortabilityPOSIX
Safe HaskellNone
LanguageHaskell2010

Crypto.RLWE.Challenges.Verify

Description

Verify RLWE/RLWR challenges to ensure that challenges are generated faithfully.

Synopsis

Documentation

verifyMain :: FilePath -> IO () Source #

Verifies all instances in the challenge tree, given the path to the root of the tree.

readChallenge :: (MonadIO m, MonadError String m) => FilePath -> String -> m (BeaconAddr, [InstanceU]) Source #

Read a challenge from a file, outputting the beacon address and a list of instances to be verified.

regenChallenge :: MonadIO m => FilePath -> String -> m (Maybe ()) Source #

Reads a challenge and attempts to regenerate all instances from the provided seed. Returns (Just ()) if regeneration succeeded for all instances.

beaconAvailable :: MonadIO m => FilePath -> BeaconEpoch -> m Bool Source #

Whether we have an XML file for the beacon at the given epoch.

readBeacon :: (MonadIO m, MonadError String m) => FilePath -> BeaconEpoch -> m Record Source #

Read an XML file for the beacon corresponding to the provided time.