案例
Example keys and passwords are public test material.
A release record
输入
RELEASEONEExpected checks
PRESENT Decrypt recovers:
52454c454153454f4e45- 密钥
{"string":"00112233445566778899","option":"Hex"}- 初始化向量
{"string":"","option":"Hex"}- 模式
ECB- 输入
Raw- 输出
Hex- 填充方式
PKCS5
A sensor label
输入
SENSORWESTExpected checks
PRESENT Decrypt recovers:
53454e534f5257455354- 密钥
{"string":"00112233445566778899","option":"Hex"}- 初始化向量
{"string":"","option":"Hex"}- 模式
ECB- 输入
Raw- 输出
Hex- 填充方式
PKCS5
A telescope target
输入
MOONPHASESExpected checks
PRESENT Decrypt recovers:
4d4f4f4e504841534553- 密钥
{"string":"00112233445566778899","option":"Hex"}- 初始化向量
{"string":"","option":"Hex"}- 模式
ECB- 输入
Raw- 输出
Hex- 填充方式
PKCS5
A puzzle clue
输入
FOLLOWBIRDExpected checks
PRESENT Decrypt recovers:
464f4c4c4f5742495244- 密钥
{"string":"00112233445566778899","option":"Hex"}- 初始化向量
{"string":"","option":"Hex"}- 模式
ECB- 输入
Raw- 输出
Hex- 填充方式
PKCS5
An archive marker
输入
ARCHIVEDOCExpected checks
PRESENT Decrypt recovers:
41524348495645444f43- 密钥
{"string":"00112233445566778899","option":"Hex"}- 初始化向量
{"string":"","option":"Hex"}- 模式
ECB- 输入
Raw- 输出
Hex- 填充方式
PKCS5
128-bit zero key consistency
输入
TestDataExpected answer
e127a24e38de2c36407e794ef5dffefde127a24e38de2c36407e794ef5dffefd
- 密钥
{"string":"00000000000000000000000000000000","option":"Hex"}- 初始化向量
{"string":"","option":"Hex"}- 模式
ECB- 输入
Raw- 输出
Hex- 填充方式
PKCS5
80-bit zero key consistency
输入
TestDataExpected answer
b78cfea5ffcd89f265585a6ce7312131b78cfea5ffcd89f265585a6ce7312131
- 密钥
{"string":"00000000000000000000","option":"Hex"}- 初始化向量
{"string":"","option":"Hex"}- 模式
ECB- 输入
Raw- 输出
Hex- 填充方式
PKCS5
PRESENT Official Vector 1: 80-bit zero key, zero plaintext
输入
0000000000000000Expected answer
5579c1387b2284455579c1387b228445
- 密钥
{"string":"00000000000000000000","option":"Hex"}- 初始化向量
{"string":"","option":"Hex"}- 模式
ECB- 输入
Hex- 输出
Hex- 填充方式
NO
PRESENT Official Vector 2: 80-bit all-ones key, zero plaintext
输入
0000000000000000Expected answer
e72c46c0f5945049e72c46c0f5945049
- 密钥
{"string":"ffffffffffffffffffff","option":"Hex"}- 初始化向量
{"string":"","option":"Hex"}- 模式
ECB- 输入
Hex- 输出
Hex- 填充方式
NO
PRESENT Official Vector 3: 80-bit zero key, all-ones plaintext
输入
ffffffffffffffffExpected answer
a112ffc72f68417ba112ffc72f68417b
- 密钥
{"string":"00000000000000000000","option":"Hex"}- 初始化向量
{"string":"","option":"Hex"}- 模式
ECB- 输入
Hex- 输出
Hex- 填充方式
NO