Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tor
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Analyze
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
jarl
tor
Commits
ea6c4f63
Commit
ea6c4f63
authored
21 years ago
by
Roger Dingledine
Browse files
Options
Downloads
Patches
Plain Diff
our circuit symmetric key (for aes) is 127 bits, not 128 bits.
we accept that. svn:r892
parent
48e42e93
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/or/onion.c
+7
-7
7 additions, 7 deletions
src/or/onion.c
with
7 additions
and
7 deletions
src/or/onion.c
+
7
−
7
View file @
ea6c4f63
...
...
@@ -575,13 +575,13 @@ onion_skin_create(crypto_pk_env_t *dest_router_key,
if
(
crypto_rand
(
16
,
pubkey
))
goto
err
;
/*
XXXX
You can't just run around RSA-encrypting any bitstream: if it's
*
greater than the RSA key, then OpenSSL will happily encrypt,
*
and later decrypt to the wrong value. So we set the first bit
*
of 'pubkey' to 0. This means that our symmetric key is really only
*
127 bits long, but since it shouldn't be necessary to encrypt
*
DH public keys values in the first place, we should be fine.
/* You can't just run around RSA-encrypting any bitstream: if it's
* greater than the RSA key, then OpenSSL will happily encrypt,
* and later decrypt to the wrong value. So we set the first bit
* of 'pubkey' to 0. This means that our symmetric key is really only
* 127 bits long, but since it shouldn't be necessary to encrypt
* DH public keys values in the first place, we should be fine.
*/
pubkey
[
0
]
&=
0x7f
;
...
...
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