iPXE
Macros | Functions | Variables
des_test.c File Reference

DES tests. More...

#include <assert.h>
#include <ipxe/des.h>
#include <ipxe/test.h>
#include "cipher_test.h"

Go to the source code of this file.

Macros

#define DES_VALUE(value)
 Define a DES 64-bit test value. More...
 
#define DES_TEST(name, key, plaintext, ciphertext)
 Define a DES test. More...
 

Functions

 FILE_LICENCE (GPL2_OR_LATER_OR_UBDL)
 
 DES_TEST (des_round_sample, 0x10316e028c8f3b4a, 0x0000000000000000, 0x82dcbafbdeab6602)
 
 DES_TEST (des_test1_1, 0x0101010101010101, 0x8000000000000000, 0x95f8a5e5dd31d900)
 
 DES_TEST (des_test1_2, 0x0101010101010101, 0x4000000000000000, 0xdd7f121ca5015619)
 
 DES_TEST (des_test1_3, 0x0101010101010101, 0x2000000000000000, 0x2e8653104f3834ea)
 
 DES_TEST (des_test1_4, 0x0101010101010101, 0x1000000000000000, 0x4bd388ff6cd81d4f)
 
 DES_TEST (des_test1_5, 0x0101010101010101, 0x0800000000000000, 0x20b9e767b2fb1456)
 
 DES_TEST (des_test1_6, 0x0101010101010101, 0x0400000000000000, 0x55579380d77138ef)
 
 DES_TEST (des_test1_7, 0x0101010101010101, 0x0200000000000000, 0x6cc5defaaf04512f)
 
 DES_TEST (des_test1_8, 0x0101010101010101, 0x0100000000000000, 0x0d9f279ba5d87260)
 
 DES_TEST (des_test1_9, 0x0101010101010101, 0x0080000000000000, 0xd9031b0271bd5a0a)
 
 DES_TEST (des_test1_10, 0x0101010101010101, 0x0040000000000000, 0x424250b37c3dd951)
 
 DES_TEST (des_test1_11, 0x0101010101010101, 0x0020000000000000, 0xb8061b7ecd9a21e5)
 
 DES_TEST (des_test1_12, 0x0101010101010101, 0x0010000000000000, 0xf15d0f286b65bd28)
 
 DES_TEST (des_test1_13, 0x0101010101010101, 0x0008000000000000, 0xadd0cc8d6e5deba1)
 
 DES_TEST (des_test1_14, 0x0101010101010101, 0x0004000000000000, 0xe6d5f82752ad63d1)
 
 DES_TEST (des_test1_15, 0x0101010101010101, 0x0002000000000000, 0xecbfe3bd3f591a5e)
 
 DES_TEST (des_test1_16, 0x0101010101010101, 0x0001000000000000, 0xf356834379d165cd)
 
 DES_TEST (des_test1_17, 0x0101010101010101, 0x0000800000000000, 0x2b9f982f20037fa9)
 
 DES_TEST (des_test1_18, 0x0101010101010101, 0x0000400000000000, 0x889de068a16f0be6)
 
 DES_TEST (des_test1_19, 0x0101010101010101, 0x0000200000000000, 0xe19e275d846a1298)
 
 DES_TEST (des_test1_20, 0x0101010101010101, 0x0000100000000000, 0x329a8ed523d71aec)
 
 DES_TEST (des_test1_21, 0x0101010101010101, 0x0000080000000000, 0xe7fce22557d23c97)
 
 DES_TEST (des_test1_22, 0x0101010101010101, 0x0000040000000000, 0x12a9f5817ff2d65d)
 
 DES_TEST (des_test1_23, 0x0101010101010101, 0x0000020000000000, 0xa484c3ad38dc9c19)
 
 DES_TEST (des_test1_24, 0x0101010101010101, 0x0000010000000000, 0xfbe00a8a1ef8ad72)
 
 DES_TEST (des_test1_25, 0x0101010101010101, 0x0000008000000000, 0x750d079407521363)
 
 DES_TEST (des_test1_26, 0x0101010101010101, 0x0000004000000000, 0x64feed9c724c2faf)
 
 DES_TEST (des_test1_27, 0x0101010101010101, 0x0000002000000000, 0xf02b263b328e2b60)
 
 DES_TEST (des_test1_28, 0x0101010101010101, 0x0000001000000000, 0x9d64555a9a10b852)
 
 DES_TEST (des_test1_29, 0x0101010101010101, 0x0000000800000000, 0xd106ff0bed5255d7)
 
 DES_TEST (des_test1_30, 0x0101010101010101, 0x0000000400000000, 0xe1652c6b138c64a5)
 
 DES_TEST (des_test1_31, 0x0101010101010101, 0x0000000200000000, 0xe428581186ec8f46)
 
 DES_TEST (des_test1_32, 0x0101010101010101, 0x0000000100000000, 0xaeb5f5ede22d1a36)
 
 DES_TEST (des_test1_33, 0x0101010101010101, 0x0000000080000000, 0xe943d7568aec0c5c)
 
 DES_TEST (des_test1_34, 0x0101010101010101, 0x0000000040000000, 0xdf98c8276f54b04b)
 
 DES_TEST (des_test1_35, 0x0101010101010101, 0x0000000020000000, 0xb160e4680f6c696f)
 
 DES_TEST (des_test1_36, 0x0101010101010101, 0x0000000010000000, 0xfa0752b07d9c4ab8)
 
 DES_TEST (des_test1_37, 0x0101010101010101, 0x0000000008000000, 0xca3a2b036dbc8502)
 
 DES_TEST (des_test1_38, 0x0101010101010101, 0x0000000004000000, 0x5e0905517bb59bcf)
 
 DES_TEST (des_test1_39, 0x0101010101010101, 0x0000000002000000, 0x814eeb3b91d90726)
 
 DES_TEST (des_test1_40, 0x0101010101010101, 0x0000000001000000, 0x4d49db1532919c9f)
 
 DES_TEST (des_test1_41, 0x0101010101010101, 0x0000000000800000, 0x25eb5fc3f8cf0621)
 
 DES_TEST (des_test1_42, 0x0101010101010101, 0x0000000000400000, 0xab6a20c0620d1c6f)
 
 DES_TEST (des_test1_43, 0x0101010101010101, 0x0000000000200000, 0x79e90dbc98f92cca)
 
 DES_TEST (des_test1_44, 0x0101010101010101, 0x0000000000100000, 0x866ecedd8072bb0e)
 
 DES_TEST (des_test1_45, 0x0101010101010101, 0x0000000000080000, 0x8b54536f2f3e64a8)
 
 DES_TEST (des_test1_46, 0x0101010101010101, 0x0000000000040000, 0xea51d3975595b86b)
 
 DES_TEST (des_test1_47, 0x0101010101010101, 0x0000000000020000, 0xcaffc6ac4542de31)
 
 DES_TEST (des_test1_48, 0x0101010101010101, 0x0000000000010000, 0x8dd45a2ddf90796c)
 
 DES_TEST (des_test1_49, 0x0101010101010101, 0x0000000000008000, 0x1029d55e880ec2d0)
 
 DES_TEST (des_test1_50, 0x0101010101010101, 0x0000000000004000, 0x5d86cb23639dbea9)
 
 DES_TEST (des_test1_51, 0x0101010101010101, 0x0000000000002000, 0x1d1ca853ae7c0c5f)
 
 DES_TEST (des_test1_52, 0x0101010101010101, 0x0000000000001000, 0xce332329248f3228)
 
 DES_TEST (des_test1_53, 0x0101010101010101, 0x0000000000000800, 0x8405d1abe24fb942)
 
 DES_TEST (des_test1_54, 0x0101010101010101, 0x0000000000000400, 0xe643d78090ca4207)
 
 DES_TEST (des_test1_55, 0x0101010101010101, 0x0000000000000200, 0x48221b9937748a23)
 
 DES_TEST (des_test1_56, 0x0101010101010101, 0x0000000000000100, 0xdd7c0bbd61fafd54)
 
 DES_TEST (des_test1_57, 0x0101010101010101, 0x0000000000000080, 0x2fbc291a570db5c4)
 
 DES_TEST (des_test1_58, 0x0101010101010101, 0x0000000000000040, 0xe07c30d7e4e26e12)
 
 DES_TEST (des_test1_59, 0x0101010101010101, 0x0000000000000020, 0x0953e2258e8e90a1)
 
 DES_TEST (des_test1_60, 0x0101010101010101, 0x0000000000000010, 0x5b711bc4ceebf2ee)
 
 DES_TEST (des_test1_61, 0x0101010101010101, 0x0000000000000008, 0xcc083f1e6d9e85f6)
 
 DES_TEST (des_test1_62, 0x0101010101010101, 0x0000000000000004, 0xd2fd8867d50d2dfe)
 
 DES_TEST (des_test1_63, 0x0101010101010101, 0x0000000000000002, 0x06e7ea22ce92708f)
 
 DES_TEST (des_test1_64, 0x0101010101010101, 0x0000000000000001, 0x166b40b44aba4bd6)
 
 DES_TEST (des_test2_1, 0x0101010101010101, 0x95f8a5e5dd31d900, 0x8000000000000000)
 
 DES_TEST (des_test2_2, 0x0101010101010101, 0xdd7f121ca5015619, 0x4000000000000000)
 
 DES_TEST (des_test2_3, 0x0101010101010101, 0x2e8653104f3834ea, 0x2000000000000000)
 
 DES_TEST (des_test2_4, 0x0101010101010101, 0x4bd388ff6cd81d4f, 0x1000000000000000)
 
 DES_TEST (des_test2_5, 0x0101010101010101, 0x20b9e767b2fb1456, 0x0800000000000000)
 
 DES_TEST (des_test2_6, 0x0101010101010101, 0x55579380d77138ef, 0x0400000000000000)
 
 DES_TEST (des_test2_7, 0x0101010101010101, 0x6cc5defaaf04512f, 0x0200000000000000)
 
 DES_TEST (des_test2_8, 0x0101010101010101, 0x0d9f279ba5d87260, 0x0100000000000000)
 
 DES_TEST (des_test2_9, 0x0101010101010101, 0xd9031b0271bd5a0a, 0x0080000000000000)
 
 DES_TEST (des_test2_10, 0x0101010101010101, 0x424250b37c3dd951, 0x0040000000000000)
 
 DES_TEST (des_test2_11, 0x0101010101010101, 0xb8061b7ecd9a21e5, 0x0020000000000000)
 
 DES_TEST (des_test2_12, 0x0101010101010101, 0xf15d0f286b65bd28, 0x0010000000000000)
 
 DES_TEST (des_test2_13, 0x0101010101010101, 0xadd0cc8d6e5deba1, 0x0008000000000000)
 
 DES_TEST (des_test2_14, 0x0101010101010101, 0xe6d5f82752ad63d1, 0x0004000000000000)
 
 DES_TEST (des_test2_15, 0x0101010101010101, 0xecbfe3bd3f591a5e, 0x0002000000000000)
 
 DES_TEST (des_test2_16, 0x0101010101010101, 0xf356834379d165cd, 0x0001000000000000)
 
 DES_TEST (des_test2_17, 0x0101010101010101, 0x2b9f982f20037fa9, 0x0000800000000000)
 
 DES_TEST (des_test2_18, 0x0101010101010101, 0x889de068a16f0be6, 0x0000400000000000)
 
 DES_TEST (des_test2_19, 0x0101010101010101, 0xe19e275d846a1298, 0x0000200000000000)
 
 DES_TEST (des_test2_20, 0x0101010101010101, 0x329a8ed523d71aec, 0x0000100000000000)
 
 DES_TEST (des_test2_21, 0x0101010101010101, 0xe7fce22557d23c97, 0x0000080000000000)
 
 DES_TEST (des_test2_22, 0x0101010101010101, 0x12a9f5817ff2d65d, 0x0000040000000000)
 
 DES_TEST (des_test2_23, 0x0101010101010101, 0xa484c3ad38dc9c19, 0x0000020000000000)
 
 DES_TEST (des_test2_24, 0x0101010101010101, 0xfbe00a8a1ef8ad72, 0x0000010000000000)
 
 DES_TEST (des_test2_25, 0x0101010101010101, 0x750d079407521363, 0x0000008000000000)
 
 DES_TEST (des_test2_26, 0x0101010101010101, 0x64feed9c724c2faf, 0x0000004000000000)
 
 DES_TEST (des_test2_27, 0x0101010101010101, 0xf02b263b328e2b60, 0x0000002000000000)
 
 DES_TEST (des_test2_28, 0x0101010101010101, 0x9d64555a9a10b852, 0x0000001000000000)
 
 DES_TEST (des_test2_29, 0x0101010101010101, 0xd106ff0bed5255d7, 0x0000000800000000)
 
 DES_TEST (des_test2_30, 0x0101010101010101, 0xe1652c6b138c64a5, 0x0000000400000000)
 
 DES_TEST (des_test2_31, 0x0101010101010101, 0xe428581186ec8f46, 0x0000000200000000)
 
 DES_TEST (des_test2_32, 0x0101010101010101, 0xaeb5f5ede22d1a36, 0x0000000100000000)
 
 DES_TEST (des_test2_33, 0x0101010101010101, 0xe943d7568aec0c5c, 0x0000000080000000)
 
 DES_TEST (des_test2_34, 0x0101010101010101, 0xdf98c8276f54b04b, 0x0000000040000000)
 
 DES_TEST (des_test2_35, 0x0101010101010101, 0xb160e4680f6c696f, 0x0000000020000000)
 
 DES_TEST (des_test2_36, 0x0101010101010101, 0xfa0752b07d9c4ab8, 0x0000000010000000)
 
 DES_TEST (des_test2_37, 0x0101010101010101, 0xca3a2b036dbc8502, 0x0000000008000000)
 
 DES_TEST (des_test2_38, 0x0101010101010101, 0x5e0905517bb59bcf, 0x0000000004000000)
 
 DES_TEST (des_test2_39, 0x0101010101010101, 0x814eeb3b91d90726, 0x0000000002000000)
 
 DES_TEST (des_test2_40, 0x0101010101010101, 0x4d49db1532919c9f, 0x0000000001000000)
 
 DES_TEST (des_test2_41, 0x0101010101010101, 0x25eb5fc3f8cf0621, 0x0000000000800000)
 
 DES_TEST (des_test2_42, 0x0101010101010101, 0xab6a20c0620d1c6f, 0x0000000000400000)
 
 DES_TEST (des_test2_43, 0x0101010101010101, 0x79e90dbc98f92cca, 0x0000000000200000)
 
 DES_TEST (des_test2_44, 0x0101010101010101, 0x866ecedd8072bb0e, 0x0000000000100000)
 
 DES_TEST (des_test2_45, 0x0101010101010101, 0x8b54536f2f3e64a8, 0x0000000000080000)
 
 DES_TEST (des_test2_46, 0x0101010101010101, 0xea51d3975595b86b, 0x0000000000040000)
 
 DES_TEST (des_test2_47, 0x0101010101010101, 0xcaffc6ac4542de31, 0x0000000000020000)
 
 DES_TEST (des_test2_48, 0x0101010101010101, 0x8dd45a2ddf90796c, 0x0000000000010000)
 
 DES_TEST (des_test2_49, 0x0101010101010101, 0x1029d55e880ec2d0, 0x0000000000008000)
 
 DES_TEST (des_test2_50, 0x0101010101010101, 0x5d86cb23639dbea9, 0x0000000000004000)
 
 DES_TEST (des_test2_51, 0x0101010101010101, 0x1d1ca853ae7c0c5f, 0x0000000000002000)
 
 DES_TEST (des_test2_52, 0x0101010101010101, 0xce332329248f3228, 0x0000000000001000)
 
 DES_TEST (des_test2_53, 0x0101010101010101, 0x8405d1abe24fb942, 0x0000000000000800)
 
 DES_TEST (des_test2_54, 0x0101010101010101, 0xe643d78090ca4207, 0x0000000000000400)
 
 DES_TEST (des_test2_55, 0x0101010101010101, 0x48221b9937748a23, 0x0000000000000200)
 
 DES_TEST (des_test2_56, 0x0101010101010101, 0xdd7c0bbd61fafd54, 0x0000000000000100)
 
 DES_TEST (des_test2_57, 0x0101010101010101, 0x2fbc291a570db5c4, 0x0000000000000080)
 
 DES_TEST (des_test2_58, 0x0101010101010101, 0xe07c30d7e4e26e12, 0x0000000000000040)
 
 DES_TEST (des_test2_59, 0x0101010101010101, 0x0953e2258e8e90a1, 0x0000000000000020)
 
 DES_TEST (des_test2_60, 0x0101010101010101, 0x5b711bc4ceebf2ee, 0x0000000000000010)
 
 DES_TEST (des_test2_61, 0x0101010101010101, 0xcc083f1e6d9e85f6, 0x0000000000000008)
 
 DES_TEST (des_test2_62, 0x0101010101010101, 0xd2fd8867d50d2dfe, 0x0000000000000004)
 
 DES_TEST (des_test2_63, 0x0101010101010101, 0x06e7ea22ce92708f, 0x0000000000000002)
 
 DES_TEST (des_test2_64, 0x0101010101010101, 0x166b40b44aba4bd6, 0x0000000000000001)
 
 DES_TEST (des_test3_1, 0x1046913489980131, 0x0000000000000000, 0x88d55e54f54c97b4)
 
 DES_TEST (des_test3_2, 0x1007103489988020, 0x0000000000000000, 0x0c0cc00c83ea48fd)
 
 DES_TEST (des_test3_3, 0x10071034c8980120, 0x0000000000000000, 0x83bc8ef3a6570183)
 
 DES_TEST (des_test3_4, 0x1046103489988020, 0x0000000000000000, 0xdf725dcad94ea2e9)
 
 DES_TEST (des_test3_5, 0x1086911519190101, 0x0000000000000000, 0xe652b53b550be8b0)
 
 DES_TEST (des_test3_6, 0x1086911519580101, 0x0000000000000000, 0xaf527120c485cbb0)
 
 DES_TEST (des_test3_7, 0x5107b01519580101, 0x0000000000000000, 0x0f04ce393db926d5)
 
 DES_TEST (des_test3_8, 0x1007b01519190101, 0x0000000000000000, 0xc9f00ffc74079067)
 
 DES_TEST (des_test3_9, 0x3107915498080101, 0x0000000000000000, 0x7cfd82a593252b4e)
 
 DES_TEST (des_test3_10, 0x3107919498080101, 0x0000000000000000, 0xcb49a2f9e91363e3)
 
 DES_TEST (des_test3_11, 0x10079115b9080140, 0x0000000000000000, 0x00b588be70d23f56)
 
 DES_TEST (des_test3_12, 0x3107911598080140, 0x0000000000000000, 0x406a9a6ab43399ae)
 
 DES_TEST (des_test3_13, 0x1007d01589980101, 0x0000000000000000, 0x6cb773611dca9ada)
 
 DES_TEST (des_test3_14, 0x9107911589980101, 0x0000000000000000, 0x67fd21c17dbb5d70)
 
 DES_TEST (des_test3_15, 0x9107d01589190101, 0x0000000000000000, 0x9592cb4110430787)
 
 DES_TEST (des_test3_16, 0x1007d01598980120, 0x0000000000000000, 0xa6b7ff68a318ddd3)
 
 DES_TEST (des_test3_17, 0x1007940498190101, 0x0000000000000000, 0x4d102196c914ca16)
 
 DES_TEST (des_test3_18, 0x0107910491190401, 0x0000000000000000, 0x2dfa9f4573594965)
 
 DES_TEST (des_test3_19, 0x0107910491190101, 0x0000000000000000, 0xb46604816c0e0774)
 
 DES_TEST (des_test3_20, 0x0107940491190401, 0x0000000000000000, 0x6e7e6221a4f34e87)
 
 DES_TEST (des_test3_21, 0x19079210981a0101, 0x0000000000000000, 0xaa85e74643233199)
 
 DES_TEST (des_test3_22, 0x1007911998190801, 0x0000000000000000, 0x2e5a19db4d1962d6)
 
 DES_TEST (des_test3_23, 0x10079119981a0801, 0x0000000000000000, 0x23a866a809d30894)
 
 DES_TEST (des_test3_24, 0x1007921098190101, 0x0000000000000000, 0xd812d961f017d320)
 
 DES_TEST (des_test3_25, 0x100791159819010b, 0x0000000000000000, 0x055605816e58608f)
 
 DES_TEST (des_test3_26, 0x1004801598190101, 0x0000000000000000, 0xabd88e8b1b7716f1)
 
 DES_TEST (des_test3_27, 0x1004801598190102, 0x0000000000000000, 0x537ac95be69da1e1)
 
 DES_TEST (des_test3_28, 0x1004801598190108, 0x0000000000000000, 0xaed0f6ae3c25cdd8)
 
 DES_TEST (des_test3_29, 0x1002911498100104, 0x0000000000000000, 0xb3e35a5ee53e7b8d)
 
 DES_TEST (des_test3_30, 0x1002911598190104, 0x0000000000000000, 0x61c79c71921a2ef8)
 
 DES_TEST (des_test3_31, 0x1002911598100201, 0x0000000000000000, 0xe2f5728f0995013c)
 
 DES_TEST (des_test3_32, 0x1002911698100101, 0x0000000000000000, 0x1aeac39a61f0a464)
 
 DES_TEST (des_test4_1, 0x8001010101010101, 0x0000000000000000, 0x95a8d72813daa94d)
 
 DES_TEST (des_test4_2, 0x4001010101010101, 0x0000000000000000, 0x0eec1487dd8c26d5)
 
 DES_TEST (des_test4_3, 0x2001010101010101, 0x0000000000000000, 0x7ad16ffb79c45926)
 
 DES_TEST (des_test4_4, 0x1001010101010101, 0x0000000000000000, 0xd3746294ca6a6cf3)
 
 DES_TEST (des_test4_5, 0x0801010101010101, 0x0000000000000000, 0x809f5f873c1fd761)
 
 DES_TEST (des_test4_6, 0x0401010101010101, 0x0000000000000000, 0xc02faffec989d1fc)
 
 DES_TEST (des_test4_7, 0x0201010101010101, 0x0000000000000000, 0x4615aa1d33e72f10)
 
 DES_TEST (des_test4_8, 0x0180010101010101, 0x0000000000000000, 0x2055123350c00858)
 
 DES_TEST (des_test4_9, 0x0140010101010101, 0x0000000000000000, 0xdf3b99d6577397c8)
 
 DES_TEST (des_test4_10, 0x0120010101010101, 0x0000000000000000, 0x31fe17369b5288c9)
 
 DES_TEST (des_test4_11, 0x0110010101010101, 0x0000000000000000, 0xdfdd3cc64dae1642)
 
 DES_TEST (des_test4_12, 0x0108010101010101, 0x0000000000000000, 0x178c83ce2b399d94)
 
 DES_TEST (des_test4_13, 0x0104010101010101, 0x0000000000000000, 0x50f636324a9b7f80)
 
 DES_TEST (des_test4_14, 0x0102010101010101, 0x0000000000000000, 0xa8468ee3bc18f06d)
 
 DES_TEST (des_test4_15, 0x0101800101010101, 0x0000000000000000, 0xa2dc9e92fd3cde92)
 
 DES_TEST (des_test4_16, 0x0101400101010101, 0x0000000000000000, 0xcac09f797d031287)
 
 DES_TEST (des_test4_17, 0x0101200101010101, 0x0000000000000000, 0x90ba680b22aeb525)
 
 DES_TEST (des_test4_18, 0x0101100101010101, 0x0000000000000000, 0xce7a24f350e280b6)
 
 DES_TEST (des_test4_19, 0x0101080101010101, 0x0000000000000000, 0x882bff0aa01a0b87)
 
 DES_TEST (des_test4_20, 0x0101040101010101, 0x0000000000000000, 0x25610288924511c2)
 
 DES_TEST (des_test4_21, 0x0101020101010101, 0x0000000000000000, 0xc71516c29c75d170)
 
 DES_TEST (des_test4_22, 0x0101018001010101, 0x0000000000000000, 0x5199c29a52c9f059)
 
 DES_TEST (des_test4_23, 0x0101014001010101, 0x0000000000000000, 0xc22f0a294a71f29f)
 
 DES_TEST (des_test4_24, 0x0101012001010101, 0x0000000000000000, 0xee371483714c02ea)
 
 DES_TEST (des_test4_25, 0x0101011001010101, 0x0000000000000000, 0xa81fbd448f9e522f)
 
 DES_TEST (des_test4_26, 0x0101010801010101, 0x0000000000000000, 0x4f644c92e192dfed)
 
 DES_TEST (des_test4_27, 0x0101010401010101, 0x0000000000000000, 0x1afa9a66a6df92ae)
 
 DES_TEST (des_test4_28, 0x0101010201010101, 0x0000000000000000, 0xb3c1cc715cb879d8)
 
 DES_TEST (des_test4_29, 0x0101010180010101, 0x0000000000000000, 0x19d032e64ab0bd8b)
 
 DES_TEST (des_test4_30, 0x0101010140010101, 0x0000000000000000, 0x3cfaa7a7dc8720dc)
 
 DES_TEST (des_test4_31, 0x0101010120010101, 0x0000000000000000, 0xb7265f7f447ac6f3)
 
 DES_TEST (des_test4_32, 0x0101010110010101, 0x0000000000000000, 0x9db73b3c0d163f54)
 
 DES_TEST (des_test4_33, 0x0101010108010101, 0x0000000000000000, 0x8181b65babf4a975)
 
 DES_TEST (des_test4_34, 0x0101010104010101, 0x0000000000000000, 0x93c9b64042eaa240)
 
 DES_TEST (des_test4_35, 0x0101010102010101, 0x0000000000000000, 0x5570530829705592)
 
 DES_TEST (des_test4_36, 0x0101010101800101, 0x0000000000000000, 0x8638809e878787a0)
 
 DES_TEST (des_test4_37, 0x0101010101400101, 0x0000000000000000, 0x41b9a79af79ac208)
 
 DES_TEST (des_test4_38, 0x0101010101200101, 0x0000000000000000, 0x7a9be42f2009a892)
 
 DES_TEST (des_test4_39, 0x0101010101100101, 0x0000000000000000, 0x29038d56ba6d2745)
 
 DES_TEST (des_test4_40, 0x0101010101080101, 0x0000000000000000, 0x5495c6abf1e5df51)
 
 DES_TEST (des_test4_41, 0x0101010101040101, 0x0000000000000000, 0xae13dbd561488933)
 
 DES_TEST (des_test4_42, 0x0101010101020101, 0x0000000000000000, 0x024d1ffa8904e389)
 
 DES_TEST (des_test4_43, 0x0101010101018001, 0x0000000000000000, 0xd1399712f99bf02e)
 
 DES_TEST (des_test4_44, 0x0101010101014001, 0x0000000000000000, 0x14c1d7c1cffec79e)
 
 DES_TEST (des_test4_45, 0x0101010101012001, 0x0000000000000000, 0x1de5279dae3bed6f)
 
 DES_TEST (des_test4_46, 0x0101010101011001, 0x0000000000000000, 0xe941a33f85501303)
 
 DES_TEST (des_test4_47, 0x0101010101010801, 0x0000000000000000, 0xda99dbbc9a03f379)
 
 DES_TEST (des_test4_48, 0x0101010101010401, 0x0000000000000000, 0xb7fc92f91d8e92e9)
 
 DES_TEST (des_test4_49, 0x0101010101010201, 0x0000000000000000, 0xae8e5caa3ca04e85)
 
 DES_TEST (des_test4_50, 0x0101010101010180, 0x0000000000000000, 0x9cc62df43b6eed74)
 
 DES_TEST (des_test4_51, 0x0101010101010140, 0x0000000000000000, 0xd863dbb5c59a91a0)
 
 DES_TEST (des_test4_52, 0x0101010101010120, 0x0000000000000000, 0xa1ab2190545b91d7)
 
 DES_TEST (des_test4_53, 0x0101010101010110, 0x0000000000000000, 0x0875041e64c570f7)
 
 DES_TEST (des_test4_54, 0x0101010101010108, 0x0000000000000000, 0x5a594528bebef1cc)
 
 DES_TEST (des_test4_55, 0x0101010101010104, 0x0000000000000000, 0xfcdb3291de21f0c0)
 
 DES_TEST (des_test4_56, 0x0101010101010102, 0x0000000000000000, 0x869efd7f9f265a09)
 
 DES_TEST (des_test5_1, 0x7ca110454a1a6e57, 0x01a1d6d039776742, 0x690f5b0d9a26939b)
 
 DES_TEST (des_test5_2, 0x0131d9619dc1376e, 0x5cd54ca83def57da, 0x7a389d10354bd271)
 
 DES_TEST (des_test5_3, 0x07a1133e4a0b2686, 0x0248d43806f67172, 0x868ebb51cab4599a)
 
 DES_TEST (des_test5_4, 0x3849674c2602319e, 0x51454b582ddf440a, 0x7178876e01f19b2a)
 
 DES_TEST (des_test5_5, 0x04b915ba43feb5b6, 0x42fd443059577fa2, 0xaf37fb421f8c4095)
 
 DES_TEST (des_test5_6, 0x0113b970fd34f2ce, 0x059b5e0851cf143a, 0x86a560f10ec6d85b)
 
 DES_TEST (des_test5_7, 0x0170f175468fb5e6, 0x0756d8e0774761d2, 0x0cd3da020021dc09)
 
 DES_TEST (des_test5_8, 0x43297fad38e373fe, 0x762514b829bf486a, 0xea676b2cb7db2b7a)
 
 DES_TEST (des_test5_9, 0x07a7137045da2a16, 0x3bdd119049372802, 0xdfd64a815caf1a0f)
 
 DES_TEST (des_test5_10, 0x04689104c2fd3b2f, 0x26955f6835af609a, 0x5c513c9c4886c088)
 
 DES_TEST (des_test5_11, 0x37d06bb516cb7546, 0x164d5e404f275232, 0x0a2aeeae3ff4ab77)
 
 DES_TEST (des_test5_12, 0x1f08260d1ac2465e, 0x6b056e18759f5cca, 0xef1bf03e5dfa575a)
 
 DES_TEST (des_test5_13, 0x584023641aba6176, 0x004bd6ef09176062, 0x88bf0db6d70dee56)
 
 DES_TEST (des_test5_14, 0x025816164629b007, 0x480d39006ee762f2, 0xa1f9915541020b56)
 
 DES_TEST (des_test5_15, 0x49793ebc79b3258f, 0x437540c8698f3cfa, 0x6fbf1cafcffd0556)
 
 DES_TEST (des_test5_16, 0x4fb05e1515ab73a7, 0x072d43a077075292, 0x2f22e49bab7ca1ac)
 
 DES_TEST (des_test5_17, 0x49e95d6d4ca229bf, 0x02fe55778117f12a, 0x5a6b612cc26cce4a)
 
 DES_TEST (des_test5_18, 0x018310dc409b26d6, 0x1d9d5c5018f728c2, 0x5f4c038ed12b2e41)
 
 DES_TEST (des_test5_19, 0x1c587f1c13924fef, 0x305532286d6f295a, 0x63fac0d034d9f793)
 
 CIPHER_TEST (des_unofficial_ecb, &des_ecb_algorithm, KEY(0x6e, 0x6f, 0x70, 0x61, 0x72, 0x69, 0x74, 0x79), IV(), ADDITIONAL(), PLAINTEXT(0x53, 0x6f, 0x20, 0x63, 0x75, 0x74, 0x65, 0x20, 0x74, 0x6f, 0x20, 0x73, 0x65, 0x65, 0x20, 0x61, 0x20, 0x73, 0x70, 0x65, 0x63, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x77, 0x72, 0x69, 0x74, 0x74, 0x65, 0x6e, 0x20, 0x6f, 0x6e, 0x20, 0x61, 0x6e, 0x20, 0x61, 0x63, 0x74, 0x75, 0x61, 0x6c, 0x20, 0x74, 0x79, 0x70, 0x65, 0x77, 0x72, 0x69, 0x74, 0x65, 0x72, 0x21, 0x21), CIPHERTEXT(0x1a, 0x02, 0x17, 0xcb, 0x93, 0xa3, 0xd2, 0xf2, 0xf9, 0x45, 0x71, 0x1c, 0x33, 0xb1, 0x5c, 0xa4, 0x8b, 0x6b, 0x11, 0x7a, 0x7c, 0x86, 0x7c, 0x7f, 0x9f, 0x56, 0x61, 0x46, 0x7f, 0xa6, 0xae, 0xf1, 0x49, 0xf7, 0x53, 0xe0, 0xbc, 0x15, 0x6a, 0x30, 0xe7, 0xf8, 0xf3, 0x29, 0x11, 0xd8, 0x7d, 0x04, 0x62, 0x5a, 0xaa, 0xa1, 0x89, 0x61, 0x4c, 0xf6, 0x5a, 0x47, 0x3b, 0xc6, 0x04, 0x15, 0xce, 0xf6), AUTH())
 
 CIPHER_TEST (des_unofficial_cbc, &des_cbc_algorithm, KEY(0x6e, 0x6f, 0x70, 0x61, 0x72, 0x69, 0x74, 0x79), IV(0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08), ADDITIONAL(), PLAINTEXT(0x53, 0x6f, 0x20, 0x63, 0x75, 0x74, 0x65, 0x20, 0x74, 0x6f, 0x20, 0x73, 0x65, 0x65, 0x20, 0x61, 0x20, 0x73, 0x70, 0x65, 0x63, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x77, 0x72, 0x69, 0x74, 0x74, 0x65, 0x6e, 0x20, 0x6f, 0x6e, 0x20, 0x61, 0x6e, 0x20, 0x61, 0x63, 0x74, 0x75, 0x61, 0x6c, 0x20, 0x74, 0x79, 0x70, 0x65, 0x77, 0x72, 0x69, 0x74, 0x65, 0x72, 0x21, 0x21), CIPHERTEXT(0x4c, 0x5f, 0x62, 0xfc, 0xf4, 0x93, 0x09, 0xb5, 0x1d, 0x52, 0x25, 0xec, 0xc7, 0x42, 0x3c, 0x29, 0x33, 0x67, 0xf5, 0xe9, 0xd6, 0x3c, 0x27, 0x5b, 0x49, 0x69, 0xc5, 0xa9, 0x08, 0xa3, 0x14, 0x66, 0x3c, 0x95, 0x33, 0x30, 0xcf, 0x3c, 0x7c, 0xaf, 0xa3, 0xe4, 0xf8, 0x2e, 0xc3, 0x55, 0x57, 0x81, 0x33, 0xd9, 0x90, 0xe2, 0x99, 0xdc, 0x32, 0x10, 0x13, 0x21, 0xb6, 0xc1, 0x6b, 0x0f, 0x22, 0xa9), AUTH())
 
static void des_test_exec (void)
 Perform DES self-test. More...
 

Variables

struct self_test des_test __self_test
 DES self-test. More...
 

Detailed Description

DES tests.

These test vectors are originally provided by NBS (the precursor of NIST) in SP 500-20, downloadable as a scan of the typewritten original from:

https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nbsspecialpublication500-20e1980.pdf

Definition in file des_test.c.

Macro Definition Documentation

◆ DES_VALUE

#define DES_VALUE (   value)
Value:
{ \
( ( ( ( uint64_t ) (value) ) >> 56 ) & 0xff ), \
( ( ( ( uint64_t ) (value) ) >> 48 ) & 0xff ), \
( ( ( ( uint64_t ) (value) ) >> 40 ) & 0xff ), \
( ( ( ( uint64_t ) (value) ) >> 32 ) & 0xff ), \
( ( ( ( uint64_t ) (value) ) >> 24 ) & 0xff ), \
( ( ( ( uint64_t ) (value) ) >> 16 ) & 0xff ), \
( ( ( ( uint64_t ) (value) ) >> 8 ) & 0xff ), \
( ( ( ( uint64_t ) (value) ) >> 0 ) & 0xff ) \
}
unsigned long long uint64_t
Definition: stdint.h:13
pseudo_bit_t value[0x00020]
Definition: arbel.h:13

Define a DES 64-bit test value.

Definition at line 46 of file des_test.c.

◆ DES_TEST

#define DES_TEST (   name,
  key,
  plaintext,
  ciphertext 
)
Value:
IV(), ADDITIONAL(), DES_VALUE ( plaintext ), \
DES_VALUE ( ciphertext ), AUTH() )
#define AUTH(...)
Define inline authentication tag.
Definition: cipher_test.h:60
#define IV(...)
Define inline initialisation vector.
Definition: cipher_test.h:48
const char * name
Definition: ath9k_hw.c:1984
CIPHER_TEST(des_unofficial_ecb, &des_ecb_algorithm, KEY(0x6e, 0x6f, 0x70, 0x61, 0x72, 0x69, 0x74, 0x79), IV(), ADDITIONAL(), PLAINTEXT(0x53, 0x6f, 0x20, 0x63, 0x75, 0x74, 0x65, 0x20, 0x74, 0x6f, 0x20, 0x73, 0x65, 0x65, 0x20, 0x61, 0x20, 0x73, 0x70, 0x65, 0x63, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x77, 0x72, 0x69, 0x74, 0x74, 0x65, 0x6e, 0x20, 0x6f, 0x6e, 0x20, 0x61, 0x6e, 0x20, 0x61, 0x63, 0x74, 0x75, 0x61, 0x6c, 0x20, 0x74, 0x79, 0x70, 0x65, 0x77, 0x72, 0x69, 0x74, 0x65, 0x72, 0x21, 0x21), CIPHERTEXT(0x1a, 0x02, 0x17, 0xcb, 0x93, 0xa3, 0xd2, 0xf2, 0xf9, 0x45, 0x71, 0x1c, 0x33, 0xb1, 0x5c, 0xa4, 0x8b, 0x6b, 0x11, 0x7a, 0x7c, 0x86, 0x7c, 0x7f, 0x9f, 0x56, 0x61, 0x46, 0x7f, 0xa6, 0xae, 0xf1, 0x49, 0xf7, 0x53, 0xe0, 0xbc, 0x15, 0x6a, 0x30, 0xe7, 0xf8, 0xf3, 0x29, 0x11, 0xd8, 0x7d, 0x04, 0x62, 0x5a, 0xaa, 0xa1, 0x89, 0x61, 0x4c, 0xf6, 0x5a, 0x47, 0x3b, 0xc6, 0x04, 0x15, 0xce, 0xf6), AUTH())
struct cipher_algorithm des_ecb_algorithm
#define DES_VALUE(value)
Define a DES 64-bit test value.
Definition: des_test.c:46
#define ADDITIONAL(...)
Define inline additional data.
Definition: cipher_test.h:51
union @383 key
Sense key.
Definition: scsi.h:18

