أمثلة
Example keys and passwords are public test material.
input length not multiple of 8
المدخلات
00112233445566778899aabbccddeeff0102Expected rejection
Message containsinput must be 8n (n>=2) bytes (currently 18 bytes)- المفتاح (KEK)
{"option":"Hex","string":"000102030405060708090a0b0c0d0e0f"}- IV
{"option":"Hex","string":"a6a6a6a6a6a6a6a6"}- إدخال
Hex- إخراج
Hex
input too short
المدخلات
0011223344556677Expected rejection
Message containsinput must be 8n (n>=2) bytes (currently 8 bytes)- المفتاح (KEK)
{"option":"Hex","string":"000102030405060708090a0b0c0d0e0f"}- IV
{"option":"Hex","string":"a6a6a6a6a6a6a6a6"}- إدخال
Hex- إخراج
Hex
invalid IV length
المدخلات
00112233445566778899aabbccddeeffExpected rejection
Message containsIV must be 8 bytes (currently 6 bytes)- المفتاح (KEK)
{"option":"Hex","string":"000102030405060708090a0b0c0d0e0f"}- IV
{"option":"Hex","string":"a6a6a6a6a6a6"}- إدخال
Hex- إخراج
Hex
invalid KEK length
المدخلات
00112233445566778899aabbccddeeffExpected rejection
Message containsKEK must be either 16, 24, or 32 bytes (currently 10 bytes)- المفتاح (KEK)
{"option":"Hex","string":"00010203040506070809"}- IV
{"option":"Hex","string":"a6a6a6a6a6a6a6a6"}- إدخال
Hex- إخراج
Hex
RFC Test Vector, 128-bit data, 128-bit KEK
المدخلات
00112233445566778899aabbccddeeffExpected answer
1fa68b0a8112b447aef34bd8fb5a7b829d3e862371d2cfe51fa68b0a8112b447aef34bd8fb5a7b829d3e862371d2cfe5
- المفتاح (KEK)
{"option":"Hex","string":"000102030405060708090a0b0c0d0e0f"}- IV
{"option":"Hex","string":"a6a6a6a6a6a6a6a6"}- إدخال
Hex- إخراج
Hex
RFC Test Vector, 128-bit data, 192-bit KEK
المدخلات
00112233445566778899aabbccddeeffExpected answer
96778b25ae6ca435f92b5b97c050aed2468ab8a17ad84e5d96778b25ae6ca435f92b5b97c050aed2468ab8a17ad84e5d
- المفتاح (KEK)
{"option":"Hex","string":"000102030405060708090a0b0c0d0e0f1011121314151617"}- IV
{"option":"Hex","string":"a6a6a6a6a6a6a6a6"}- إدخال
Hex- إخراج
Hex
RFC Test Vector, 128-bit data, 256-bit KEK
المدخلات
00112233445566778899aabbccddeeffExpected answer
64e8c3f9ce0f5ba263e9777905818a2a93c8191e7d6e8ae764e8c3f9ce0f5ba263e9777905818a2a93c8191e7d6e8ae7
- المفتاح (KEK)
{"option":"Hex","string":"000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f"}- IV
{"option":"Hex","string":"a6a6a6a6a6a6a6a6"}- إدخال
Hex- إخراج
Hex
RFC Test Vector, 192-bit data, 192-bit KEK
المدخلات
00112233445566778899aabbccddeeff0001020304050607Expected answer
031d33264e15d33268f24ec260743edce1c6c7ddee725a936ba814915c6762d2031d33264e15d33268f24ec260743edce1c6c7ddee725a936ba814915c6762d2
- المفتاح (KEK)
{"option":"Hex","string":"000102030405060708090a0b0c0d0e0f1011121314151617"}- IV
{"option":"Hex","string":"a6a6a6a6a6a6a6a6"}- إدخال
Hex- إخراج
Hex
RFC Test Vector, 192-bit data, 256-bit KEK
المدخلات
00112233445566778899aabbccddeeff0001020304050607Expected answer
a8f9bc1612c68b3ff6e6f4fbe30e71e4769c8b80a32cb8958cd5d17d6b254da1a8f9bc1612c68b3ff6e6f4fbe30e71e4769c8b80a32cb8958cd5d17d6b254da1
- المفتاح (KEK)
{"option":"Hex","string":"000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f"}- IV
{"option":"Hex","string":"a6a6a6a6a6a6a6a6"}- إدخال
Hex- إخراج
Hex
RFC Test Vector, 256-bit data, 256-bit KEK
المدخلات
00112233445566778899aabbccddeeff000102030405060708090a0b0c0d0e0fExpected answer
28c9f404c4b810f4cbccb35cfb87f8263f5786e2d80ed326cbc7f0e71a99f43bfb988b9b7a02dd2128c9f404c4b810f4cbccb35cfb87f8263f5786e2d80ed326cbc7f0e71a99f43bfb988b9b7a02dd21
- المفتاح (KEK)
{"option":"Hex","string":"000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f"}- IV
{"option":"Hex","string":"a6a6a6a6a6a6a6a6"}- إدخال
Hex- إخراج
Hex