summary |
shortlog | log |
commit |
commitdiff |
tree
first ⋅ prev ⋅ next
Will Drewry [Mon, 4 Feb 2013 23:48:36 +0000 (17:48 -0600)]
memlimit.c: ignore sysconf() failures
When using qemu-arm, sysconf(_SC_PAGE_SIZE) returns an error
with an errno of ENOSYS. This change ignores ENOSYS since
the result would be the same as when _SC_PAGE_SIZE was not
defined. This makes scrypt work in cryptohome unittests.
The "right" solution is to add a new macro via configure that
wraps up the _SC_PAGE_SIZE test along with a compile-time test
for sysconf() to work. It seems like overkill, but probably
the right move for upstreaming.
TEST=builds and cryptohome tests work under qemu-arm
BUG=chromium-os:38444
Signed-off-by: Will Drewry <wad@chromium.org>
Change-Id: Ic04d19b0d1553c4e57f562cdcee99e59b300f2e0
Reviewed-on: https://gerrit.chromium.org/gerrit/42579
Reviewed-by: Kees Cook <keescook@chromium.org>
Commit-Queue: Will Drewry <wad@chromium.org>
Tested-by: Will Drewry <wad@chromium.org>
Frank Swiderski [Mon, 2 Aug 2010 23:02:28 +0000 (16:02 -0700)]
Initial code.
This is the initial upload of the scrypt library from tarsnap. The library uses a memory-bound function for key strengthening of passwords.
BUG=389
TEST=manual
Review URL: http://codereview.chromium.org/2847081
Frank Swiderski [Mon, 26 Jul 2010 21:24:26 +0000 (14:24 -0700)]
Initialize repository.