2
0
Fork 0
mirror of https://git.sr.ht/~sircmpwn/mkproof synced 2024-05-28 05:36:12 +02:00
Commit Graph

655 Commits

Author SHA1 Message Date
Drew DeVault c49aff35e3 Add man pages 2020-11-25 12:22:22 -05:00
Drew DeVault 1f58a37098 mkproof: use unsigned long for attempt count 2020-11-25 12:22:03 -05:00
Drew DeVault 773cdb5582 mkchallenge: multiply difficulty by two 2020-11-25 12:21:47 -05:00
Drew DeVault 2a81538b02 mkproof: improve final output a bit 2020-11-25 12:07:40 -05:00
Drew DeVault 8f5c12ace0 Implement everything 2020-11-25 12:05:19 -05:00
Drew DeVault 4267a36811 Initial commit 2020-11-25 11:15:59 -05:00
Drew DeVault 87d922c6c6 Add 'argon2i/' from commit '440ceb9612d5a20997e3e12728542df2de713ca4'
git-subtree-dir: argon2i
git-subtree-mainline: 3e7a084af1
git-subtree-split: 440ceb9612
2020-11-25 10:48:57 -05:00
Drew DeVault 3e7a084af1 Initial commit 2020-11-25 10:48:52 -05:00
Dmitry Khovratovich 440ceb9612
Merge pull request #285 from dra27/mingw-w64-fixes
mingw-w64 / MSYS2 fixes
2020-07-09 14:56:35 +02:00
Dmitry Khovratovich 3df7b847b1
Merge pull request #289 from ultrahorizon/issue-288
Add reference to pyargon2 in README Bindings
2020-07-09 14:52:28 +02:00
Dmitry Khovratovich 4a296310b3
Merge pull request #292 from fturco/https
use HTTPS instead of HTTP for URLs
2020-07-09 14:52:01 +02:00
Francesco Turco 92cd2e19b5 use HTTPS instead of HTTP for URLs
Signed-off-by: Francesco Turco <mail@fturco.net>
2020-07-05 09:29:02 +02:00
James Webb f72f8cde3f
Add reference to pyargon2 in README Bindings 2020-06-21 18:02:18 +01:00
David Allsopp 6d8620941f Use PRIx64 on mingw-w64 instead llx
mingw-w64 is able to work with old enough Microsoft C runtimes which
don't support %llx. However, all versions of mingw-w64 do have
inttypes.h, so use it (PRIx64 is shimmed for other platforms, since
inttypes.h is a C99 header).
2020-04-10 21:38:28 +01:00
David Allsopp ec465c85fd Generalise MSVC-specific changes to mingw-w64 2020-04-10 21:37:37 +01:00
Dmitry Khovratovich cd5dd35996
Merge pull request #277 from kisik21/patch-1
Fix cross-compilation on some Linux systems
2020-04-06 16:55:43 +02:00
Dmitry Khovratovich 288d50eaef
Merge pull request #281 from pmjdebruijn/master
Don't fail on existing symlink
2020-04-06 16:54:41 +02:00
Dmitry Khovratovich 84241b40a9
Merge pull request #282 from pks-t/pks/win32-undefined-error
Fix possible compiler error due to undefined _MSC_VER
2020-04-06 16:53:57 +02:00
Dmitry Khovratovich d13f825a25
Merge pull request #276 from lambdapioneer/patch-1
Adding new Android binding to README.md
2020-04-06 16:52:55 +02:00
Patrick Steinhardt 48829f87eb Fix possible compiler error due to undefined _MSC_VER
In order to determine how to set up the ARGON2_PUBLIC and ARGON2_LOCAL
macros, we check for various different environments via preprocessor
defines. For Microsoft Visual Studio, we check that the macro _MSC_VER
evaluates to non-zero via `#elif _MSC_VER`. This may raise a compile
error when compiling with "-Werror=undef" if the variable isn't defined.

Fix the issue by using `#elif defined(_MSC_VER)` instead.
2020-02-20 17:37:32 +01:00
Pascal de Bruijn b997b9e7d4 Don't fail on existing symlink 2019-11-07 09:55:32 +01:00
Vika cd1c1d8d20
Fix cross-compilation on some systems
Some Linux distributions (e.g. NixOS, where this issue was spotted) don't provide an unprefixed ar when cross-compiling. This PR aims to fix this.

