Different PRF with --disable-legacy-protocol?

Benjamin Richter br at waldteufel.eu
Sun Jul 5 21:02:55 CEST 2015


Hi everybody.

I'm struggling with setting up an SPTPS connection between two of my 
machines. I attached the patch that I used to analyze this. Apparently 
different keys are derived depending on the crypto backend. Is this 
intentional?

Linking to openssl results in

char key[] = {
	0xb2, 0x9d, 0x8d, 0x24, 0x91, 0x04, 0xaf, 0x25,
	0x3f, 0x10, 0x34, 0x9d, 0xc7, 0x73, 0x8c, 0xe1,
	0x24, 0x32, 0x2f, 0x7c, 0x4e, 0x0d, 0x3c, 0x57,
	0xed, 0x94, 0x29, 0x95, 0xf3, 0xe4, 0x7e, 0xe2,
	0x1a, 0x88, 0x70, 0xf8, 0xd4, 0x92, 0xb8, 0x5b,
	0x96, 0x2c, 0x98, 0xc4, 0x34, 0x5a, 0x30, 0x44,
	0x54, 0xcc, 0x8d, 0x7c, 0x1e, 0x38, 0xea, 0x82,
	0xe4, 0x82, 0xc3, 0x1a, 0x38, 0xb1, 0xae, 0x3e,
	0x37, 0x04, 0x85, 0x3d, 0xbf, 0x32, 0x73, 0x0a,
	0xd5, 0xb3, 0x72, 0xe6, 0xe8, 0x3b, 0xa4, 0x7f,
	0x81, 0x1e, 0x8d, 0xb4, 0xcc, 0x55, 0x74, 0xbe,
	0xc3, 0xf2, 0xe2, 0x3e, 0xbe, 0x0d, 0x10, 0x11,
	0xae, 0x5b, 0xa5, 0xaa, 0x28, 0x77, 0x01, 0x63,
	0x3a, 0x1c, 0xd6, 0x6c, 0xb3, 0xa7, 0x0e, 0x33,
	0x79, 0xb3, 0x04, 0xf6, 0x55, 0x29, 0x83, 0xb2,
	0xaf, 0x4a, 0x33, 0x3b, 0xac, 0xb2, 0x7e, 0x35,
};


Setting --disable-legacy-protocol results in

char key[] = {
	0x6d, 0x9d, 0x75, 0x03, 0xac, 0xab, 0x96, 0x8c,
	0xb2, 0xe4, 0x5c, 0x67, 0xe2, 0x6f, 0x6e, 0xe5,
	0x79, 0x1a, 0x27, 0x36, 0x89, 0x85, 0x2f, 0x6a,
	0x61, 0xed, 0xab, 0x69, 0x94, 0xc8, 0xd1, 0xc6,
	0x56, 0x23, 0xa1, 0x16, 0xb8, 0x84, 0x1f, 0xdc,
	0x69, 0x31, 0x04, 0xcb, 0x32, 0xd1, 0xdf, 0x8b,
	0x03, 0xf4, 0x9c, 0x37, 0xf7, 0x3a, 0x72, 0x2a,
	0x08, 0x61, 0x4f, 0xac, 0xca, 0xea, 0x76, 0xb9,
	0x64, 0x57, 0xe9, 0xbe, 0x25, 0x83, 0x24, 0xf5,
	0xe9, 0xc5, 0x41, 0xdb, 0x4b, 0x44, 0x8d, 0x7f,
	0x4b, 0x6c, 0x93, 0xac, 0x7f, 0x74, 0x84, 0x9a,
	0x61, 0x47, 0xe5, 0x39, 0x16, 0xe5, 0x87, 0xca,
	0x59, 0x5c, 0x30, 0x89, 0x53, 0x42, 0x23, 0x21,
	0xdf, 0x6d, 0xfa, 0x05, 0xdb, 0xab, 0xf9, 0xd8,
	0xd3, 0xb8, 0x0f, 0x67, 0xc5, 0x5c, 0x93, 0x19,
	0x0f, 0x58, 0x86, 0x29, 0x34, 0x96, 0x44, 0xdf,
};

Regards
Benjamin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: prf-self-test.patch
Type: text/x-patch
Size: 1763 bytes
Desc: not available
URL: <http://www.tinc-vpn.org/pipermail/tinc-devel/attachments/20150705/27a08ef4/attachment.bin>


More information about the tinc-devel mailing list