-
Notifications
You must be signed in to change notification settings - Fork 6
/
a_evnt_multi_fast.c
36 lines (30 loc) · 1005 Bytes
/
a_evnt_multi_fast.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#include "gem_aesP.h"
/** suspends the application until a valid message that the
* application is interested in occurs.
*
* @param em_in see the input arguments of mt_evnt_multi()
* @param msg see mt_evnt_mesag()
* @param em_out see the output arguments of mt_evnt_multi()
* @param global_aes global AES array
*
* @return a bit mask of which events actually happened as in events.
* This may be one or more events and your application should
* be prepared to handle each.
*
* @since All AES versions.
*
* @sa mt_evnt_multi()
*
* For detailed description consult the mt_evnt_multi() documentation.
*
*/
short
mt_evnt_multi_fast (const EVMULT_IN * em_in, short msg[], EVMULT_OUT * em_out, short *global_aes)
{
AES_PARAMS(25,16,7,1,0);
aes_params.intin = (const short*)em_in; /* input integer array */
aes_params.intout = (short*)em_out; /* output integer array */
aes_addrin[0] = (long)msg;
AES_TRAP(aes_params);
return em_out->emo_events;
}