Define a DES test.

Definition at line 58 of file des_test.c.

Function Documentation

◆ FILE_LICENCE()

FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL  )

◆ DES_TEST() [1/236]

DES_TEST ( des_round_sample  ,
0x10316e028c8f3b4a  ,
0x0000000000000000  ,
0x82dcbafbdeab6602   
)

◆ DES_TEST() [2/236]

DES_TEST ( des_test1_1  ,
0x0101010101010101  ,
0x8000000000000000  ,
0x95f8a5e5dd31d900   
)

◆ DES_TEST() [3/236]

DES_TEST ( des_test1_2  ,
0x0101010101010101  ,
0x4000000000000000  ,
0xdd7f121ca5015619   
)

◆ DES_TEST() [4/236]

DES_TEST ( des_test1_3  ,
0x0101010101010101  ,
0x2000000000000000  ,
0x2e8653104f3834ea   
)

◆ DES_TEST() [5/236]

DES_TEST ( des_test1_4  ,
0x0101010101010101  ,
0x1000000000000000  ,
0x4bd388ff6cd81d4f   
)

◆ DES_TEST() [6/236]

DES_TEST ( des_test1_5  ,
0x0101010101010101  ,
0x0800000000000000  ,
0x20b9e767b2fb1456   
)

◆ DES_TEST() [7/236]

DES_TEST ( des_test1_6  ,
0x0101010101010101  ,
0x0400000000000000  ,
0x55579380d77138ef   
)

◆ DES_TEST() [8/236]

DES_TEST ( des_test1_7  ,
0x0101010101010101  ,
0x0200000000000000  ,
0x6cc5defaaf04512f   
)

◆ DES_TEST() [9/236]

DES_TEST ( des_test1_8  ,
0x0101010101010101  ,
0x0100000000000000  ,
0x0d9f279ba5d87260   
)

◆ DES_TEST() [10/236]

DES_TEST ( des_test1_9  ,
0x0101010101010101  ,
0x0080000000000000  ,
0xd9031b0271bd5a0a   
)

◆ DES_TEST() [11/236]

DES_TEST ( des_test1_10  ,
0x0101010101010101  ,
0x0040000000000000  ,
0x424250b37c3dd951   
)

◆ DES_TEST() [12/236]

DES_TEST ( des_test1_11  ,
0x0101010101010101  ,
0x0020000000000000  ,
0xb8061b7ecd9a21e5   
)

◆ DES_TEST() [13/236]

DES_TEST ( des_test1_12  ,
0x0101010101010101  ,
0x0010000000000000  ,
0xf15d0f286b65bd28   
)

◆ DES_TEST() [14/236]

DES_TEST ( des_test1_13  ,
0x0101010101010101  ,
0x0008000000000000  ,
0xadd0cc8d6e5deba1   
)

◆ DES_TEST() [15/236]

DES_TEST ( des_test1_14  ,
0x0101010101010101  ,
0x0004000000000000  ,
0xe6d5f82752ad63d1   
)

◆ DES_TEST() [16/236]

DES_TEST ( des_test1_15  ,
0x0101010101010101  ,
0x0002000000000000  ,
0xecbfe3bd3f591a5e   
)

◆ DES_TEST() [17/236]

DES_TEST ( des_test1_16  ,
0x0101010101010101  ,
0x0001000000000000  ,
0xf356834379d165cd   
)

◆ DES_TEST() [18/236]

DES_TEST ( des_test1_17  ,
0x0101010101010101  ,
0x0000800000000000  ,
0x2b9f982f20037fa9   
)

◆ DES_TEST() [19/236]

DES_TEST ( des_test1_18  ,
0x0101010101010101  ,
0x0000400000000000  ,
0x889de068a16f0be6   
)

◆ DES_TEST() [20/236]

DES_TEST ( des_test1_19  ,
0x0101010101010101  ,
0x0000200000000000  ,
0xe19e275d846a1298   
)

◆ DES_TEST() [21/236]

DES_TEST ( des_test1_20  ,
0x0101010101010101  ,
0x0000100000000000  ,
0x329a8ed523d71aec   
)

◆ DES_TEST() [22/236]

DES_TEST ( des_test1_21  ,
0x0101010101010101  ,
0x0000080000000000  ,
0xe7fce22557d23c97   
)

◆ DES_TEST() [23/236]

DES_TEST ( des_test1_22  ,
0x0101010101010101  ,
0x0000040000000000  ,
0x12a9f5817ff2d65d   
)

◆ DES_TEST() [24/236]

DES_TEST ( des_test1_23  ,
0x0101010101010101  ,
0x0000020000000000  ,
0xa484c3ad38dc9c19   
)

◆ DES_TEST() [25/236]

DES_TEST ( des_test1_24  ,
0x0101010101010101  ,
0x0000010000000000  ,
0xfbe00a8a1ef8ad72   
)

◆ DES_TEST() [26/236]

DES_TEST ( des_test1_25  ,
0x0101010101010101  ,
0x0000008000000000  ,
0x750d079407521363   
)

◆ DES_TEST() [27/236]

DES_TEST ( des_test1_26  ,
0x0101010101010101  ,
0x0000004000000000  ,
0x64feed9c724c2faf   
)

◆ DES_TEST() [28/236]

DES_TEST ( des_test1_27  ,
0x0101010101010101  ,
0x0000002000000000  ,
0xf02b263b328e2b60   
)

◆ DES_TEST() [29/236]

DES_TEST ( des_test1_28  ,
0x0101010101010101  ,
0x0000001000000000  ,
0x9d64555a9a10b852   
)

◆ DES_TEST() [30/236]

DES_TEST ( des_test1_29  ,
0x0101010101010101  ,
0x0000000800000000  ,
0xd106ff0bed5255d7   
)

◆ DES_TEST() [31/236]

DES_TEST ( des_test1_30  ,
0x0101010101010101  ,
0x0000000400000000  ,
0xe1652c6b138c64a5   
)

◆ DES_TEST() [32/236]

DES_TEST ( des_test1_31  ,
0x0101010101010101  ,
0x0000000200000000  ,
0xe428581186ec8f46   
)

◆ DES_TEST() [33/236]

DES_TEST ( des_test1_32  ,
0x0101010101010101  ,
0x0000000100000000  ,
0xaeb5f5ede22d1a36   
)

◆ DES_TEST() [34/236]

DES_TEST ( des_test1_33  ,
0x0101010101010101  ,
0x0000000080000000  ,
0xe943d7568aec0c5c   
)

◆ DES_TEST() [35/236]

DES_TEST ( des_test1_34  ,
0x0101010101010101  ,
0x0000000040000000  ,
0xdf98c8276f54b04b   
)

◆ DES_TEST() [36/236]

DES_TEST ( des_test1_35  ,
0x0101010101010101  ,
0x0000000020000000  ,
0xb160e4680f6c696f   
)

◆ DES_TEST() [37/236]

DES_TEST ( des_test1_36  ,
0x0101010101010101  ,
0x0000000010000000  ,
0xfa0752b07d9c4ab8   
)

◆ DES_TEST() [38/236]

DES_TEST ( des_test1_37  ,
0x0101010101010101  ,
0x0000000008000000  ,
0xca3a2b036dbc8502   
)

◆ DES_TEST() [39/236]

DES_TEST ( des_test1_38  ,
0x0101010101010101  ,
0x0000000004000000  ,
0x5e0905517bb59bcf   
)

◆ DES_TEST() [40/236]

DES_TEST ( des_test1_39  ,
0x0101010101010101  ,
0x0000000002000000  ,
0x814eeb3b91d90726   
)

◆ DES_TEST() [41/236]

DES_TEST ( des_test1_40  ,
0x0101010101010101  ,
0x0000000001000000  ,
0x4d49db1532919c9f   
)

◆ DES_TEST() [42/236]

DES_TEST ( des_test1_41  ,
0x0101010101010101  ,
0x0000000000800000  ,
0x25eb5fc3f8cf0621   
)

◆ DES_TEST() [43/236]

DES_TEST ( des_test1_42  ,
0x0101010101010101  ,
0x0000000000400000  ,
0xab6a20c0620d1c6f   
)

◆ DES_TEST() [44/236]

DES_TEST ( des_test1_43  ,
0x0101010101010101  ,
0x0000000000200000  ,
0x79e90dbc98f92cca   
)

◆ DES_TEST() [45/236]

DES_TEST ( des_test1_44  ,
0x0101010101010101  ,
0x0000000000100000  ,
0x866ecedd8072bb0e   
)

◆ DES_TEST() [46/236]

DES_TEST ( des_test1_45  ,
0x0101010101010101  ,
0x0000000000080000  ,
0x8b54536f2f3e64a8   
)

◆ DES_TEST() [47/236]

DES_TEST ( des_test1_46  ,
0x0101010101010101  ,
0x0000000000040000  ,
0xea51d3975595b86b   
)

◆ DES_TEST() [48/236]

DES_TEST ( des_test1_47  ,
0x0101010101010101  ,
0x0000000000020000  ,
0xcaffc6ac4542de31   
)

◆ DES_TEST() [49/236]

DES_TEST ( des_test1_48  ,
0x0101010101010101  ,
0x0000000000010000  ,
0x8dd45a2ddf90796c   
)

◆ DES_TEST() [50/236]

DES_TEST ( des_test1_49  ,
0x0101010101010101  ,
0x0000000000008000  ,
0x1029d55e880ec2d0   
)

◆ DES_TEST() [51/236]

DES_TEST ( des_test1_50  ,
0x0101010101010101  ,
0x0000000000004000  ,
0x5d86cb23639dbea9   
)

◆ DES_TEST() [52/236]

DES_TEST ( des_test1_51  ,
0x0101010101010101  ,
0x0000000000002000  ,
0x1d1ca853ae7c0c5f   
)

◆ DES_TEST() [53/236]

DES_TEST ( des_test1_52  ,
0x0101010101010101  ,
0x0000000000001000  ,
0xce332329248f3228   
)

◆ DES_TEST() [54/236]

DES_TEST ( des_test1_53  ,
0x0101010101010101  ,
0x0000000000000800  ,
0x8405d1abe24fb942   
)

◆ DES_TEST() [55/236]

DES_TEST ( des_test1_54  ,
0x0101010101010101  ,
0x0000000000000400  ,
0xe643d78090ca4207   
)

◆ DES_TEST() [56/236]

DES_TEST ( des_test1_55  ,
0x0101010101010101  ,
0x0000000000000200  ,
0x48221b9937748a23   
)

◆ DES_TEST() [57/236]

DES_TEST ( des_test1_56  ,
0x0101010101010101  ,
0x0000000000000100  ,
0xdd7c0bbd61fafd54   
)

◆ DES_TEST() [58/236]

DES_TEST ( des_test1_57  ,
0x0101010101010101  ,
0x0000000000000080  ,
0x2fbc291a570db5c4   
)

◆ DES_TEST() [59/236]

DES_TEST ( des_test1_58  ,
0x0101010101010101  ,
0x0000000000000040  ,
0xe07c30d7e4e26e12   
)

◆ DES_TEST() [60/236]

DES_TEST ( des_test1_59  ,
0x0101010101010101  ,
0x0000000000000020  ,
0x0953e2258e8e90a1   
)

