AES加密的32位实现 [英] 32-bit implementation of AES encryption

查看:40
本文介绍了AES加密的32位实现的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试实现AES.我目前已经实现了 subByte() shiftRow() mixColumn() addRoundkey()和生成回合密钥8位AES,并且可以正常工作.但是它的性能不好.所以我想在软件中实现32位AES,但是生成扩展的s-box令我感到困惑.以8位输入的数据如何以32位输出?我在软件中找不到AES的32位实现.

I'm trying to implement AES. I currently have implemented subByte(), shiftRow(), mixColumn(), addRoundkey() and generation roundkey of 8-bit AES, and that is working. But its performance is not good. So I want to implement 32-bit AES in software, but generating the extended s-box is confusing me. How does data entering as 8-bit come out as 32-bit? I can't find a 32-bit implementation of AES in software.

推荐答案

我建议以分片的方式实现它.位切片的实现不仅可以很好地扩展,而且在定时攻击方面也具有很好的特性.我知道这需要重新设计您的功能.而且,只有在并行计算多个AES操作时才能存档性能提升.

I suggest implementing it in a bit sliced manner. Bit sliced implementations do not only scale very well, they have also very good properties regarding timing attacks. I know this requires a redesign of your functions. And a performance gain can only be archived if you calculate multiple AES operations in parallel.

最快的AES实现(不使用Intel AES指令)按位进行切片: http://eprint.iacr.org/2009/129

The fastest AES implementation (without Intel AES instructions) is bit sliced: http://eprint.iacr.org/2009/129

在Google中,您还将找到源代码.

With Google you will also find the source code.

这篇关于AES加密的32位实现的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