3 .\" Mark R V Murray. All rights reserved.
5 .\" All rights reserved.
7 .\" Redistribution and use in source and binary forms, with or without
8 .\" modification, are permitted provided that the following conditions
10 .\" 1. Redistributions of source code must retain the above copyright
11 .\" notice, this list of conditions and the following disclaimer.
12 .\" 2. Redistributions in binary form must reproduce the above copyright
13 .\" notice, this list of conditions and the following disclaimer in the
14 .\" documentation and/or other materials provided with the distribution.
16 .\" THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY EXPRESS OR
17 .\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
18 .\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
19 .\" IN NO EVENT SHALL THE DEVELOPERS BE LIABLE FOR ANY DIRECT, INDIRECT,
20 .\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
21 .\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
22 .\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
23 .\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
25 .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31 .Nm rijndael_makeKey ,
32 .Nm rijndael_cipherInit ,
33 .Nm rijndael_blockEncrypt ,
34 .Nm rijndael_padEncrypt ,
35 .Nm rijndael_blockDecrypt ,
36 .Nm rijndael_padDecrypt
43 .Fa "keyInstance *key"
44 .Fa "uint8_t direction"
46 .Fa "char *keyMaterial"
49 .Fo rijndael_cipherInit
50 .Fa "cipherInstance *cipher"
55 .Fo rijndael_blockEncrypt
56 .Fa "cipherInstance *cipher"
57 .Fa "keyInstance *key"
60 .Fa "uint8_t *outBuffer"
63 .Fo rijndael_padEncrypt
64 .Fa "cipherInstance *cipher"
65 .Fa "keyInstance *key"
68 .Fa "uint8_t *outBuffer"
71 .Fo rijndael_blockDecrypt
72 .Fa "cipherInstance *cipher"
73 .Fa "keyInstance *key"
76 .Fa "uint8_t *outBuffer"
79 .Fo rijndael_padDecrypt
80 .Fa "cipherInstance *cipher"
81 .Fa "keyInstance *key"
84 .Fa "uint8_t *outBuffer"
89 function is used to set up the key schedule in
97 specifies the intended use of the key.
98 The length of the key (in bits) is given in
100 and must be 128, 192 or 256.
101 The actual key is supplied in the buffer pointed to by
103 This material may be raw binary data,
104 or an ASCII string containing a hexadecimal rendition
105 of the raw binary data,
106 dependent on a compile-time option in the
109 .Dv BINARY_KEY_MATERIAL .
127 if the key materials are not a hexadecimal string
128 (and binary keys are not set),