Delphi AES library (Rijndael) tested with KAT Vectors

ぐ巨炮叔叔 提交于 2019-12-31 07:16:08

问题


for these 2 libraries,

  1. Delphi Encryption Compendium v 5.2
  2. TurboPower Lockbox v 2.07

I tested their Rijndael DCB/CBC algorithm with "AES Known Answer Test (KAT) Vectors" obtained at NIST website (http://csrc.nist.gov/groups/STM/cavp/index.html)

But, both of these libraries failed the tests.

Not sure if it was my testing that has error, has anyone tested them before as well? I am looking for a Delphi Rijndael library that is able to pass the KAT Vectors test. Does anyone know of any such library?


回答1:


Are you sure it fails? The vectors are written as hex strings. Did you feed the hex strings as strings or did you convert them first as binary data. If you fed them as strings it is no wonder you get a different result.

NB: I do not use both libraries but my own components but they bioth have a good track record and failing these simple tests seems highly unlikely.




回答2:


I know another lib, but not if passes your test or not:

DCPCrypt http://www.cityinthesky.co.uk/cryptography.html




回答3:


TurboPower LockBox 3.1.0 has been released. It includes DUnit tests which validates the correctness of its implememtation using the official AES test vectors.



来源:https://stackoverflow.com/questions/3872336/delphi-aes-library-rijndael-tested-with-kat-vectors

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