◆ DES_TEST() [61/236]

DES_TEST ( des_test1_60  ,
0x0101010101010101  ,
0x0000000000000010  ,
0x5b711bc4ceebf2ee   
)

◆ DES_TEST() [62/236]

DES_TEST ( des_test1_61  ,
0x0101010101010101  ,
0x0000000000000008  ,
0xcc083f1e6d9e85f6   
)

◆ DES_TEST() [63/236]

DES_TEST ( des_test1_62  ,
0x0101010101010101  ,
0x0000000000000004  ,
0xd2fd8867d50d2dfe   
)

◆ DES_TEST() [64/236]

DES_TEST ( des_test1_63  ,
0x0101010101010101  ,
0x0000000000000002  ,
0x06e7ea22ce92708f   
)

◆ DES_TEST() [65/236]

DES_TEST ( des_test1_64  ,
0x0101010101010101  ,
0x0000000000000001  ,
0x166b40b44aba4bd6   
)

◆ DES_TEST() [66/236]

DES_TEST ( des_test2_1  ,
0x0101010101010101  ,
0x95f8a5e5dd31d900  ,
0x8000000000000000   
)

◆ DES_TEST() [67/236]

DES_TEST ( des_test2_2  ,
0x0101010101010101  ,
0xdd7f121ca5015619  ,
0x4000000000000000   
)

◆ DES_TEST() [68/236]

DES_TEST ( des_test2_3  ,
0x0101010101010101  ,
0x2e8653104f3834ea  ,
0x2000000000000000   
)

◆ DES_TEST() [69/236]

DES_TEST ( des_test2_4  ,
0x0101010101010101  ,
0x4bd388ff6cd81d4f  ,
0x1000000000000000   
)

◆ DES_TEST() [70/236]

DES_TEST ( des_test2_5  ,
0x0101010101010101  ,
0x20b9e767b2fb1456  ,
0x0800000000000000   
)

◆ DES_TEST() [71/236]

DES_TEST ( des_test2_6  ,
0x0101010101010101  ,
0x55579380d77138ef  ,
0x0400000000000000   
)

◆ DES_TEST() [72/236]

DES_TEST ( des_test2_7  ,
0x0101010101010101  ,
0x6cc5defaaf04512f  ,
0x0200000000000000   
)

◆ DES_TEST() [73/236]

DES_TEST ( des_test2_8  ,
0x0101010101010101  ,
0x0d9f279ba5d87260  ,
0x0100000000000000   
)

◆ DES_TEST() [74/236]

DES_TEST ( des_test2_9  ,
0x0101010101010101  ,
0xd9031b0271bd5a0a  ,
0x0080000000000000   
)

◆ DES_TEST() [75/236]

DES_TEST ( des_test2_10  ,
0x0101010101010101  ,
0x424250b37c3dd951  ,
0x0040000000000000   
)

◆ DES_TEST() [76/236]

DES_TEST ( des_test2_11  ,
0x0101010101010101  ,
0xb8061b7ecd9a21e5  ,
0x0020000000000000   
)

◆ DES_TEST() [77/236]

DES_TEST ( des_test2_12  ,
0x0101010101010101  ,
0xf15d0f286b65bd28  ,
0x0010000000000000   
)

◆ DES_TEST() [78/236]

DES_TEST ( des_test2_13  ,
0x0101010101010101  ,
0xadd0cc8d6e5deba1  ,
0x0008000000000000   
)

◆ DES_TEST() [79/236]

DES_TEST ( des_test2_14  ,
0x0101010101010101  ,
0xe6d5f82752ad63d1  ,
0x0004000000000000   
)

◆ DES_TEST() [80/236]

DES_TEST ( des_test2_15  ,
0x0101010101010101  ,
0xecbfe3bd3f591a5e  ,
0x0002000000000000   
)

◆ DES_TEST() [81/236]

DES_TEST ( des_test2_16  ,
0x0101010101010101  ,
0xf356834379d165cd  ,
0x0001000000000000   
)

◆ DES_TEST() [82/236]

DES_TEST ( des_test2_17  ,
0x0101010101010101  ,
0x2b9f982f20037fa9  ,
0x0000800000000000   
)

◆ DES_TEST() [83/236]

DES_TEST ( des_test2_18  ,
0x0101010101010101  ,
0x889de068a16f0be6  ,
0x0000400000000000   
)

◆ DES_TEST() [84/236]

DES_TEST ( des_test2_19  ,
0x0101010101010101  ,
0xe19e275d846a1298  ,
0x0000200000000000   
)

◆ DES_TEST() [85/236]

DES_TEST ( des_test2_20  ,
0x0101010101010101  ,
0x329a8ed523d71aec  ,
0x0000100000000000   
)

◆ DES_TEST() [86/236]

DES_TEST ( des_test2_21  ,
0x0101010101010101  ,
0xe7fce22557d23c97  ,
0x0000080000000000   
)

◆ DES_TEST() [87/236]

DES_TEST ( des_test2_22  ,
0x0101010101010101  ,
0x12a9f5817ff2d65d  ,
0x0000040000000000   
)

◆ DES_TEST() [88/236]

DES_TEST ( des_test2_23  ,
0x0101010101010101  ,
0xa484c3ad38dc9c19  ,
0x0000020000000000   
)

◆ DES_TEST() [89/236]

DES_TEST ( des_test2_24  ,
0x0101010101010101  ,
0xfbe00a8a1ef8ad72  ,
0x0000010000000000   
)

◆ DES_TEST() [90/236]

DES_TEST ( des_test2_25  ,
0x0101010101010101  ,
0x750d079407521363  ,
0x0000008000000000   
)

◆ DES_TEST() [91/236]

DES_TEST ( des_test2_26  ,
0x0101010101010101  ,
0x64feed9c724c2faf  ,
0x0000004000000000   
)

◆ DES_TEST() [92/236]

DES_TEST ( des_test2_27  ,
0x0101010101010101  ,
0xf02b263b328e2b60  ,
0x0000002000000000   
)

◆ DES_TEST() [93/236]

DES_TEST ( des_test2_28  ,
0x0101010101010101  ,
0x9d64555a9a10b852  ,
0x0000001000000000   
)

◆ DES_TEST() [94/236]

DES_TEST ( des_test2_29  ,
0x0101010101010101  ,
0xd106ff0bed5255d7  ,
0x0000000800000000   
)

◆ DES_TEST() [95/236]

DES_TEST ( des_test2_30  ,
0x0101010101010101  ,
0xe1652c6b138c64a5  ,
0x0000000400000000   
)

◆ DES_TEST() [96/236]

DES_TEST ( des_test2_31  ,
0x0101010101010101  ,
0xe428581186ec8f46  ,
0x0000000200000000   
)

◆ DES_TEST() [97/236]

DES_TEST ( des_test2_32  ,
0x0101010101010101  ,
0xaeb5f5ede22d1a36  ,
0x0000000100000000   
)

◆ DES_TEST() [98/236]

DES_TEST ( des_test2_33  ,
0x0101010101010101  ,
0xe943d7568aec0c5c  ,
0x0000000080000000   
)

◆ DES_TEST() [99/236]

DES_TEST ( des_test2_34  ,
0x0101010101010101  ,
0xdf98c8276f54b04b  ,
0x0000000040000000   
)

◆ DES_TEST() [100/236]

DES_TEST ( des_test2_35  ,
0x0101010101010101  ,
0xb160e4680f6c696f  ,
0x0000000020000000   
)

◆ DES_TEST() [101/236]

DES_TEST ( des_test2_36  ,
0x0101010101010101  ,
0xfa0752b07d9c4ab8  ,
0x0000000010000000   
)

◆ DES_TEST() [102/236]

DES_TEST ( des_test2_37  ,
0x0101010101010101  ,
0xca3a2b036dbc8502  ,
0x0000000008000000   
)

◆ DES_TEST() [103/236]

DES_TEST ( des_test2_38  ,
0x0101010101010101  ,
0x5e0905517bb59bcf  ,
0x0000000004000000   
)

◆ DES_TEST() [104/236]

DES_TEST ( des_test2_39  ,
0x0101010101010101  ,
0x814eeb3b91d90726  ,
0x0000000002000000   
)

◆ DES_TEST() [105/236]

DES_TEST ( des_test2_40  ,
0x0101010101010101  ,
0x4d49db1532919c9f  ,
0x0000000001000000   
)

◆ DES_TEST() [106/236]

DES_TEST ( des_test2_41  ,
0x0101010101010101  ,
0x25eb5fc3f8cf0621  ,
0x0000000000800000   
)

◆ DES_TEST() [107/236]

DES_TEST ( des_test2_42  ,
0x0101010101010101  ,
0xab6a20c0620d1c6f  ,
0x0000000000400000   
)

◆ DES_TEST() [108/236]

DES_TEST ( des_test2_43  ,
0x0101010101010101  ,
0x79e90dbc98f92cca  ,
0x0000000000200000   
)

◆ DES_TEST() [109/236]

DES_TEST ( des_test2_44  ,
0x0101010101010101  ,
0x866ecedd8072bb0e  ,
0x0000000000100000   
)

◆ DES_TEST() [110/236]

DES_TEST ( des_test2_45  ,
0x0101010101010101  ,
0x8b54536f2f3e64a8  ,
0x0000000000080000   
)

◆ DES_TEST() [111/236]

DES_TEST ( des_test2_46  ,
0x0101010101010101  ,
0xea51d3975595b86b  ,
0x0000000000040000   
)

◆ DES_TEST() [112/236]

DES_TEST ( des_test2_47  ,
0x0101010101010101  ,
0xcaffc6ac4542de31  ,
0x0000000000020000   
)

◆ DES_TEST() [113/236]

DES_TEST ( des_test2_48  ,
0x0101010101010101  ,
0x8dd45a2ddf90796c  ,
0x0000000000010000   
)

◆ DES_TEST() [114/236]

DES_TEST ( des_test2_49  ,
0x0101010101010101  ,
0x1029d55e880ec2d0  ,
0x0000000000008000   
)

◆ DES_TEST() [115/236]

DES_TEST ( des_test2_50  ,
0x0101010101010101  ,
0x5d86cb23639dbea9  ,
0x0000000000004000   
)

◆ DES_TEST() [116/236]

DES_TEST ( des_test2_51  ,
0x0101010101010101  ,
0x1d1ca853ae7c0c5f  ,
0x0000000000002000   
)

◆ DES_TEST() [117/236]

DES_TEST ( des_test2_52  ,
0x0101010101010101  ,
0xce332329248f3228  ,
0x0000000000001000   
)

◆ DES_TEST() [118/236]

DES_TEST ( des_test2_53  ,
0x0101010101010101  ,
0x8405d1abe24fb942  ,
0x0000000000000800   
)

◆ DES_TEST() [119/236]

DES_TEST ( des_test2_54  ,
0x0101010101010101  ,
0xe643d78090ca4207  ,
0x0000000000000400   
)

◆ DES_TEST() [120/236]

DES_TEST ( des_test2_55  ,
0x0101010101010101  ,
0x48221b9937748a23  ,
0x0000000000000200   
)

◆ DES_TEST() [121/236]

DES_TEST ( des_test2_56  ,
0x0101010101010101  ,
0xdd7c0bbd61fafd54  ,
0x0000000000000100   
)

◆ DES_TEST() [122/236]

DES_TEST ( des_test2_57  ,
0x0101010101010101  ,
0x2fbc291a570db5c4  ,
0x0000000000000080   
)

◆ DES_TEST() [123/236]

DES_TEST ( des_test2_58  ,
0x0101010101010101  ,
0xe07c30d7e4e26e12  ,
0x0000000000000040   
)

◆ DES_TEST() [124/236]

DES_TEST ( des_test2_59  ,
0x0101010101010101  ,
0x0953e2258e8e90a1  ,
0x0000000000000020   
)

◆ DES_TEST() [125/236]

DES_TEST ( des_test2_60  ,
0x0101010101010101  ,
0x5b711bc4ceebf2ee  ,
0x0000000000000010   
)

◆ DES_TEST() [126/236]

DES_TEST ( des_test2_61  ,
0x0101010101010101  ,
0xcc083f1e6d9e85f6  ,
0x0000000000000008   
)

◆ DES_TEST() [127/236]

DES_TEST ( des_test2_62  ,
0x0101010101010101  ,
0xd2fd8867d50d2dfe  ,
0x0000000000000004   
)

◆ DES_TEST() [128/236]

DES_TEST ( des_test2_63  ,
0x0101010101010101  ,
0x06e7ea22ce92708f  ,
0x0000000000000002   
)

