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
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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Nettle
nettle
Commits
aa7b8de6
Commit
aa7b8de6
authored
Jun 15, 2019
by
Wim Lewis
Committed by
Niels Möller
Jun 15, 2019
Browse files
Options
Downloads
Patches
Plain Diff
Fix some typos in the documentation.
parent
22fda42f
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
nettle.texinfo
+11
-11
11 additions, 11 deletions
nettle.texinfo
with
11 additions
and
11 deletions
nettle.texinfo
+
11
−
11
View file @
aa7b8de6
...
@@ -396,7 +396,7 @@ the later version may define a new library symbol, and let header files
...
@@ -396,7 +396,7 @@ the later version may define a new library symbol, and let header files
redefine an old API name as an alias for the new symbol. If the later
redefine an old API name as an alias for the new symbol. If the later
version ensures that the old symbol is still defined in the library,
version ensures that the old symbol is still defined in the library,
this change is backwards compatible: A program compiled using headers
this change is backwards compatible: A program compiled using headers
from the older version can be successful
y
l linked with either version of
from the older version can be successfull
y
linked with either version of
the library. But if you compile the same program using headers from the
the library. But if you compile the same program using headers from the
later version of the library, and attempt to link with the older
later version of the library, and attempt to link with the older
version, you'll get an undefined reference to the new symbol.
version, you'll get an undefined reference to the new symbol.
...
@@ -2468,7 +2468,7 @@ Holds state corresponding to the AES-256 block cipher.
...
@@ -2468,7 +2468,7 @@ Holds state corresponding to the AES-256 block cipher.
@deftypefunx void xts
_
aes128
_
set
_
decrypt
_
key (struct xts
_
aes128
_
key *@var
{
ctx
}
, const uint8
_
t *@var
{
key
}
)
@deftypefunx void xts
_
aes128
_
set
_
decrypt
_
key (struct xts
_
aes128
_
key *@var
{
ctx
}
, const uint8
_
t *@var
{
key
}
)
@deftypefunx void xts
_
aes256
_
set
_
decrypt
_
key (struct xts
_
aes256
_
key *@var
{
ctx
}
, const uint8
_
t *@var
{
key
}
)
@deftypefunx void xts
_
aes256
_
set
_
decrypt
_
key (struct xts
_
aes256
_
key *@var
{
ctx
}
, const uint8
_
t *@var
{
key
}
)
Initializes the encryption or decryption key for the AES block cipher. The
Initializes the encryption or decryption key for the AES block cipher. The
leng
h
t of the key must be double the size of the key for the corresponding
lengt
h
of the key must be double the size of the key for the corresponding
cipher (256 bits for AES-128 and 512 bits for AES-256). One of
cipher (256 bits for AES-128 and 512 bits for AES-256). One of
these functions must be called before any of the other functions.
these functions must be called before any of the other functions.
@end deftypefun
@end deftypefun
...
@@ -2682,7 +2682,7 @@ Process message data for encryption or decryption.
...
@@ -2682,7 +2682,7 @@ Process message data for encryption or decryption.
@end deffn
@end deffn
@deffn Macro EAX
_
DIGEST (@var
{
ctx
}
, @var
{
encrypt
}
, @var
{
length
}
, @var
{
digest
}
)
@deffn Macro EAX
_
DIGEST (@var
{
ctx
}
, @var
{
encrypt
}
, @var
{
length
}
, @var
{
digest
}
)
Extract te authentication tag for the message.
Extract t
h
e authentication tag for the message.
@end deffn
@end deffn
...
@@ -2882,7 +2882,7 @@ Context structs, defined using @code{GCM_CTX}.
...
@@ -2882,7 +2882,7 @@ Context structs, defined using @code{GCM_CTX}.
@end deftp
@end deftp
@deftp
{
Context struct
}
{
struct gcm
_
aes
_
ctx
}
@deftp
{
Context struct
}
{
struct gcm
_
aes
_
ctx
}
Alternative context struct, usi
g
n the old @acronym
{
AES
}
interface.
Alternative context struct, usin
g
the old @acronym
{
AES
}
interface.
@end deftp
@end deftp
@deftypefun void gcm
_
aes128
_
set
_
key (struct gcm
_
aes128
_
ctx *@var
{
ctx
}
, const uint8
_
t *@var
{
key
}
)
@deftypefun void gcm
_
aes128
_
set
_
key (struct gcm
_
aes128
_
ctx *@var
{
ctx
}
, const uint8
_
t *@var
{
key
}
)
...
@@ -3038,8 +3038,8 @@ initial counter of @code{IC+1}.
...
@@ -3038,8 +3038,8 @@ initial counter of @code{IC+1}.
@acronym
{
CCM
}
mode decryption operates similarly, except that the
@acronym
{
CCM
}
mode decryption operates similarly, except that the
ciphertext and @acronym
{
MAC
}
are first decrypted using CTR mode to
ciphertext and @acronym
{
MAC
}
are first decrypted using CTR mode to
retr
e
ive the plaintext and authentication tag. The authentication tag
retri
e
ve the plaintext and authentication tag. The authentication tag
can then be recal
u
cated from the authenticated data and plantext, and
can then be recalc
ul
ated from the authenticated data and pla
i
ntext, and
compared to the value in the message to check for authenticity.
compared to the value in the message to check for authenticity.
@subsubsection General @acronym
{
CCM
}
interface
@subsubsection General @acronym
{
CCM
}
interface
...
@@ -4532,7 +4532,7 @@ Calls @code{mpz_clear} on all numbers in the struct.
...
@@ -4532,7 +4532,7 @@ Calls @code{mpz_clear} on all numbers in the struct.
@end deftypefun
@end deftypefun
@deftypefun int dsa
_
generate
_
params (struct dsa
_
params *@var
{
params
}
, void *@var
{
random
_
ctx
}
, nettle
_
random
_
func *@var
{
random
}
, void *@var
{
progress
_
ctx
}
, nettle
_
progress
_
func *@var
{
progress
}
, unsigned @var
{
p
_
bits
}
, unsigned @var
{
q
_
bits
}
)
@deftypefun int dsa
_
generate
_
params (struct dsa
_
params *@var
{
params
}
, void *@var
{
random
_
ctx
}
, nettle
_
random
_
func *@var
{
random
}
, void *@var
{
progress
_
ctx
}
, nettle
_
progress
_
func *@var
{
progress
}
, unsigned @var
{
p
_
bits
}
, unsigned @var
{
q
_
bits
}
)
Generates param
a
ters of a new group. The @var
{
params
}
struct should be
Generates param
e
ters of a new group. The @var
{
params
}
struct should be
initialized before you call this function.
initialized before you call this function.
@var
{
random
_
ctx
}
and @var
{
random
}
is a randomness generator.
@var
{
random
_
ctx
}
and @var
{
random
}
is a randomness generator.
...
@@ -4575,8 +4575,8 @@ signature, and call @code{dsa_signature_clear} when you are finished
...
@@ -4575,8 +4575,8 @@ signature, and call @code{dsa_signature_clear} when you are finished
with it.
with it.
@end deftypefun
@end deftypefun
Keys are represented as bignums, of type @code
{
mpz
_
t
}
. A public key
s
Keys are represented as bignums, of type @code
{
mpz
_
t
}
. A public key
represent a group element, and is of the same size as @code
{
p
}
, while a
represent
s
a group element, and is of the same size as @code
{
p
}
, while a
private key is an exponent, of the same size as @code
{
q
}
.
private key is an exponent, of the same size as @code
{
q
}
.
@deftypefun int dsa
_
sign (const struct dsa
_
params *@var
{
params
}
, const mpz
_
t @var
{
x
}
, void *@var
{
random
_
ctx
}
, nettle
_
random
_
func *@var
{
random
}
, size
_
t @var
{
digest
_
size
}
, const uint8
_
t *@var
{
digest
}
, struct dsa
_
signature *@var
{
signature
}
)
@deftypefun int dsa
_
sign (const struct dsa
_
params *@var
{
params
}
, const mpz
_
t @var
{
x
}
, void *@var
{
random
_
ctx
}
, nettle
_
random
_
func *@var
{
random
}
, size
_
t @var
{
digest
_
size
}
, const uint8
_
t *@var
{
digest
}
, struct dsa
_
signature *@var
{
signature
}
)
...
...
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