Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
Tahoe-CHK
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
GitLab 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-CHK
Commits
e6350847
Commit
e6350847
authored
4 years ago
by
Jean-Paul Calderone
Browse files
Options
Downloads
Patches
Plain Diff
one more camelCase
parent
ff1d51ed
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/CHK.hs
+2
-2
2 additions, 2 deletions
src/CHK.hs
with
2 additions
and
2 deletions
src/CHK.hs
+
2
−
2
View file @
e6350847
...
...
@@ -599,7 +599,7 @@ chkEncode version stateRef p@(Parameters segmentSize total happy required) dataS
--
-- This replaces allmydata.immutable.upload.EncryptAnUploadable
chkEncrypt
::
AESKey128
->
(
Integer
->
IO
B
.
ByteString
)
->
IO
(
Integer
->
IO
B
.
ByteString
)
chkEncrypt
key
read
_c
leartext
=
do
chkEncrypt
key
read
C
leartext
=
do
-- ctr only works "correctly" (for our purposes) on whole blocks. If a
-- partial block is requested then we need to read the whole block it is
-- part of and then save some of the output for the next call.
...
...
@@ -634,7 +634,7 @@ chkEncrypt key read_cleartext = do
-- Get the amount of cleartext we have to read to produce at least the
-- amount of ciphertext we need.
cleartext
<-
read
_c
leartext
(
fromIntegral
blockSafeLength
)
cleartext
<-
read
C
leartext
(
fromIntegral
blockSafeLength
)
let
(
ciphertext
,
newIV
)
=
ctr
key
iv
cleartext
-- Split the ciphertext into the part we need to return from this call
...
...
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