◆ DES_TEST() [129/236]

DES_TEST ( des_test2_64  ,
0x0101010101010101  ,
0x166b40b44aba4bd6  ,
0x0000000000000001   
)

◆ DES_TEST() [130/236]

DES_TEST ( des_test3_1  ,
0x1046913489980131  ,
0x0000000000000000  ,
0x88d55e54f54c97b4   
)

◆ DES_TEST() [131/236]

DES_TEST ( des_test3_2  ,
0x1007103489988020  ,
0x0000000000000000  ,
0x0c0cc00c83ea48fd   
)

◆ DES_TEST() [132/236]

DES_TEST ( des_test3_3  ,
0x10071034c8980120  ,
0x0000000000000000  ,
0x83bc8ef3a6570183   
)

◆ DES_TEST() [133/236]

DES_TEST ( des_test3_4  ,
0x1046103489988020  ,
0x0000000000000000  ,
0xdf725dcad94ea2e9   
)

◆ DES_TEST() [134/236]

DES_TEST ( des_test3_5  ,
0x1086911519190101  ,
0x0000000000000000  ,
0xe652b53b550be8b0   
)

◆ DES_TEST() [135/236]

DES_TEST ( des_test3_6  ,
0x1086911519580101  ,
0x0000000000000000  ,
0xaf527120c485cbb0   
)

◆ DES_TEST() [136/236]

DES_TEST ( des_test3_7  ,
0x5107b01519580101  ,
0x0000000000000000  ,
0x0f04ce393db926d5   
)

◆ DES_TEST() [137/236]

DES_TEST ( des_test3_8  ,
0x1007b01519190101  ,
0x0000000000000000  ,
0xc9f00ffc74079067   
)

◆ DES_TEST() [138/236]

DES_TEST ( des_test3_9  ,
0x3107915498080101  ,
0x0000000000000000  ,
0x7cfd82a593252b4e   
)

◆ DES_TEST() [139/236]

DES_TEST ( des_test3_10  ,
0x3107919498080101  ,
0x0000000000000000  ,
0xcb49a2f9e91363e3   
)

◆ DES_TEST() [140/236]

DES_TEST ( des_test3_11  ,
0x10079115b9080140  ,
0x0000000000000000  ,
0x00b588be70d23f56   
)

◆ DES_TEST() [141/236]

DES_TEST ( des_test3_12  ,
0x3107911598080140  ,
0x0000000000000000  ,
0x406a9a6ab43399ae   
)

◆ DES_TEST() [142/236]

DES_TEST ( des_test3_13  ,
0x1007d01589980101  ,
0x0000000000000000  ,
0x6cb773611dca9ada   
)

◆ DES_TEST() [143/236]

DES_TEST ( des_test3_14  ,
0x9107911589980101  ,
0x0000000000000000  ,
0x67fd21c17dbb5d70   
)

◆ DES_TEST() [144/236]

DES_TEST ( des_test3_15  ,
0x9107d01589190101  ,
0x0000000000000000  ,
0x9592cb4110430787   
)

◆ DES_TEST() [145/236]

DES_TEST ( des_test3_16  ,
0x1007d01598980120  ,
0x0000000000000000  ,
0xa6b7ff68a318ddd3   
)

◆ DES_TEST() [146/236]

DES_TEST ( des_test3_17  ,
0x1007940498190101  ,
0x0000000000000000  ,
0x4d102196c914ca16   
)

◆ DES_TEST() [147/236]

DES_TEST ( des_test3_18  ,
0x0107910491190401  ,
0x0000000000000000  ,
0x2dfa9f4573594965   
)

◆ DES_TEST() [148/236]

DES_TEST ( des_test3_19  ,
0x0107910491190101  ,
0x0000000000000000  ,
0xb46604816c0e0774   
)

◆ DES_TEST() [149/236]

DES_TEST ( des_test3_20  ,
0x0107940491190401  ,
0x0000000000000000  ,
0x6e7e6221a4f34e87   
)

◆ DES_TEST() [150/236]

DES_TEST ( des_test3_21  ,
0x19079210981a0101  ,
0x0000000000000000  ,
0xaa85e74643233199   
)

◆ DES_TEST() [151/236]

DES_TEST ( des_test3_22  ,
0x1007911998190801  ,
0x0000000000000000  ,
0x2e5a19db4d1962d6   
)

◆ DES_TEST() [152/236]

DES_TEST ( des_test3_23  ,
0x10079119981a0801  ,
0x0000000000000000  ,
0x23a866a809d30894   
)

◆ DES_TEST() [153/236]

DES_TEST ( des_test3_24  ,
0x1007921098190101  ,
0x0000000000000000  ,
0xd812d961f017d320   
)

◆ DES_TEST() [154/236]

DES_TEST ( des_test3_25  ,
0x100791159819010b  ,
0x0000000000000000  ,
0x055605816e58608f   
)

◆ DES_TEST() [155/236]

DES_TEST ( des_test3_26  ,
0x1004801598190101  ,
0x0000000000000000  ,
0xabd88e8b1b7716f1   
)

◆ DES_TEST() [156/236]

DES_TEST ( des_test3_27  ,
0x1004801598190102  ,
0x0000000000000000  ,
0x537ac95be69da1e1   
)

◆ DES_TEST() [157/236]

DES_TEST ( des_test3_28  ,
0x1004801598190108  ,
0x0000000000000000  ,
0xaed0f6ae3c25cdd8   
)

◆ DES_TEST() [158/236]

DES_TEST ( des_test3_29  ,
0x1002911498100104  ,
0x0000000000000000  ,
0xb3e35a5ee53e7b8d   
)

◆ DES_TEST() [159/236]

DES_TEST ( des_test3_30  ,
0x1002911598190104  ,
0x0000000000000000  ,
0x61c79c71921a2ef8   
)

◆ DES_TEST() [160/236]

DES_TEST ( des_test3_31  ,
0x1002911598100201  ,
0x0000000000000000  ,
0xe2f5728f0995013c   
)

◆ DES_TEST() [161/236]

DES_TEST ( des_test3_32  ,
0x1002911698100101  ,
0x0000000000000000  ,
0x1aeac39a61f0a464   
)

◆ DES_TEST() [162/236]

DES_TEST ( des_test4_1  ,
0x8001010101010101  ,
0x0000000000000000  ,
0x95a8d72813daa94d   
)

◆ DES_TEST() [163/236]

DES_TEST ( des_test4_2  ,
0x4001010101010101  ,
0x0000000000000000  ,
0x0eec1487dd8c26d5   
)

◆ DES_TEST() [164/236]

DES_TEST ( des_test4_3  ,
0x2001010101010101  ,
0x0000000000000000  ,
0x7ad16ffb79c45926   
)

◆ DES_TEST() [165/236]

DES_TEST ( des_test4_4  ,
0x1001010101010101  ,
0x0000000000000000  ,
0xd3746294ca6a6cf3   
)

◆ DES_TEST() [166/236]

DES_TEST ( des_test4_5  ,
0x0801010101010101  ,
0x0000000000000000  ,
0x809f5f873c1fd761   
)

◆ DES_TEST() [167/236]

DES_TEST ( des_test4_6  ,
0x0401010101010101  ,
0x0000000000000000  ,
0xc02faffec989d1fc   
)

◆ DES_TEST() [168/236]

DES_TEST ( des_test4_7  ,
0x0201010101010101  ,
0x0000000000000000  ,
0x4615aa1d33e72f10   
)

◆ DES_TEST() [169/236]

DES_TEST ( des_test4_8  ,
0x0180010101010101  ,
0x0000000000000000  ,
0x2055123350c00858   
)

◆ DES_TEST() [170/236]

DES_TEST ( des_test4_9  ,
0x0140010101010101  ,
0x0000000000000000  ,
0xdf3b99d6577397c8   
)

◆ DES_TEST() [171/236]

DES_TEST ( des_test4_10  ,
0x0120010101010101  ,
0x0000000000000000  ,
0x31fe17369b5288c9   
)

◆ DES_TEST() [172/236]

DES_TEST ( des_test4_11  ,
0x0110010101010101  ,
0x0000000000000000  ,
0xdfdd3cc64dae1642   
)

◆ DES_TEST() [173/236]

DES_TEST ( des_test4_12  ,
0x0108010101010101  ,
0x0000000000000000  ,
0x178c83ce2b399d94   
)

◆ DES_TEST() [174/236]

DES_TEST ( des_test4_13  ,
0x0104010101010101  ,
0x0000000000000000  ,
0x50f636324a9b7f80   
)

◆ DES_TEST() [175/236]

DES_TEST ( des_test4_14  ,
0x0102010101010101  ,
0x0000000000000000  ,
0xa8468ee3bc18f06d   
)

◆ DES_TEST() [176/236]

DES_TEST ( des_test4_15  ,
0x0101800101010101  ,
0x0000000000000000  ,
0xa2dc9e92fd3cde92   
)

◆ DES_TEST() [177/236]

DES_TEST ( des_test4_16  ,
0x0101400101010101  ,
0x0000000000000000  ,
0xcac09f797d031287   
)

◆ DES_TEST() [178/236]

DES_TEST ( des_test4_17  ,
0x0101200101010101  ,
0x0000000000000000  ,
0x90ba680b22aeb525   
)

◆ DES_TEST() [179/236]

DES_TEST ( des_test4_18  ,
0x0101100101010101  ,
0x0000000000000000  ,
0xce7a24f350e280b6   
)

◆ DES_TEST() [180/236]

DES_TEST ( des_test4_19  ,
0x0101080101010101  ,
0x0000000000000000  ,
0x882bff0aa01a0b87   
)

◆ DES_TEST() [181/236]

DES_TEST ( des_test4_20  ,
0x0101040101010101  ,
0x0000000000000000  ,
0x25610288924511c2   
)

◆ DES_TEST() [182/236]

DES_TEST ( des_test4_21  ,
0x0101020101010101  ,
0x0000000000000000  ,
0xc71516c29c75d170   
)

◆ DES_TEST() [183/236]

DES_TEST ( des_test4_22  ,
0x0101018001010101  ,
0x0000000000000000  ,
0x5199c29a52c9f059   
)

◆ DES_TEST() [184/236]

DES_TEST ( des_test4_23  ,
0x0101014001010101  ,
0x0000000000000000  ,
0xc22f0a294a71f29f   
)

◆ DES_TEST() [185/236]

DES_TEST ( des_test4_24  ,
0x0101012001010101  ,
0x0000000000000000  ,
0xee371483714c02ea   
)

◆ DES_TEST() [186/236]

DES_TEST ( des_test4_25  ,
0x0101011001010101  ,
0x0000000000000000  ,
0xa81fbd448f9e522f   
)

◆ DES_TEST() [187/236]

DES_TEST ( des_test4_26  ,
0x0101010801010101  ,
0x0000000000000000  ,
0x4f644c92e192dfed   
)

◆ DES_TEST() [188/236]

DES_TEST ( des_test4_27  ,
0x0101010401010101  ,
0x0000000000000000  ,
0x1afa9a66a6df92ae   
)

◆ DES_TEST() [189/236]

DES_TEST ( des_test4_28  ,
0x0101010201010101  ,
0x0000000000000000  ,
0xb3c1cc715cb879d8   
)

◆ DES_TEST() [190/236]

DES_TEST ( des_test4_29  ,
0x0101010180010101  ,
0x0000000000000000  ,
0x19d032e64ab0bd8b   
)

◆ DES_TEST() [191/236]

DES_TEST ( des_test4_30  ,
0x0101010140010101  ,
0x0000000000000000  ,
0x3cfaa7a7dc8720dc   
)

◆ DES_TEST() [192/236]

DES_TEST ( des_test4_31  ,
0x0101010120010101  ,
0x0000000000000000  ,
0xb7265f7f447ac6f3   
)

◆ DES_TEST() [193/236]

DES_TEST ( des_test4_32  ,
0x0101010110010101  ,
0x0000000000000000  ,
0x9db73b3c0d163f54   
)

◆ DES_TEST() [194/236]

DES_TEST ( des_test4_33  ,
0x0101010108010101  ,
0x0000000000000000  ,
0x8181b65babf4a975   
)

◆ DES_TEST() [195/236]

DES_TEST ( des_test4_34  ,
0x0101010104010101  ,
0x0000000000000000  ,
0x93c9b64042eaa240   
)

◆ DES_TEST() [196/236]

DES_TEST ( des_test4_35  ,
0x0101010102010101  ,
0x0000000000000000  ,
0x5570530829705592   
)

◆ DES_TEST() [197/236]

