-
- Downloads
crypto: save dh params
Diffie-Hellman parameters can take a few seconds to compute, during this time a CPU core will be fully used. This leads to high power consumption on startup, which can be problematic for mobile devices. This patch introduces saving DH params to the persistent cache to avoid regenerating them too often. The file modification time is used to know the age of the parameters. DH params can be reused for up to 3 days. * Intoduce writeTime to know a file modification time * Introduce to_wstring to convert filenames to the Windows format * Introduce a DhParams structure to handle serialization Tuleap: #452 Change-Id: Iaea9cf24d922fc6cfc542f8fa7b0c208ebc141d2
Showing
- src/fileutils.cpp 35 additions, 0 deletionssrc/fileutils.cpp
- src/fileutils.h 3 additions, 0 deletionssrc/fileutils.h
- src/ringdht/ringaccount.cpp 25 additions, 2 deletionssrc/ringdht/ringaccount.cpp
- src/ringdht/ringaccount.h 3 additions, 1 deletionsrc/ringdht/ringaccount.h
- src/security/tls_session.cpp 35 additions, 9 deletionssrc/security/tls_session.cpp
- src/security/tls_session.h 27 additions, 6 deletionssrc/security/tls_session.h
- src/string_utils.cpp 19 additions, 0 deletionssrc/string_utils.cpp
- src/string_utils.h 6 additions, 0 deletionssrc/string_utils.h
Loading
Please register or sign in to comment