diff options
author | MITSUNARI Shigeo <[email protected]> | 2023-12-19 17:09:18 +0900 |
---|---|---|
committer | MITSUNARI Shigeo <[email protected]> | 2023-12-19 17:09:18 +0900 |
commit | 48551f5cc307828217954559f031b6c7a7d4eab6 (patch) | |
tree | 0dd6409d0bbb2e75281f7d5536292cad4539584a /test | |
parent | d9c7c992f1fb4d68453f5d508e5a287c85075518 (diff) | |
download | xbyak-48551f5cc307828217954559f031b6c7a7d4eab6.tar.gz xbyak-48551f5cc307828217954559f031b6c7a7d4eab6.zip |
add aesenc{128,256}kl, aesencwide{128,256}kl
Diffstat (limited to 'test')
-rw-r--r-- | test/apx.cpp | 23 |
1 files changed, 23 insertions, 0 deletions
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); |