chromiumos/third_party/libscrypt.git
17 months agomemlimit.c: ignore sysconf() failures 79/42579/2 factory-4128.B factory-4290.B factory-4455.B factory-pit-4280.B factory-pit-4390.B factory-pit-4471.B factory-spring-3842.B factory-spring-4131.B factory-spring-4262.B firmware-falco_peppy-4389.B firmware-leon-4389.26.B firmware-pit-4482.B firmware-spring-3824.4.B firmware-spring-3824.55.B firmware-spring-3824.84.B firmware-spring-3824.B firmware-wolf-4389.24.B master release-R26-3701.B release-R27-3912.B release-R28-4100.B release-R29-4319.B release-R30-4537.B stabilize-3701.30.0 stabilize-3701.30.0b stabilize-3701.46.B stabilize-3701.81.B stabilize-3881.0.B stabilize-3912.79.B stabilize-4008.0.B stabilize-4035.0.B stabilize-4068.0.B stabilize-4100.38.B stabilize-4255.B stabilize-4287.B stabilize-4443.B stabilize-4512.B stabilize-bluetooth-smart stabilize-spring-4100.53.B toolchain-3701.42.B toolchainA toolchainB
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>
3 years agoInitial code. 0.11.241.B 0.11.257.B 0.11.257.B90 0.12.362.B 0.12.369.B 0.12.392.B 0.12.433.B 0.12.433.B109 0.12.433.B62 0.13.434.B 0.13.509.B 0.13.558.B 0.13.587.B 0.14.811.B 0.15.877.B 11.1.241.B 780.B factory-1020.B factory-1235.B factory-1284.B factory-1412.B factory-1987.B factory-2268.16.B factory-2305.B factory-2338.B factory-2368.B factory-2394.B factory-2460.B factory-2475.B factory-2569.B factory-2717.B factory-2723.14.B factory-2846.B factory-2848.B factory-2914.B factory-2985.B factory-2993.B factory-3004.B factory-3536.B factory-980.B firmware-881-u-boot-v1 firmware-butterfly-2788.B firmware-kiev-2.112.B firmware-link-2348.B firmware-link-2695.2.B firmware-link-2695.B firmware-parrot-2685.B firmware-snow-2695.90.B firmware-snow-2695.B firmware-stout-2817.B firmware-u-boot-v1 firmware-uboot_v2-1299.B release-1011.B release-R16-1193.B release-R17-1412.B release-R18-1660.B release-R19-2046.B release-R20-2268.B release-R21-2465.B release-R22-2723.B release-R23-2913.B release-R25-3428.B stabilize stabilize-3428.110.0 stabilize-3428.149 stabilize-3428.149.B stabilize-3428.193 stabilize-3658.0.0 stabilize-daisy stabilize-link stabilize-link-2913.278 stabilize2 test-982.B toolchain-3428.65.B
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

4 years agoInitialize repository.
Frank Swiderski [Mon, 26 Jul 2010 21:24:26 +0000 (14:24 -0700)]
Initialize repository.