Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
nettle
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
5
Merge Requests
5
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Nettle
nettle
Commits
aa7b8de6
Commit
aa7b8de6
authored
Jun 15, 2019
by
Wim Lewis
Committed by
Niels Möller
Jun 15, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix some typos in the documentation.
parent
22fda42f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
nettle.texinfo
nettle.texinfo
+11
-11
No files found.
nettle.texinfo
View file @
aa7b8de6
...
...
@@ -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
version ensures that the old symbol is still defined in the library,
this change is backwards compatible: A program compiled using headers
from the older version can be successful
yl
linked with either version of
from the older version can be successful
ly
linked with either version of
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
version, you'll get an undefined reference to the new symbol.
...
...
@@ -2320,7 +2320,7 @@ Expands to
@end example
@end deffn
@deffn Macro CFB8
_
SET
_
IV(@var
{
ctx
}
, @var
{
iv
}
)
@deffn Macro CFB8
_
SET
_
IV
(@var
{
ctx
}
, @var
{
iv
}
)
First argument is a pointer to a context struct as defined by
@code
{
CFB8
_
CTX
}
, and the second is a pointer to an initialization vector
that is copied into that context.
...
...
@@ -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
_
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
leng
ht
of the key must be double the size of the key for the corresponding
leng
th
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
these functions must be called before any of the other functions.
@end deftypefun
...
...
@@ -2572,7 +2572,7 @@ more adventurous alternative, in particular if performance is important.
@comment node-name, next, previous, up
@subsection EAX
The @acronym
{
EAX
}
mode is an @acronym
{
AEAD
}
mode whichcombines
The @acronym
{
EAX
}
mode is an @acronym
{
AEAD
}
mode which
combines
@acronym
{
CTR
}
mode encryption, @xref
{
CTR
}
, with a message authentication
based on @acronym
{
CBC
}
, @xref
{
CBC
}
. The implementation in Nettle is
restricted to ciphers with a block size of 128 bits (16 octets).
...
...
@@ -2682,7 +2682,7 @@ Process message data for encryption or decryption.
@end deffn
@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
...
...
@@ -2882,7 +2882,7 @@ Context structs, defined using @code{GCM_CTX}.
@end deftp
@deftp
{
Context struct
}
{
struct gcm
_
aes
_
ctx
}
Alternative context struct, usi
gn
the old @acronym
{
AES
}
interface.
Alternative context struct, usi
ng
the old @acronym
{
AES
}
interface.
@end deftp
@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}.
@acronym
{
CCM
}
mode decryption operates similarly, except that the
ciphertext and @acronym
{
MAC
}
are first decrypted using CTR mode to
retr
ei
ve the plaintext and authentication tag. The authentication tag
can then be recal
ucated from the authenticated data and pla
ntext, and
retr
ie
ve the plaintext and authentication tag. The authentication tag
can then be recal
culated from the authenticated data and plai
ntext, and
compared to the value in the message to check for authenticity.
@subsubsection General @acronym
{
CCM
}
interface
...
...
@@ -4532,7 +4532,7 @@ Calls @code{mpz_clear} on all numbers in the struct.
@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
}
)
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.
@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
with it.
@end deftypefun
Keys are represented as bignums, of type @code
{
mpz
_
t
}
. A public key
s
represent a group element, and is of the same size as @code
{
p
}
, while a
Keys are represented as bignums, of type @code
{
mpz
_
t
}
. A public key
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
}
.
@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
}
)
...
...
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