Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
N
nettle
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
Show more breadcrumbs
Dmitry Baryshkov
nettle
Commits
0b808314
Commit
0b808314
authored
Mar 24, 2010
by
Niels Möller
Browse files
Options
Downloads
Patches
Plain Diff
Indentation fix.
Rev: nettle/rsa.h:1.5
parent
09e1ddf0
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
rsa.h
+7
-7
7 additions, 7 deletions
rsa.h
with
7 additions
and
7 deletions
rsa.h
+
7
−
7
View file @
0b808314
...
...
@@ -76,13 +76,13 @@ extern "C" {
#define _rsa_verify _nettle_rsa_verify
#define _rsa_check_size _nettle_rsa_check_size
/* This limit is somewhat arbitrary. Technically, the smallest
modulo
which makes sense at all is 15 = 3*5, phi(15) = 8, size 4
bits. But
for ridiculously small keys, not all odd e are possible
(e.g., for
5 bits, the only possible modulo is 3*7 = 21, phi(21)
= 12, and e =
3 don't work). The smallest size that makes sense
with pkcs#1, and
which allows RSA encryption of one byte
messages, is 12 octets, 89
bits. */
/* This limit is somewhat arbitrary. Technically, the smallest
modulo
which makes sense at all is 15 = 3*5, phi(15) = 8, size 4
bits. But
for ridiculously small keys, not all odd e are possible
(e.g., for
5 bits, the only possible modulo is 3*7 = 21, phi(21)
= 12, and e =
3 don't work). The smallest size that makes sense
with pkcs#1, and
which allows RSA encryption of one byte
messages, is 12 octets, 89
bits. */
#define RSA_MINIMUM_N_OCTETS 12
#define RSA_MINIMUM_N_BITS (8*RSA_MINIMUM_N_OCTETS - 7)
...
...
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