groff 1.23.0 added .MR to its -man macro package. The NEWS file states
that the inclusion of the macro "was prompted by its introduction to
Plan 9 from User Space's troff in August 2020." From d32deab it seems
that the name for Plan 9 from User Space's implementation was suggested
by groff maintainer G. Brandon Robinson.
Not sure if the intention was to make these definitions compatible, but
it would be nice if they were.
Currently, Plan 9 from User Space's .MR expects its second argument to
be parenthesized. groff's .MR does not. This results in extra
parentheses appearing in manual references when viewing Plan 9 from User
Space's manual pages on a system using groff.
52 lines
985 B
Groff
52 lines
985 B
Groff
.TH AES 3
|
|
.SH NAME
|
|
setupAESstate, aesCBCencrypt, aesCBCdecrypt - advanced encryption standard (rijndael)
|
|
.SH SYNOPSIS
|
|
.B #include <u.h>
|
|
.br
|
|
.B #include <libc.h>
|
|
.br
|
|
.B #include <mp.h>
|
|
.br
|
|
.B #include <libsec.h>
|
|
.PP
|
|
.B
|
|
void setupAESstate(AESstate *s, uchar key[], int keybytes, uchar *ivec)
|
|
.PP
|
|
.B
|
|
void aesCBCencrypt(uchar*, int, AESstate*)
|
|
.PP
|
|
.B
|
|
void aesCBCdecrypt(uchar*, int, AESstate*)
|
|
.PP
|
|
.SH DESCRIPTION
|
|
.PP
|
|
DES is being replaced by Rijndael, also known as AES, as the preferred
|
|
block ciper.
|
|
.IR setupAESstate ,
|
|
.IR aesCBCencrypt ,
|
|
and
|
|
.I aesCBCdecrypt
|
|
implement cipher block chaining encryption.
|
|
.I Keybytes
|
|
should be 16, 24, or 32.
|
|
The initialization vector
|
|
.I ivec
|
|
of
|
|
.I AESbsize
|
|
bytes should random enough to be unlikely to be reused but does not need to be
|
|
cryptographically strongly unpredictable.
|
|
.SH SOURCE
|
|
.B \*9/src/libsec
|
|
.SH SEE ALSO
|
|
.MR mp 3 ,
|
|
.MR blowfish 3 ,
|
|
.MR des 3 ,
|
|
.MR dsa 3 ,
|
|
.MR elgamal 3 ,
|
|
.MR rc4 3 ,
|
|
.MR rsa 3 ,
|
|
.MR sechash 3 ,
|
|
.MR prime 3 ,
|
|
.MR rand 3
|