See[NixOS/nixpkgs#67490](https://github.com/NixOS/nixpkgs/pull/67490) for information on where did it start.
2019-08-26 14:05:22 +03:00
Daniel H 267ae44e71
Adding new Android binding to README.md
I've published an Android binding for Argon2 that makes it simple for Android developers to use Argon2. It emerged from a personal mobile app project. I've found that the existing Java bindings don't work too well with Android - especially with the now mandatory 64-bit support.

I hope adding to the listing will help other mobile developers.
2019-08-22 15:45:10 +02:00
JP Aumasson 62358ba212
Merge pull request #270 from bitmark-property-system/master
fix the Makefile to install libargon2.pc
2019-05-20 11:18:00 +02:00
Christopher Hall d3639142fa fix the Makefile to install libargon2.pc
make sure that lib or libdata are selected based on Kernel
and sed the template file to have correct paths

If kernel is Linux then default path for  Ubuntu
  For others add LIBRARY_REL=lib64 (or similar to make command)

Signed-off-by: Christopher Hall <hsw@bitmark.com>
2019-04-24 17:48:41 +08:00
Samuel Neves e4ca309b04
Merge pull request #268 from mbroz/master
Wait for already running threads if a thread creation failed.
2019-03-12 21:52:42 +00:00
Milan Broz cfa4385e72 Wait for already running threads if a thread creation failed.
On memory-constrained systems (like cgroups limited processes)
thread creation often fails.

The code needs to wait for already running threads on error path;
otherwise these threads can access deallocated memory
(and cause a segfault or another crash).
2019-03-11 21:43:42 +01:00
Samuel Neves 80dca8559b
Merge pull request #267 from maciejsszmigiero/use-explicit_bzero-glibc
use explicit_bzero() on recent glibc versions
2019-03-10 15:55:27 +00:00
Samuel Neves 6b4420ffcf
Merge pull request #266 from noloader/master
Visual Studio improvements
2019-03-10 15:52:41 +00:00
Maciej S. Szmigiero fea3943ada
Use explicit_bzero() on recent glibc versions
glibc 2.25+ has explicit_bzero(), so we can use it to securely wipe memory
instead of hacking our own memset-based replacement, just like we already
do on OpenBSD.
2019-03-05 14:30:44 +01:00
Jeffrey Walton 2e1021b879
Add GenerateDebugInformation to Argon2Ref project 2019-02-10 07:10:12 -05:00
Jeffrey Walton 3b11aba66f
Add ProgramDatabase to Argon2Ref project 2019-02-10 07:06:31 -05:00
Jeffrey Walton 92098d8230
Convert Argon2OptTestCI.vcxproj back to Unix line endings
Unusual for a Visual Studio project file...
2019-02-10 06:26:34 -05:00
Jeffrey Walton 0d28ecf93c
Visual Studio improvements
There are two improvements here. First, drop the minimum requirement for Visual Studio to 2010. This allows someone to open and run the project with VS2010, 2012, 2013, 2015, 2017, etc. Whatever they have on their machine works, and they won't encounter "wrong toolset" errors (or similar). Second, enable debugging information so the code can be stepped under Visual Studio.
2019-02-10 06:24:34 -05:00
Dmitry Khovratovich 6c8653c3b6
Merge pull request #261 from technion/2id
Add tests for Argon2_id.
2018-11-09 10:44:51 +01:00
Technion cfca062d1b Add tests for Argon2_id. 2018-08-31 10:17:14 +00:00
Samuel Neves b31aa32256
Merge pull request #260 from rffontenelle/fix-typos
Fix typos
2018-08-19 22:34:55 +01:00
Rafael Fontenelle a86c913a06 Fix typos 2018-08-19 17:03:26 -03:00
daniel-dinu fba7b9a73a
Merge pull request #250 from Sc00bz/patch-1
Spelling and updated function name changes
2018-06-25 23:38:30 -04:00
daniel-dinu c9acac28ed
Merge pull request #247 from hvr/patch-1
Update maintainer/url of Haskell's `argon2` package
2018-06-25 23:02:27 -04:00
Brian Myers 558a4fae89 Added new Rust binding to README.md (#256)
* Added new Rust binding to README.md
2018-06-25 22:42:27 -04:00
daniel-dinu e585ff0b6b
Merge pull request #251 from ergenius/patch-1
Added Argon2 Erlang binding.
2018-06-25 22:40:31 -04:00
daniel-dinu f30e1f11f2
Merge pull request #244 from kosprov/master
Additional JVM bindings (Jargon2)
2018-06-25 22:30:53 -04:00
Samuel Neves eaef13c24e
Merge pull request #254 from josephlr/travis
Fix Travis failures
2018-06-04 13:25:42 +01:00
Samuel Neves e393431cd3
Merge pull request #253 from josephlr/headers
All headers should be self-contained
2018-06-04 13:24:56 +01:00
Samuel Neves 88333480c6
Merge pull request #252 from josephlr/gitignore
Ignore all build files
2018-06-04 13:24:24 +01:00
Joe Richey joerichey@google.com 82a6f11b82 Fix Travis failures
Argon2 by default runs Travis CI in a containerized environment
https://docs.travis-ci.com/user/reference/overview/#Container-based

This is faster and works fine for most things. However, #89 added ASAN
to the test cases. As ASAN requires the SYS_PTRACE capability, when
Travis/Docker permissions changed earlier this year, our tests stoped
working. See https://github.com/travis-ci/travis-ci/issues/9033

The solution is just to run ASAN in a VM (sudo=true). This test takes so
long normally that the cost to startup a VM is relativly small.
2018-06-01 17:24:29 -07:00
Joe Richey joerichey@google.com 10f7c47806 All headers should be self-contained
Adding an include of core.h to genkat.h makes it so genkat.h will
compile on it's own. All other headers in the project have this
property.

This was causing warnings when importing argon2 into other build systems
like Bazel/Blaze.
2018-06-01 16:33:49 -07:00
Joe Richey joerichey@google.com 488ac5d553 Ignore all build files
With the ABI changes to libargon2, libargon2.so.1 wasn't ignored.
2018-05-31 15:33:18 -07:00
Madalin Grigore-Enescu d055b2090e
Added Argon2 Erlang binding.
A few days ago i started building an Argon2 Erlang binding called eArgon2.

It's in his early beta stages, however it's working and bypassed simple tests. I added my binding to the binding list alphabetically (i noticed all are listed alphabetically). Please accept my listing. Thank's!
2018-04-06 16:53:43 +03:00