GCM test case 3

11 views
Skip to first unread message

Amir Reda

unread,
Jan 27, 2014, 3:41:33 PM1/27/14
to cryptop...@googlegroups.com
dear all
i need some help to make sure that the GCM is working well so can any one help me to make this test unfortunately i failed to do this test code. i attached the code that i have can any one tell me how to modify it. also i don't have enough documentation on how to reuse the library
K = feffe9928665731c6d6a8f9467308308
P = d9313225f88406e5a55909c5aff5269a86a7a9531534f7da2e4c303d8a318a721c3c0c95956809532fcf0e2449a6b525b16aedf5aa0de657ba637b391aafd255
IV = cafebabefacedbaddecaf888
H = b83b533708bf535d0aa6e52980d53b78
Y0 = cafebabefacedbaddecaf88800000001
E(K, Y0 ) = 3247184b3c4f69a44dbcd22887bbb418
Y1 = cafebabefacedbaddecaf88800000002
E(K, Y1 ) = 9bb22ce7d9f372c1ee2b28722b25f206
Y2 = cafebabefacedbaddecaf88800000003
E(K, Y2 ) = 650d887c3936533a1b8d4e1ea39d2b5c
Y3 = cafebabefacedbaddecaf88800000004
E(K, Y3 ) = 3de91827c10e9a4f5240647ee5221f20
Y4 = cafebabefacedbaddecaf88800000005
E(K, Y4 ) = aac9e6ccc0074ac0873b9ba85d908bd0
X1 = 59ed3f2bb1a0aaa07c9f56c6a504647b
X2 = b714c9048389afd9f9bc5c1d4378e052
X3 = 47400c6577b1ee8d8f40b2721e86ff10
X4 = 4796cf49464704b5dd91f159bb1b7f95
len(A)||len(C) = 00000000000000000000000000000200
GHASH(H, A, C) = 7f1b32b81b820d02614f8895ac1d4eac
C = 42831ec2217774244b7221b784d0d49ce3aa212f2c02a4e035c17e2329aca12e21d514b25466931c7d8f6a5aac84aa051ba30b396a0aac973d58e091473f5985
T = 4d5c2af327cd64a62cf35abd2ba6fab4
thanks allot for your help
MasterGCM.cpp
Reply all
Reply to author
Forward
0 new messages