aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/common.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/common.c')
-rw-r--r--src/common.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/common.c b/src/common.c
index 92f5e24..f4020db 100644
--- a/src/common.c
+++ b/src/common.c
@@ -24,6 +24,11 @@ AesState aes_block_to_state(AesBlock block)
return state;
}
+AesBlock aes_state_to_block(AesState state)
+{
+ return _mm_loadu_si128((__m128i*) &state.bytes);
+}
+
void print_aes_block(AesBlock block)
{
int i, j;