From 48551f5cc307828217954559f031b6c7a7d4eab6 Mon Sep 17 00:00:00 2001 From: MITSUNARI Shigeo Date: Tue, 19 Dec 2023 17:09:18 +0900 Subject: add aesenc{128,256}kl, aesencwide{128,256}kl --- test/apx.cpp | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'test') diff --git a/test/apx.cpp b/test/apx.cpp index ab3ca0a..0b99e20 100644 --- a/test/apx.cpp +++ b/test/apx.cpp @@ -1792,6 +1792,17 @@ CYBOZU_TEST_AUTO(aeskl) aesdecwide256kl(ptr[rax+rcx*4+0x12]); aesdecwide256kl(ptr[r30+r29*8+0x34]); + aesenc128kl(xmm15, ptr[rax+rcx*4+0x12]); + aesenc128kl(xmm15, ptr[r30+r29*8+0x34]); + + aesenc256kl(xmm15, ptr[rax+rcx*4+0x12]); + aesenc256kl(xmm15, ptr[r30+r29*8+0x34]); + + aesencwide128kl(ptr[rax+rcx*4+0x12]); + aesencwide128kl(ptr[r30+r29*8+0x34]); + + aesencwide256kl(ptr[rax+rcx*4+0x12]); + aesencwide256kl(ptr[r30+r29*8+0x34]); } } c; const uint8_t tbl[] = { @@ -1807,6 +1818,18 @@ CYBOZU_TEST_AUTO(aeskl) // aesdecwide256kl 0x0f, 0x38, 0xd8, 0x5c, 0x88, 0x12, 0x62, 0x9c, 0x7a, 0x08, 0xd8, 0x5c, 0xee, 0x34, + // aesenc128kl + 0xf3, 0x44, 0x0f, 0x38, 0xdc, 0x7c, 0x88, 0x12, + 0x62, 0x1c, 0x7a, 0x08, 0xdc, 0x7c, 0xee, 0x34, + // aesenc256kl + 0xf3, 0x44, 0x0f, 0x38, 0xde, 0x7c, 0x88, 0x12, + 0x62, 0x1c, 0x7a, 0x08, 0xde, 0x7c, 0xee, 0x34, + // aesencwide128kl + 0xf3, 0x0f, 0x38, 0xd8, 0x44, 0x88, 0x12, + 0x62, 0x9c, 0x7a, 0x08, 0xd8, 0x44, 0xee, 0x34, + // aesencwide256kl + 0xf3, 0x0f, 0x38, 0xd8, 0x54, 0x88, 0x12, + 0x62, 0x9c, 0x7a, 0x08, 0xd8, 0x54, 0xee, 0x34, }; const size_t n = sizeof(tbl); CYBOZU_TEST_EQUAL(c.getSize(), n); -- cgit v1.2.3