DES_TEST ( des_test4_36  ,
0x0101010101800101  ,
0x0000000000000000  ,
0x8638809e878787a0   
)

◆ DES_TEST() [198/236]

DES_TEST ( des_test4_37  ,
0x0101010101400101  ,
0x0000000000000000  ,
0x41b9a79af79ac208   
)

◆ DES_TEST() [199/236]

DES_TEST ( des_test4_38  ,
0x0101010101200101  ,
0x0000000000000000  ,
0x7a9be42f2009a892   
)

◆ DES_TEST() [200/236]

DES_TEST ( des_test4_39  ,
0x0101010101100101  ,
0x0000000000000000  ,
0x29038d56ba6d2745   
)

◆ DES_TEST() [201/236]

DES_TEST ( des_test4_40  ,
0x0101010101080101  ,
0x0000000000000000  ,
0x5495c6abf1e5df51   
)

◆ DES_TEST() [202/236]

DES_TEST ( des_test4_41  ,
0x0101010101040101  ,
0x0000000000000000  ,
0xae13dbd561488933   
)

◆ DES_TEST() [203/236]

DES_TEST ( des_test4_42  ,
0x0101010101020101  ,
0x0000000000000000  ,
0x024d1ffa8904e389   
)

◆ DES_TEST() [204/236]

DES_TEST ( des_test4_43  ,
0x0101010101018001  ,
0x0000000000000000  ,
0xd1399712f99bf02e   
)

◆ DES_TEST() [205/236]

DES_TEST ( des_test4_44  ,
0x0101010101014001  ,
0x0000000000000000  ,
0x14c1d7c1cffec79e   
)

◆ DES_TEST() [206/236]

DES_TEST ( des_test4_45  ,
0x0101010101012001  ,
0x0000000000000000  ,
0x1de5279dae3bed6f   
)

◆ DES_TEST() [207/236]

DES_TEST ( des_test4_46  ,
0x0101010101011001  ,
0x0000000000000000  ,
0xe941a33f85501303   
)

◆ DES_TEST() [208/236]

DES_TEST ( des_test4_47  ,
0x0101010101010801  ,
0x0000000000000000  ,
0xda99dbbc9a03f379   
)

◆ DES_TEST() [209/236]

DES_TEST ( des_test4_48  ,
0x0101010101010401  ,
0x0000000000000000  ,
0xb7fc92f91d8e92e9   
)

◆ DES_TEST() [210/236]

DES_TEST ( des_test4_49  ,
0x0101010101010201  ,
0x0000000000000000  ,
0xae8e5caa3ca04e85   
)

◆ DES_TEST() [211/236]

DES_TEST ( des_test4_50  ,
0x0101010101010180  ,
0x0000000000000000  ,
0x9cc62df43b6eed74   
)

◆ DES_TEST() [212/236]

DES_TEST ( des_test4_51  ,
0x0101010101010140  ,
0x0000000000000000  ,
0xd863dbb5c59a91a0   
)

◆ DES_TEST() [213/236]

DES_TEST ( des_test4_52  ,
0x0101010101010120  ,
0x0000000000000000  ,
0xa1ab2190545b91d7   
)

◆ DES_TEST() [214/236]

DES_TEST ( des_test4_53  ,
0x0101010101010110  ,
0x0000000000000000  ,
0x0875041e64c570f7   
)

◆ DES_TEST() [215/236]

DES_TEST ( des_test4_54  ,
0x0101010101010108  ,
0x0000000000000000  ,
0x5a594528bebef1cc   
)

◆ DES_TEST() [216/236]

DES_TEST ( des_test4_55  ,
0x0101010101010104  ,
0x0000000000000000  ,
0xfcdb3291de21f0c0   
)

◆ DES_TEST() [217/236]

DES_TEST ( des_test4_56  ,
0x0101010101010102  ,
0x0000000000000000  ,
0x869efd7f9f265a09   
)

◆ DES_TEST() [218/236]

DES_TEST ( des_test5_1  ,
0x7ca110454a1a6e57  ,
0x01a1d6d039776742  ,
0x690f5b0d9a26939b   
)

◆ DES_TEST() [219/236]

DES_TEST ( des_test5_2  ,
0x0131d9619dc1376e  ,
0x5cd54ca83def57da  ,
0x7a389d10354bd271   
)

◆ DES_TEST() [220/236]

DES_TEST ( des_test5_3  ,
0x07a1133e4a0b2686  ,
0x0248d43806f67172  ,
0x868ebb51cab4599a   
)

◆ DES_TEST() [221/236]

DES_TEST ( des_test5_4  ,
0x3849674c2602319e  ,
0x51454b582ddf440a  ,
0x7178876e01f19b2a   
)

◆ DES_TEST() [222/236]

DES_TEST ( des_test5_5  ,
0x04b915ba43feb5b6  ,
0x42fd443059577fa2  ,
0xaf37fb421f8c4095   
)

◆ DES_TEST() [223/236]

DES_TEST ( des_test5_6  ,
0x0113b970fd34f2ce  ,
0x059b5e0851cf143a  ,
0x86a560f10ec6d85b   
)

◆ DES_TEST() [224/236]

DES_TEST ( des_test5_7  ,
0x0170f175468fb5e6  ,
0x0756d8e0774761d2  ,
0x0cd3da020021dc09   
)

◆ DES_TEST() [225/236]

DES_TEST ( des_test5_8  ,
0x43297fad38e373fe  ,
0x762514b829bf486a  ,
0xea676b2cb7db2b7a   
)

◆ DES_TEST() [226/236]

DES_TEST ( des_test5_9  ,
0x07a7137045da2a16  ,
0x3bdd119049372802  ,
0xdfd64a815caf1a0f   
)

◆ DES_TEST() [227/236]

DES_TEST ( des_test5_10  ,
0x04689104c2fd3b2f  ,
0x26955f6835af609a  ,
0x5c513c9c4886c088   
)

◆ DES_TEST() [228/236]

DES_TEST ( des_test5_11  ,
0x37d06bb516cb7546  ,
0x164d5e404f275232  ,
0x0a2aeeae3ff4ab77   
)

◆ DES_TEST() [229/236]

DES_TEST ( des_test5_12  ,
0x1f08260d1ac2465e  ,
0x6b056e18759f5cca  ,
0xef1bf03e5dfa575a   
)

◆ DES_TEST() [230/236]

DES_TEST ( des_test5_13  ,
0x584023641aba6176  ,
0x004bd6ef09176062  ,
0x88bf0db6d70dee56   
)

◆ DES_TEST() [231/236]

DES_TEST ( des_test5_14  ,
0x025816164629b007  ,
0x480d39006ee762f2  ,
0xa1f9915541020b56   
)

◆ DES_TEST() [232/236]

DES_TEST ( des_test5_15  ,
0x49793ebc79b3258f  ,
0x437540c8698f3cfa  ,
0x6fbf1cafcffd0556   
)

◆ DES_TEST() [233/236]

DES_TEST ( des_test5_16  ,
0x4fb05e1515ab73a7  ,
0x072d43a077075292  ,
0x2f22e49bab7ca1ac   
)

◆ DES_TEST() [234/236]

DES_TEST ( des_test5_17  ,
0x49e95d6d4ca229bf  ,
0x02fe55778117f12a  ,
0x5a6b612cc26cce4a   
)

◆ DES_TEST() [235/236]

DES_TEST ( des_test5_18  ,
0x018310dc409b26d6  ,
0x1d9d5c5018f728c2  ,
0x5f4c038ed12b2e41   
)

◆ DES_TEST() [236/236]

DES_TEST ( des_test5_19  ,
0x1c587f1c13924fef  ,
0x305532286d6f295a  ,
0x63fac0d034d9f793   
)

◆ CIPHER_TEST() [1/2]

CIPHER_TEST ( des_unofficial_ecb  ,
des_ecb_algorithm,
KEY(0x6e, 0x6f, 0x70, 0x61, 0x72, 0x69, 0x74, 0x79)  ,
IV()  ,
ADDITIONAL()  ,
PLAINTEXT(0x53, 0x6f, 0x20, 0x63, 0x75, 0x74, 0x65, 0x20, 0x74, 0x6f, 0x20, 0x73, 0x65, 0x65, 0x20, 0x61, 0x20, 0x73, 0x70, 0x65, 0x63, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x77, 0x72, 0x69, 0x74, 0x74, 0x65, 0x6e, 0x20, 0x6f, 0x6e, 0x20, 0x61, 0x6e, 0x20, 0x61, 0x63, 0x74, 0x75, 0x61, 0x6c, 0x20, 0x74, 0x79, 0x70, 0x65, 0x77, 0x72, 0x69, 0x74, 0x65, 0x72, 0x21, 0x21)  ,
CIPHERTEXT(0x1a, 0x02, 0x17, 0xcb, 0x93, 0xa3, 0xd2, 0xf2, 0xf9, 0x45, 0x71, 0x1c, 0x33, 0xb1, 0x5c, 0xa4, 0x8b, 0x6b, 0x11, 0x7a, 0x7c, 0x86, 0x7c, 0x7f, 0x9f, 0x56, 0x61, 0x46, 0x7f, 0xa6, 0xae, 0xf1, 0x49, 0xf7, 0x53, 0xe0, 0xbc, 0x15, 0x6a, 0x30, 0xe7, 0xf8, 0xf3, 0x29, 0x11, 0xd8, 0x7d, 0x04, 0x62, 0x5a, 0xaa, 0xa1, 0x89, 0x61, 0x4c, 0xf6, 0x5a, 0x47, 0x3b, 0xc6, 0x04, 0x15, 0xce, 0xf6)  ,
AUTH()   
)

◆ CIPHER_TEST() [2/2]

CIPHER_TEST ( des_unofficial_cbc  ,
des_cbc_algorithm,
KEY(0x6e, 0x6f, 0x70, 0x61, 0x72, 0x69, 0x74, 0x79)  ,
IV(0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08)  ,
ADDITIONAL()  ,
PLAINTEXT(0x53, 0x6f, 0x20, 0x63, 0x75, 0x74, 0x65, 0x20, 0x74, 0x6f, 0x20, 0x73, 0x65, 0x65, 0x20, 0x61, 0x20, 0x73, 0x70, 0x65, 0x63, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x77, 0x72, 0x69, 0x74, 0x74, 0x65, 0x6e, 0x20, 0x6f, 0x6e, 0x20, 0x61, 0x6e, 0x20, 0x61, 0x63, 0x74, 0x75, 0x61, 0x6c, 0x20, 0x74, 0x79, 0x70, 0x65, 0x77, 0x72, 0x69, 0x74, 0x65, 0x72, 0x21, 0x21)  ,
CIPHERTEXT(0x4c, 0x5f, 0x62, 0xfc, 0xf4, 0x93, 0x09, 0xb5, 0x1d, 0x52, 0x25, 0xec, 0xc7, 0x42, 0x3c, 0x29, 0x33, 0x67, 0xf5, 0xe9, 0xd6, 0x3c, 0x27, 0x5b, 0x49, 0x69, 0xc5, 0xa9, 0x08, 0xa3, 0x14, 0x66, 0x3c, 0x95, 0x33, 0x30, 0xcf, 0x3c, 0x7c, 0xaf, 0xa3, 0xe4, 0xf8, 0x2e, 0xc3, 0x55, 0x57, 0x81, 0x33, 0xd9, 0x90, 0xe2, 0x99, 0xdc, 0x32, 0x10, 0x13, 0x21, 0xb6, 0xc1, 0x6b, 0x0f, 0x22, 0xa9)  ,
AUTH()   
)

◆ des_test_exec()

static void des_test_exec ( void  )
static

Perform DES self-test.

Definition at line 629 of file des_test.c.

