Hello all,
We think we found bugs regarding symmetric binding (Basic256Suite) in the c++ selector.
Please find the patches of the c++-selector code:
The version 1.1 (the trunk) is the version we got during the Higgins--FC2 workshop 11-13 March 2009.
Of course, if you do not agree, or if you have some remarks, thanks to contact us. I hope its helps improving the quality of this software or the new one.
Best Regards
Philippe Smadja
Gemalto company, FC² member
Index: iss_sts_remote.cpp
===================================================================
retrieving revision 1.1
retrieving revision 1.1.2.5
diff -r1.1 -r1.1.2.5
20a21
Method F_RemoteSTS::finalizeMessage()
1290c1291,1292
< 24, &pDerivedSignKey)))
---
> // 24, &pDerivedSignKey)))
> 32, &pDerivedSignKey)))
1978c1980
Index: ftkcrypto_derived.cpp
===================================================================
diff -r1.1 -r1.1.2.1
188c188,189
Method: F_DerivedKey::getKeySizeInBits()
< *puiBits = m_uiLength >> 3;
---
> // *puiBits = m_uiLength >> 3;
> *puiBits = m_uiLength << 3;
Index: ftkcrypto_sign.cpp
===================================================================
retrieving revision 1.1
retrieving revision 1.1.2.1
diff -r1.1 -r1.1.2.1
78c78
Function: FtkGetSignatureProvider()
< if( bSymmetric)
---
> if( !bSymmetric)
cvs diff -r 1.1 ftkcrypto_keys.cpp
Index: ftkcrypto_keys.cpp
===================================================================
retrieving revision 1.1
retrieving revision 1.1.2.2
diff -r1.1 -r1.1.2.2
119c119,120
Method: F_CryptoKey::getKeySizeInBits()
< *puiBits = m_keyBuf.getDataLength() >> 3;
---
> // *puiBits = m_keyBuf.getDataLength() >> 3;
> *puiBits = m_keyBuf.getDataLength() << 3;
===================================================================
END.