Closed Bug 1329621 Opened 8 years ago Closed 8 years ago

test_crypto_random.js attempts to test different key algorithms, but WeaveCrypto no longer supports them

Categories

(Firefox :: Sync, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
Firefox 53
Tracking Status
firefox53 --- fixed

People

(Reporter: standard8, Assigned: standard8)

References

Details

Attachments

(1 file)

I discovered this whilst cleaning up issues from eslint. test_crypto_random.js at one stage does: https://dxr.mozilla.org/mozilla-central/rev/d192a99be4b436f2dc839435319f7630d5d8f4b0/services/crypto/tests/unit/test_crypto_random.js#48 ``` cryptoSvc.algorithm = WeaveCryptoModule.AES_256_CBC; keydata = cryptoSvc.generateRandomKey(); do_check_eq(keydata.length, 44); ... ``` However, neither WeaveCryptoModule.AES_256_CBC nor cryptoSvc.algorithm are valid. Both have been removed, and it looks like the WeaveCrypto service uses just one algorithm. Therefore that first line is basically a no-op, and the duplicate test can be removed.
Comment on attachment 8824947 [details] Bug 1329621 - test_crypto_random.js attempts to test different key algorithms, but WeaveCrypto no longer supports them. https://reviewboard.mozilla.org/r/103286/#review103900 Hah. Good catch!
Attachment #8824947 - Flags: review?(rnewman) → review+
Pushed by mbanner@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/cd64a0a38b30 test_crypto_random.js attempts to test different key algorithms, but WeaveCrypto no longer supports them. r=rnewman
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 53
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: