Edit online

测试指南

23 Dec 2024
Read time: 1 minute(s)

测试对象,需要测试的算法有:

对称密钥算法非对称密钥算法消息摘要算法
  • cbc(des3_ede)
  • ecb(des3_ede)
  • cbc(des)
  • ecb(des)
  • xts(aes)
  • cts(aes)
  • ctr(aes)
  • cbc(aes)
  • ecb(aes)
  • huk-protected(xts(aes))
  • huk-protected(cts(aes))
  • huk-protected(cbc(aes))
  • huk-protected(ecb(aes))
  • ssk-protected(cbc(aes))
  • ssk-protected(ecb(aes))
  • rsa
  • psk3-protected(rsa)
  • psk2-protected(rsa)
  • psk1-protected(rsa)
  • psk0-protected(rsa)
  • pnk-protected(rsa)
  • sha512
  • sha384
  • sha256
  • sha224
  • sha1
  • md5
  • hmac(sha256)
  • hmac(sha1)

测试的配置

在 Luban-Lite 根目录下执行 scons --menuconfig,进入 menuconfig 的功能配置界面,按如下选择:

Drivers options  --->
    Drivers examples  --->
        [*] Enable CE driver test command

测试的命令

test_ce help
test_ce command usage:
    test_ce help : Get this help.
    test_ce symm : Test symmetric algorithms.
    test_ce hash : Test hash algorithms.
    test_ce all  : Test all algorithms.