Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tahoe-ssk
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
PrivateStorage
tahoe-ssk
Commits
2cef5546
Commit
2cef5546
authored
1 year ago
by
Jean-Paul Calderone
Browse files
Options
Downloads
Patches
Plain Diff
paper over the unfortunate half-complete key transition
parent
292a8a13
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!4
Standardize on cryptonite
Pipeline
#4580
passed
1 year ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
test/Generators.hs
+6
-2
6 additions, 2 deletions
test/Generators.hs
with
6 additions
and
2 deletions
test/Generators.hs
+
6
−
2
View file @
2cef5546
...
...
@@ -16,8 +16,8 @@ import Hedgehog (MonadGen)
import
qualified
Hedgehog.Gen
as
Gen
import
qualified
Hedgehog.Range
as
Range
import
Tahoe.CHK.Merkle
(
MerkleTree
(
..
),
makeTreePartial
)
import
Tahoe.SDMF
(
KeyPair
(
..
),
Share
(
..
),
toPublicKey
)
import
Tahoe.SDMF.Internal.Share
(
HashChain
(
HashChain
),
SDMF_IV
(
SDMF_IV
))
import
Tahoe.SDMF
(
Share
(
..
)
)
import
Tahoe.SDMF.Internal.Share
(
HashChain
(
HashChain
),
SDMF_IV
(
..
))
rootHashLength
::
Int
rootHashLength
=
32
...
...
@@ -28,6 +28,10 @@ ivLength = 16
signatureLength
::
Range
.
Range
Int
signatureLength
=
Range
.
linear
250
260
newtype
KeyPair
=
KeyPair
RSA
.
PrivateKey
toPrivateKey
(
KeyPair
privKey
)
=
privKey
toPublicKey
=
RSA
.
private_pub
.
toPrivateKey
{- | Generate SDMF shares. The contents of the share are not necessarily
semantically valid.
-}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment