aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf/SecureRandomDataProvider.cc
AgeCommit message (Collapse)Author
2022-09-21Replace calls to QUtil::int_to_string with std::to_stringm-holger
2022-04-16Use anonymous namespaces for file-private classesJay Berkenbilt
2022-04-16Use = default and = delete where possible in classesJay Berkenbilt
2022-04-04Programmatically apply new formatting to codeJay Berkenbilt
Run this: for i in **/*.cc **/*.c **/*.h **/*.hh; do clang-format < $i >| $i.new && mv $i.new $i done
2021-02-10Minor clean up of Windows headersJay Berkenbilt
2020-10-17fix WindowsCryptProvider fixes #432oltolm
2020-01-15Fix for Windows unable to acquire crypt context with new keyset (fixes #387)Cloudmersive
Fix is based on guidance https://support.microsoft.com/en-us/help/238187/cryptacquirecontext-use-and-troubleshooting and is the proper fix for #285/#286
2019-06-22Provide error message in Windows crypto code (fixes #286)Jay Berkenbilt
Thanks to github user zdenop for supplying some additional error-handling code.
2019-06-21Fix sign and conversion warnings (major)Jay Berkenbilt
This makes all integer type conversions that have potential data loss explicit with calls that do range checks and raise an exception. After this commit, qpdf builds with no warnings when -Wsign-conversion -Wconversion is used with gcc or clang or when -W3 -Wd4800 is used with MSVC. This significantly reduces the likelihood of potential crashes from bogus integer values. There are some parts of the code that take int when they should take size_t or an offset. Such places would make qpdf not support files with more than 2^31 of something that usually wouldn't be so large. In the event that such a file shows up and is valid, at least qpdf would raise an error in the right spot so the issue could be legitimately addressed rather than failing in some weird way because of a silent overflow condition.
2017-08-22Update references to README filesJay Berkenbilt
Most of the README files have been renamed. Refer to the new names.
2017-08-22Fix compiler warnings for clang/mac OS XJay Berkenbilt
2017-07-26Make windows includes lowercase (fixes #123)slurdge
For cross compiling.
2015-05-24Handle Microsoft crypt provider without prior keysJay Berkenbilt
As reported in issue #40, a call to CryptAcquireContext in SecureRandomDataProvider fails in a fresh windows install prior to any user keys being created in AppData\Roaming\Microsoft\Crypto\RSA. Thanks michalrames.
2013-12-14Allow OS-provided secure random to be disabledJay Berkenbilt
2013-12-14Refactor random data generationJay Berkenbilt
Add new RandomDataProvider object and implement existing random number generation in terms of that. This enables end users to supply their own random data providers.