<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><blockquote type="cite"><div style="line-height: 1.4; margin: 10px; font-family: Arial, arial; font-size: 9pt; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><p style="margin-top: 5px; font-family: Arial, arial; margin-bottom: 5px; font-size: 9pt; ">I have found one library called "beecrypt" (<a href="http://beecrypt.sourceforge.net/doxygen/c++/namespaces.html">http://beecrypt.sourceforge.net/doxygen/c++/namespaces.html</a>).</p><p style="margin-top: 5px; font-family: Arial, arial; margin-bottom: 5px; font-size: 9pt; ">I want to know whether we can use this library to implement FireFox Sync in C++.</p><p style="margin-top: 5px; font-family: Arial, arial; margin-bottom: 5px; font-size: 9pt; ">It has got similar C++ APIs for crypto and security modules present in Java.</p></div></blockquote><br></div><div>Assuming that it's a fairly complete implementation of the Java interfaces, it should be possible, yes. I see it has HMAC-SHA-256, which is a good sign.</div><div><br></div><div>You will still need to compose the application-level operations (such as a Hawk signature and onepw key stretching) out of these primitives.</div></body></html>