TurboPower LockBox 3: AES128 and padding ISO 10126

大兔子大兔子 提交于 2019-12-12 01:47:00

问题


I know this is a withdrawn standard. Nevertheless, the customer wants it (and we know who's always right). So, how do I do it? Ho can I choose ISO 10126 padding for an AES128 encryption?

Edit: The LB version in use is 3.4.1 (I didn't have the time/knowledge to fix the latest release to run with XE2)


回答1:


(1) You can roll your own padding. If you roll your own padding to make the message size an exact multiple of block cipher, TPLB3 will not try to add any additional padding.

(2) For most chaining modes, TPLB3 will automatically add salt. This is normally a good thing, but if you need it without, you can remove the option for it.

(3) I maintain version 3.5.0, which you can find here

http://lockbox.seanbdurkin.id.au/Grok+TurboPower+LockBox

Compared to 3.4.1, the unit names have changed a lot, but the code has not.

(4) If you need a working example, please post your KAT.



来源:https://stackoverflow.com/questions/26420161/turbopower-lockbox-3-aes128-and-padding-iso-10126

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!