德尔福AES库(Rijndael)用KAT载体测试 [英] Delphi AES library (Rijndael) tested with KAT Vectors

查看:192
本文介绍了德尔福AES库(Rijndael)用KAT载体测试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对于这两个图书馆,


  1. Delphi加密汇编v 5.2

  2. TurboPower Lockbox v 2.07

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

我用AES已知答案测试测试了他们的Rijndael DCB / CBC算法(KAT)载体,在NIST网站获得( http://csrc.nist.gov /groups/STM/cavp/index.html

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.

不知道如果是我的测试有错误,有没有人以前测试过?
我正在寻找能够通过KAT向量测试的Delphi Rijndael库。有谁知道任何这样的图书馆?

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?

推荐答案

你确定它失败了吗?向量被写为十六进制字符串。您是将十六进制字符串作为字符串提供,还是先将其转换为二进制数据。如果你把它们当作字符串,那就难怪你得到了不同的结果。

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.

这篇关于德尔福AES库(Rijndael)用KAT载体测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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