Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
authority
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
katzenpost
authority
Commits
23816327
Commit
23816327
authored
Mar 20, 2019
by
David Stainton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add Loopix traffic parameters to pki doc
parent
d131305a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
16 deletions
+22
-16
internal/s11n/document.go
internal/s11n/document.go
+22
-16
No files found.
internal/s11n/document.go
View file @
23816327
...
...
@@ -49,18 +49,20 @@ var (
type
Document
struct
{
// Version uniquely identifies the document format as being for the
// specified version so that it can be rejected if the format changes.
Version
string
Epoch
uint64
Version
string
Epoch
uint64
SendRatePerMinute
uint64
MixLambda
float64
MixMaxDelay
uint64
SendLambda
float64
SendMaxInterval
uint64
MixLoopLambda
float64
MixLoopMaxInterval
uint64
Mu
float64
MuMaxDelay
uint64
LambdaP
float64
LambdaPMaxDelay
uint64
LambdaL
float64
LambdaLMaxDelay
uint64
LambdaD
float64
LambdaDMaxDelay
uint64
LambdaM
float64
LambdaMMaxDelay
uint64
Topology
[][][]
byte
Providers
[][]
byte
...
...
@@ -180,12 +182,16 @@ func VerifyAndParseDocument(b []byte, verifier cert.Verifier) (*pki.Document, er
doc
.
SharedRandomValue
=
d
.
SharedRandomValue
doc
.
Epoch
=
d
.
Epoch
doc
.
SendRatePerMinute
=
d
.
SendRatePerMinute
doc
.
MixLambda
=
d
.
MixLambda
doc
.
MixMaxDelay
=
d
.
MixMaxDelay
doc
.
SendLambda
=
d
.
SendLambda
doc
.
SendMaxInterval
=
d
.
SendMaxInterval
doc
.
MixLoopLambda
=
d
.
MixLoopLambda
doc
.
MixLoopMaxInterval
=
d
.
MixLoopMaxInterval
doc
.
Mu
=
d
.
Mu
doc
.
MuMaxDelay
=
d
.
MuMaxDelay
doc
.
LambdaP
=
d
.
LambdaP
doc
.
LambdaPMaxDelay
=
d
.
LambdaPMaxDelay
doc
.
LambdaL
=
d
.
LambdaL
doc
.
LambdaLMaxDelay
=
d
.
LambdaLMaxDelay
doc
.
LambdaD
=
d
.
LambdaD
doc
.
LambdaDMaxDelay
=
d
.
LambdaDMaxDelay
doc
.
LambdaM
=
d
.
LambdaM
doc
.
LambdaMMaxDelay
=
d
.
LambdaMMaxDelay
doc
.
Topology
=
make
([][]
*
pki
.
MixDescriptor
,
len
(
d
.
Topology
))
doc
.
Providers
=
make
([]
*
pki
.
MixDescriptor
,
0
,
len
(
d
.
Providers
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment