Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Nettle
nettle
Commits
0beec6b2
Commit
0beec6b2
authored
Mar 24, 2019
by
Niels Möller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update docs for xts-aes
The structs are named xts_aes*_key, not xts_aes*_ctx.
parent
38e462fb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
nettle.texinfo
nettle.texinfo
+10
-10
No files found.
nettle.texinfo
View file @
0beec6b2
...
...
@@ -2455,28 +2455,28 @@ replaced with an @acronym{AES} context structure called @var{ctx}, and a
appropriate set-key function must be called before using any of the encryption
or decryption functions in this interface.
@deftp
{
Context struct
}
{
struct xts
_
aes128
_
ctx
}
@deftp
{
Context struct
}
{
struct xts
_
aes128
_
key
}
Holds state corresponding to the AES-128 block cipher.
@end deftp
@deftp
{
Context struct
}
{
struct xts
_
aes256
_
ctx
}
@deftp
{
Context struct
}
{
struct xts
_
aes256
_
key
}
Holds state corresponding to the AES-256 block cipher.
@end deftp
@deftypefun void xts
_
aes128
_
set
_
encrypt
_
key (struct xts
_
aes128
_
ctx
*@var
{
ctx
}
, const uint8
_
t *@var
{
key
}
)
@deftypefunx void xts
_
aes256
_
set
_
encrypt
_
key (struct xts
_
aes256
_
ctx
*@var
{
ctx
}
, const uint8
_
t *@var
{
key
}
)
@deftypefunx void xts
_
aes128
_
set
_
decrypt
_
key (struct xts
_
aes128
_
ctx
*@var
{
ctx
}
, const uint8
_
t *@var
{
key
}
)
@deftypefunx void xts
_
aes256
_
set
_
decrypt
_
key (struct xts
_
aes256
_
ctx
*@var
{
ctx
}
, const uint8
_
t *@var
{
key
}
)
@deftypefun void xts
_
aes128
_
set
_
encrypt
_
key (struct xts
_
aes128
_
key
*@var
{
ctx
}
, const uint8
_
t *@var
{
key
}
)
@deftypefunx void xts
_
aes256
_
set
_
encrypt
_
key (struct xts
_
aes256
_
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
}
)
Initializes the encryption or decryption key for the AES block cipher. The
lenght 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
@deftypefun void xts
_
aes128
_
encrypt
_
message(struct xts
_
aes128
_
ctx
*@var
{
ctx
}
, uint8
_
t *@var
{
tweak
}
, size
_
t @var
{
length
}
, uint8
_
t *@var
{
dst
}
, const uint8
_
t *@var
{
src
}
)
@deftypefunx void xts
_
aes256
_
encrypt
_
message(struct xts
_
aes256
_
ctx
*@var
{
ctx
}
, uint8
_
t *@var
{
tweak
}
, size
_
t @var
{
length
}
, uint8
_
t *@var
{
dst
}
, const uint8
_
t *@var
{
src
}
)
@deftypefunx void xts
_
aes128
_
decrypt
_
message(struct xts
_
aes128
_
ctx
*@var
{
ctx
}
, uint8
_
t *@var
{
tweak
}
, size
_
t @var
{
length
}
, uint8
_
t *@var
{
dst
}
, const uint8
_
t *@var
{
src
}
)
@deftypefunx void xts
_
aes256
_
decrypt
_
message(struct xts
_
aes256
_
ctx
*@var
{
ctx
}
, uint8
_
t *@var
{
tweak
}
, size
_
t @var
{
length
}
, uint8
_
t *@var
{
dst
}
, const uint8
_
t *@var
{
src
}
)
@deftypefun void xts
_
aes128
_
encrypt
_
message(struct xts
_
aes128
_
key
*@var
{
ctx
}
, uint8
_
t *@var
{
tweak
}
, size
_
t @var
{
length
}
, uint8
_
t *@var
{
dst
}
, const uint8
_
t *@var
{
src
}
)
@deftypefunx void xts
_
aes256
_
encrypt
_
message(struct xts
_
aes256
_
key
*@var
{
ctx
}
, uint8
_
t *@var
{
tweak
}
, size
_
t @var
{
length
}
, uint8
_
t *@var
{
dst
}
, const uint8
_
t *@var
{
src
}
)
@deftypefunx void xts
_
aes128
_
decrypt
_
message(struct xts
_
aes128
_
key
*@var
{
ctx
}
, uint8
_
t *@var
{
tweak
}
, size
_
t @var
{
length
}
, uint8
_
t *@var
{
dst
}
, const uint8
_
t *@var
{
src
}
)
@deftypefunx void xts
_
aes256
_
decrypt
_
message(struct xts
_
aes256
_
key
*@var
{
ctx
}
, uint8
_
t *@var
{
tweak
}
, size
_
t @var
{
length
}
, uint8
_
t *@var
{
dst
}
, const uint8
_
t *@var
{
src
}
)
These are identical to @code
{
xts
_
encrypt
_
message
}
and
@code
{
xts
_
decrypt
_
message
}
, except that @var
{
enc
_
ctx
}
, @var
{
dec
_
ctx
}
,
@var
{
twk
_
ctx
}
, @var
{
encf
}
and @var
{
decf
}
are replaced by the @var
{
ctx
}
context
...
...
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