629  {
630 
631  /* Sample round outputs (page 9) */
632  cipher_ok ( &des_round_sample );
633 
634  /* Test 1: Initial permutation and expansion tests */
635  cipher_ok ( &des_test1_1 );
636  cipher_ok ( &des_test1_2 );
637  cipher_ok ( &des_test1_3 );
638  cipher_ok ( &des_test1_4 );
639  cipher_ok ( &des_test1_5 );
640  cipher_ok ( &des_test1_6 );
641  cipher_ok ( &des_test1_7 );
642  cipher_ok ( &des_test1_8 );
643  cipher_ok ( &des_test1_9 );
644  cipher_ok ( &des_test1_10 );
645  cipher_ok ( &des_test1_11 );
646  cipher_ok ( &des_test1_12 );
647  cipher_ok ( &des_test1_13 );
648  cipher_ok ( &des_test1_14 );
649  cipher_ok ( &des_test1_15 );
650  cipher_ok ( &des_test1_16 );
651  cipher_ok ( &des_test1_17 );
652  cipher_ok ( &des_test1_18 );
653  cipher_ok ( &des_test1_19 );
654  cipher_ok ( &des_test1_20 );
655  cipher_ok ( &des_test1_21 );
656  cipher_ok ( &des_test1_22 );
657  cipher_ok ( &des_test1_23 );
658  cipher_ok ( &des_test1_24 );
659  cipher_ok ( &des_test1_25 );
660  cipher_ok ( &des_test1_26 );
661  cipher_ok ( &des_test1_27 );
662  cipher_ok ( &des_test1_28 );
663  cipher_ok ( &des_test1_29 );
664  cipher_ok ( &des_test1_30 );
665  cipher_ok ( &des_test1_31 );
666  cipher_ok ( &des_test1_32 );
667  cipher_ok ( &des_test1_33 );
668  cipher_ok ( &des_test1_34 );
669  cipher_ok ( &des_test1_35 );
670  cipher_ok ( &des_test1_36 );
671  cipher_ok ( &des_test1_37 );
672  cipher_ok ( &des_test1_38 );
673  cipher_ok ( &des_test1_39 );
674  cipher_ok ( &des_test1_40 );
675  cipher_ok ( &des_test1_41 );
676  cipher_ok ( &des_test1_42 );
677  cipher_ok ( &des_test1_43 );
678  cipher_ok ( &des_test1_44 );
679  cipher_ok ( &des_test1_45 );
680  cipher_ok ( &des_test1_46 );
681  cipher_ok ( &des_test1_47 );
682  cipher_ok ( &des_test1_48 );
683  cipher_ok ( &des_test1_49 );
684  cipher_ok ( &des_test1_50 );
685  cipher_ok ( &des_test1_51 );
686  cipher_ok ( &des_test1_52 );
687  cipher_ok ( &des_test1_53 );
688  cipher_ok ( &des_test1_54 );
689  cipher_ok ( &des_test1_55 );
690  cipher_ok ( &des_test1_56 );
691  cipher_ok ( &des_test1_57 );
692  cipher_ok ( &des_test1_58 );
693  cipher_ok ( &des_test1_59 );
694  cipher_ok ( &des_test1_60 );
695  cipher_ok ( &des_test1_61 );
696  cipher_ok ( &des_test1_62 );
697  cipher_ok ( &des_test1_63 );
698  cipher_ok ( &des_test1_64 );
699 
700  /* Test 2: Inverse permutation and expansion tests */
701  cipher_ok ( &des_test2_1 );
702  cipher_ok ( &des_test2_2 );
703  cipher_ok ( &des_test2_3 );
704  cipher_ok ( &des_test2_4 );
705  cipher_ok ( &des_test2_5 );
706  cipher_ok ( &des_test2_6 );
707  cipher_ok ( &des_test2_7 );
708  cipher_ok ( &des_test2_8 );
709  cipher_ok ( &des_test2_9 );
710  cipher_ok ( &des_test2_10 );
711  cipher_ok ( &des_test2_11 );
712  cipher_ok ( &des_test2_12 );
713  cipher_ok ( &des_test2_13 );
714  cipher_ok ( &des_test2_14 );
715  cipher_ok ( &des_test2_15 );
716  cipher_ok ( &des_test2_16 );
717  cipher_ok ( &des_test2_17 );
718  cipher_ok ( &des_test2_18 );
719  cipher_ok ( &des_test2_19 );
720  cipher_ok ( &des_test2_20 );
721  cipher_ok ( &des_test2_21 );
722  cipher_ok ( &des_test2_22 );
723  cipher_ok ( &des_test2_23 );
724  cipher_ok ( &des_test2_24 );
725  cipher_ok ( &des_test2_25 );
726  cipher_ok ( &des_test2_26 );
727  cipher_ok ( &des_test2_27 );
728  cipher_ok ( &des_test2_28 );
729  cipher_ok ( &des_test2_29 );
730  cipher_ok ( &des_test2_30 );
731  cipher_ok ( &des_test2_31 );
732  cipher_ok ( &des_test2_32 );
733  cipher_ok ( &des_test2_33 );
734  cipher_ok ( &des_test2_34 );
735  cipher_ok ( &des_test2_35 );
736  cipher_ok ( &des_test2_36 );
737  cipher_ok ( &des_test2_37 );
738  cipher_ok ( &des_test2_38 );
739  cipher_ok ( &des_test2_39 );
740  cipher_ok ( &des_test2_40 );
741  cipher_ok ( &des_test2_41 );
742  cipher_ok ( &des_test2_42 );
743  cipher_ok ( &des_test2_43 );
744  cipher_ok ( &des_test2_44 );
745  cipher_ok ( &des_test2_45 );
746  cipher_ok ( &des_test2_46 );
747  cipher_ok ( &des_test2_47 );
748  cipher_ok ( &des_test2_48 );
749  cipher_ok ( &des_test2_49 );
750  cipher_ok ( &des_test2_50 );
751  cipher_ok ( &des_test2_51 );
752  cipher_ok ( &des_test2_52 );
753  cipher_ok ( &des_test2_53 );
754  cipher_ok ( &des_test2_54 );
755  cipher_ok ( &des_test2_55 );
756  cipher_ok ( &des_test2_56 );
757  cipher_ok ( &des_test2_57 );
758  cipher_ok ( &des_test2_58 );
759  cipher_ok ( &des_test2_59 );
760  cipher_ok ( &des_test2_60 );
761  cipher_ok ( &des_test2_61 );
762  cipher_ok ( &des_test2_62 );
763  cipher_ok ( &des_test2_63 );
764  cipher_ok ( &des_test2_64 );
765 
766  /* Test 3: Data permutation tests */
767  cipher_ok ( &des_test3_1 );
768  cipher_ok ( &des_test3_2 );
769  cipher_ok ( &des_test3_3 );
770  cipher_ok ( &des_test3_4 );
771  cipher_ok ( &des_test3_5 );
772  cipher_ok ( &des_test3_6 );
773  cipher_ok ( &des_test3_7 );
774  cipher_ok ( &des_test3_8 );
775  cipher_ok ( &des_test3_9 );
776  cipher_ok ( &des_test3_10 );
777  cipher_ok ( &des_test3_11 );
778  cipher_ok ( &des_test3_12 );
779  cipher_ok ( &des_test3_13 );
780  cipher_ok ( &des_test3_14 );
781  cipher_ok ( &des_test3_15 );
782  cipher_ok ( &des_test3_16 );
783  cipher_ok ( &des_test3_17 );
784  cipher_ok ( &des_test3_18 );
785  cipher_ok ( &des_test3_19 );
786  cipher_ok ( &des_test3_20 );
787  cipher_ok ( &des_test3_21 );
788  cipher_ok ( &des_test3_22 );
789  cipher_ok ( &des_test3_23 );
790  cipher_ok ( &des_test3_24 );
791  cipher_ok ( &des_test3_25 );
792  cipher_ok ( &des_test3_26 );
793  cipher_ok ( &des_test3_27 );
794  cipher_ok ( &des_test3_28 );
795  cipher_ok ( &des_test3_29 );
796  cipher_ok ( &des_test3_30 );
797  cipher_ok ( &des_test3_31 );
798  cipher_ok ( &des_test3_32 );
799 
800  /* Test 4: Key permutation tests */
801  cipher_ok ( &des_test4_1 );
802  cipher_ok ( &des_test4_2 );
803  cipher_ok ( &des_test4_3 );
804  cipher_ok ( &des_test4_4 );
805  cipher_ok ( &des_test4_5 );
806  cipher_ok ( &des_test4_6 );
807  cipher_ok ( &des_test4_7 );
808  cipher_ok ( &des_test4_8 );
809  cipher_ok ( &des_test4_9 );
810  cipher_ok ( &des_test4_10 );
811  cipher_ok ( &des_test4_11 );
812  cipher_ok ( &des_test4_12 );
813  cipher_ok ( &des_test4_13 );
814  cipher_ok ( &des_test4_14 );
815  cipher_ok ( &des_test4_15 );
816  cipher_ok ( &des_test4_16 );
817  cipher_ok ( &des_test4_17 );
818  cipher_ok ( &des_test4_18 );
819  cipher_ok ( &des_test4_19 );
820  cipher_ok ( &des_test4_20 );
821  cipher_ok ( &des_test4_21 );
822  cipher_ok ( &des_test4_22 );
823  cipher_ok ( &des_test4_23 );
824  cipher_ok ( &des_test4_24 );
825  cipher_ok ( &des_test4_25 );
826  cipher_ok ( &des_test4_26 );
827  cipher_ok ( &des_test4_27 );
828  cipher_ok ( &des_test4_28 );
829  cipher_ok ( &des_test4_29 );
830  cipher_ok ( &des_test4_30 );
831  cipher_ok ( &des_test4_31 );
832  cipher_ok ( &des_test4_32 );
833  cipher_ok ( &des_test4_33 );
834  cipher_ok ( &des_test4_34 );
835  cipher_ok ( &des_test4_35 );
836  cipher_ok ( &des_test4_36 );
837  cipher_ok ( &des_test4_37 );
838  cipher_ok ( &des_test4_38 );
839  cipher_ok ( &des_test4_39 );
840  cipher_ok ( &des_test4_40 );
841  cipher_ok ( &des_test4_41 );
842  cipher_ok ( &des_test4_42 );
843  cipher_ok ( &des_test4_43 );
844  cipher_ok ( &des_test4_44 );
845  cipher_ok ( &des_test4_45 );
846  cipher_ok ( &des_test4_46 );
847  cipher_ok ( &des_test4_47 );
848  cipher_ok ( &des_test4_48 );
849  cipher_ok ( &des_test4_49 );
850  cipher_ok ( &des_test4_50 );
851  cipher_ok ( &des_test4_51 );
852  cipher_ok ( &des_test4_52 );
853  cipher_ok ( &des_test4_53 );
854  cipher_ok ( &des_test4_54 );
855  cipher_ok ( &des_test4_55 );
856  cipher_ok ( &des_test4_56 );
857 
858  /* Test 5: S-box tests */
859  cipher_ok ( &des_test5_1 );
860  cipher_ok ( &des_test5_2 );
861  cipher_ok ( &des_test5_3 );
862  cipher_ok ( &des_test5_4 );
863  cipher_ok ( &des_test5_5 );
864  cipher_ok ( &des_test5_6 );
865  cipher_ok ( &des_test5_7 );
866  cipher_ok ( &des_test5_8 );
867  cipher_ok ( &des_test5_9 );
868  cipher_ok ( &des_test5_10 );
869  cipher_ok ( &des_test5_11 );
870  cipher_ok ( &des_test5_12 );
871  cipher_ok ( &des_test5_13 );
872  cipher_ok ( &des_test5_14 );
873  cipher_ok ( &des_test5_15 );
874  cipher_ok ( &des_test5_16 );
875  cipher_ok ( &des_test5_17 );
876  cipher_ok ( &des_test5_18 );
877  cipher_ok ( &des_test5_19 );
878 
879  /* Multi-block tests */
880  cipher_ok ( &des_unofficial_ecb );
881  cipher_ok ( &des_unofficial_cbc );
882 
883  /* Speed tests */
884  DBG ( "DES-ECB encryption required %ld cycles per byte\n",
886  DBG ( "DES-ECB decryption required %ld cycles per byte\n",
888  DBG ( "DES-CBC encryption required %ld cycles per byte\n",
890  DBG ( "DES-CBC decryption required %ld cycles per byte\n",
892 }
struct cipher_algorithm des_cbc_algorithm
unsigned long cipher_cost_decrypt(struct cipher_algorithm *cipher, size_t key_len)
Calculate cipher decryption cost.
Definition: cipher_test.c:258
struct cipher_algorithm des_ecb_algorithm
#define cipher_ok(test)
Report a cipher encryption and decryption test result.
Definition: cipher_test.h:131
#define DBG(...)
Print a debugging message.
Definition: compiler.h:498
unsigned long cipher_cost_encrypt(struct cipher_algorithm *cipher, size_t key_len)
Calculate cipher encryption cost.
Definition: cipher_test.c:246

References cipher_cost_decrypt(), cipher_cost_encrypt(), cipher_ok, DBG, des_cbc_algorithm, and des_ecb_algorithm.

Variable Documentation

◆ __self_test

struct self_test des_test __self_test
Initial value:
= {
.name = "des",
.exec = des_test_exec,
}
static void des_test_exec(void)
Perform DES self-test.
Definition: des_test.c:629

DES self-test.

Definition at line 895 of file des_test.c.