Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Commit

Permalink
Merge pull request #31021 from mwargers/1181662
Browse files Browse the repository at this point in the history
Bug 1181662 - Fix failure in test_lockscreen_unlock_to_camera_with_passcode.py
  • Loading branch information
mwargers committed Jul 28, 2015
2 parents 27e47e0 + 4bbdc53 commit 9112cd1
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions tests/python/gaia-ui-tests/gaiatest/gaia_test.py
Expand Up @@ -1154,14 +1154,17 @@ def set_passcode_to_1337(self):
SET_DIGEST_ITERATIONS = 'lockscreen.passcode-lock.digest.iterations'
SET_DIGEST_ALGORITHM = 'lockscreen.passcode-lock.digest.algorithm'

digestNums = [195, 174, 33, 98, 39, 43, 135, 112,
126, 176, 82, 150, 236, 112, 87, 54,
96, 60, 208, 18, 86, 178, 19, 20,
129, 91, 168, 134, 241, 138, 59, 210]

settings = {}
settings[SET_DIGEST_VALUE] = digestNums
settings[SET_DIGEST_SALT] = [4, 8, 15, 16, 23, 42, 108, 0]
# ArrayBuffers are represented as objects keys from 0 to n-1.
# The passcode is stored using PBKDF2 with a non-deterministic salt.
# These values are the result of a pre-computation of PBKDF2 with the given salt,
# 1000 iterations of SHA-1 and the passcode "1337".
settings[SET_DIGEST_VALUE] = {"0": 119, "1": 161, "2": 123, "3": 75, "4": 210,
"5": 67, "6": 1, "7": 189, "8": 48, "9": 33, "10": 242,
"11": 167, "12": 140, "13": 241, "14": 255,
"15": 39, "16": 5, "17": 23, "18": 43, "19": 150}
settings[SET_DIGEST_SALT] = {"0": 89, "1": 203, "2": 232, "3": 38,
"4": 249, "5": 94, "6": 109, "7": 54}
settings[SET_DIGEST_ITERATIONS] = 1000
settings[SET_DIGEST_ALGORITHM] = 'SHA-1'

Expand Down

0 comments on commit 9112cd1

Please sign in to comment.