Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 196337
Collapse All | Expand All

(-)src/mod/rijndael.mod/aes.h (-3 / +3 lines)
Lines 248-254 Link Here
248
} c_name(aes);
248
} c_name(aes);
249
249
250
cf_dec c_name(set_key)(const byte key[], const word n_bytes, const enum aes_key f, c_name(aes) *cx);
250
cf_dec c_name(set_key)(const byte key[], const word n_bytes, const enum aes_key f, c_name(aes) *cx);
251
cf_dec c_name(encrypt)(const byte in_blk[], byte out_blk[], const c_name(aes) *cx);
251
cf_dec c_name(encrypted)(const byte in_blk[], byte out_blk[], const c_name(aes) *cx);
252
cf_dec c_name(decrypt)(const byte in_blk[], byte out_blk[], const c_name(aes) *cx);
252
cf_dec c_name(decrypt)(const byte in_blk[], byte out_blk[], const c_name(aes) *cx);
253
cf_dec c_name(set_blk)(const word n_bytes, c_name(aes) *cx);
253
cf_dec c_name(set_blk)(const word n_bytes, c_name(aes) *cx);
254
254
Lines 271-278 Link Here
271
#endif
271
#endif
272
    aes_ret set_key(const byte key[], const word n_bytes, const aes_key f)
272
    aes_ret set_key(const byte key[], const word n_bytes, const aes_key f)
273
            { return c_name(set_key)(key, n_bytes, f, &cx); }
273
            { return c_name(set_key)(key, n_bytes, f, &cx); }
274
    aes_ret encrypt(const byte in_blk[], byte out_blk[]) const
274
    aes_ret encrypted(const byte in_blk[], byte out_blk[]) const
275
            { return c_name(encrypt)(in_blk, out_blk, &cx); }
275
            { return c_name(encrypted)(in_blk, out_blk, &cx); }
276
    aes_ret decrypt(const byte in_blk[], byte out_blk[]) const
276
    aes_ret decrypt(const byte in_blk[], byte out_blk[]) const
277
            { return c_name(decrypt)(in_blk, out_blk, &cx); }
277
            { return c_name(decrypt)(in_blk, out_blk, &cx); }
278
};
278
};
(-)src/mod/rijndael.mod/rijndael.c (-1 / +1 lines)
Lines 57-63 Link Here
57
{
57
{
58
	char output[BLOCK_SIZE/8];
58
	char output[BLOCK_SIZE/8];
59
59
60
	encrypt(input, output, &aes_cx);
60
	encrypted(input, output, &aes_cx);
61
	memcpy(input, output, BLOCK_SIZE/8);
61
	memcpy(input, output, BLOCK_SIZE/8);
62
}
62
}
63
63
(-)src/mod/megahal.mod/megahal.c (-2 / +2 lines)
Lines 150-158 Link Here
150
#include <stdio.h>
150
#include <stdio.h>
151
#include <stdarg.h>
151
#include <stdarg.h>
152
#ifndef __APPLE__
152
#ifndef __APPLE__
153
#include <malloc.h>
153
#include <stdlib.h>
154
#else
154
#else
155
#include <sys/malloc.h>
155
#include <sys/stdlib.h>
156
#endif
156
#endif
157
#include <string.h>
157
#include <string.h>
158
#include <signal.h>
158
#include <signal.h>

Return to bug 196337