Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
briar
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
Model registry
Operate
Environments
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
Show more breadcrumbs
Julian Dehm
briar
Commits
11ea898b
Commit
11ea898b
authored
12 years ago
by
akwizgran
Browse files
Options
Downloads
Patches
Plain Diff
Erase the tag key after use.
parent
c0c6af7a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/build.xml
+20
-20
20 additions, 20 deletions
src/build.xml
src/net/sf/briar/transport/TransportConnectionRecogniser.java
+2
-1
2 additions, 1 deletion
...net/sf/briar/transport/TransportConnectionRecogniser.java
with
22 additions
and
21 deletions
src/build.xml
+
20
−
20
View file @
11ea898b
<project
name=
'prototype'
default=
'compile'
>
<fileset
id=
'prototype-jars'
dir=
'../libs'
>
<include
name=
'*.jar'
/>
</fileset>
<path
id=
'android-jar'
>
<pathelement
location=
'../android.jar'
/>
</path>
<path
id=
'prototype-classes'
>
<pathelement
location=
'../build'
/>
</path>
<target
name=
'clean'
>
<delete
dir=
'../build'
/>
</target>
<target
name=
'compile'
>
<mkdir
dir=
'../build'
/>
<javac
srcdir=
'net/sf/briar'
destdir=
'../build'
source=
'1.5'
includeantruntime=
'false'
debug=
'off'
>
<classpath>
<fileset
id=
'prototype-jars'
dir=
'../libs'
>
<include
name=
'*.jar'
/>
</fileset>
<path
id=
'android-jar'
>
<pathelement
location=
'../android.jar'
/>
</path>
<path
id=
'prototype-classes'
>
<pathelement
location=
'../build'
/>
</path>
<target
name=
'clean'
>
<delete
dir=
'../build'
/>
</target>
<target
name=
'compile'
>
<mkdir
dir=
'../build'
/>
<javac
srcdir=
'net/sf/briar'
destdir=
'../build'
source=
'1.5'
includeantruntime=
'false'
debug=
'off'
>
<classpath>
<fileset
refid=
'prototype-jars'
/>
<path
refid=
'android-jar'
/>
<path
refid=
'prototype-classes'
/>
</classpath>
</javac>
</target>
</classpath>
</javac>
</target>
</project>
This diff is collapsed.
Click to expand it.
src/net/sf/briar/transport/TransportConnectionRecogniser.java
+
2
−
1
View file @
11ea898b
...
...
@@ -55,7 +55,7 @@ class TransportConnectionRecogniser {
for
(
long
connection1
:
window
.
setSeen
(
connection
))
{
byte
[]
tag1
=
new
byte
[
TAG_LENGTH
];
crypto
.
encodeTag
(
tag1
,
cipher
,
key
,
connection1
);
if
(
connection1
<
=
connection
)
{
if
(
connection1
<
connection
)
{
TagContext
old
=
tagMap
.
remove
(
new
Bytes
(
tag1
));
assert
old
!=
null
;
ByteUtils
.
erase
(
old
.
context
.
getSecret
());
...
...
@@ -95,6 +95,7 @@ class TransportConnectionRecogniser {
TagContext
old
=
tagMap
.
put
(
new
Bytes
(
tag
),
tctx
);
assert
old
==
null
;
}
key
.
erase
();
// Create a removal context to remove the window later
RemovalContext
rctx
=
new
RemovalContext
(
window
,
secret
,
alice
);
removalMap
.
put
(
new
RemovalKey
(
contactId
,
period
),
rctx
);
...
...
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