Граф коммитов

12 Коммитов

Автор SHA1 Сообщение Дата
Kit Cambridge d4dafb9ea8 Bug 1345665 - Implement the "aes128gcm" push decryption scheme. r=mt
MozReview-Commit-ID: 3touVfeSDwE

--HG--
extra : rebase_source : cb02c827fb657440c4ff05b7212a3015baff33be
extra : source : 117a38e95fd52cdba968e0f169ebb3a63e69e118
2017-05-11 22:03:26 -07:00
Kit Cambridge 3a3c236cd9 Bug 1345665 - Refactor push decryption into separate decoder classes. r=mt
This patch moves the decryption methods into a base `Decoder` class,
and an intermediate `OldSchemeDecoder` with subclasses for aesgcm and
aesgcm128. The base class provides a `decrypt` method that computes the
ECDH shared secret, derives the key and nonce, decrypts each record,
and removes padding. Subclasses implement `deriveKeyAndNonce`,
`unpadChunk`, `chunkSize`, and `padSize`.

MozReview-Commit-ID: IuGPaofWKNq

--HG--
extra : rebase_source : daaf414127a11525ce7d61c15b96e7f3493611de
2017-05-10 10:44:51 -07:00
Kit Cambridge e1271e1b81 Bug 1308590 - Link to references in the Push encryption error strings. r=flod
MozReview-Commit-ID: 9NPmNHoytrc

--HG--
extra : rebase_source : 1d0b8b075d178aab98941190b7177a66442d12ee
2016-10-07 11:48:58 -07:00
Kit Cambridge a69ba96059 Bug 1301469 - Add localized decryption errors for invalid headers and padding. r=mt
Web Crypto returns an unhelpful "operation failed for an
operation-specific reason" error if the actual decryption fails, but
we can report more useful errors for missing and invalid header
values.

MozReview-Commit-ID: JRdGHBUodmb

--HG--
extra : rebase_source : 8f1b047b6f01c89a852aefbb1349a608f1178ab8
2016-10-05 08:57:52 -07:00
Kit Cambridge 21365c8060 Bug 1247685 - Validate and store app server keys in the Push service. r=mt
MozReview-Commit-ID: KLm6mP22y2E

--HG--
extra : rebase_source : ccda66192d5a64427bfd8699a70081f581dac5a1
2016-03-16 02:53:13 -07:00
Kit Cambridge d21d6da5e8 Bug 1256488 - Add a Base64 URL-decoder for C++ and chrome JS callers. r=mt,baku
MozReview-Commit-ID: IrDwImYfHRu

--HG--
extra : rebase_source : ed7da7447e5d70c596234961625fcd4b8139814f
2016-03-22 12:09:04 -07:00
Kit Cambridge a6d5a040d9 Bug 1257821 - Remove the authenticated `aesgcm128` content coding scheme. r=mt,marco
MozReview-Commit-ID: 5pX2GHJ2lNz

--HG--
extra : rebase_source : 8747786a915e0adb3be7555dd1648e3e03b4fbf0
2016-03-22 19:20:36 -07:00
Kit Cambridge bc0b536de1 Bug 1257821 - Support the new `aesgcm` content encoding scheme. r=mt
MozReview-Commit-ID: IPNXletzJRK

--HG--
extra : rebase_source : 3593624d3513a0ccc7422bfeefe5c85dca37541a
2016-03-18 09:01:50 -07:00
Kit Cambridge fa6e8e2743 Bug 1257405 - Increase auth secret length to 16 octets. r=mt
MozReview-Commit-ID: 3oiYMgQHckk

--HG--
extra : rebase_source : b15e184c0ffd3845eaf913ec5cdb654b9a7a1932
2016-03-16 19:53:19 -07:00
Martin Thomson 0b2ee432a6 Bug 1225968 - Refactoring to move some of the push crypto logic, r=kitcambridge
--HG--
extra : commitid : DCuRgytkyJI
extra : rebase_source : de8696757ea1ae71071f8e53bed51eb218a6f20e
2015-12-04 08:24:47 +11:00
Martin Thomson 6e6387eecb Bug 1225968 - Add authentication secret to push API, r=kitcambridge,smaug
--HG--
extra : commitid : 5qD0xsj9DLR
extra : rebase_source : 407d4152f897f87fa9b5fae8b6b93ef510cce59f
2015-12-09 07:26:42 +11:00
Kit Cambridge 6c8172cef8 Bug 1185544 - Add data delivery to the WebSocket backend. r=dragana,nsm
--HG--
extra : commitid : EntjTGDbYag
extra : rebase_source : 79b325dacbed5d96fea17ac26a4bc8103c8dfae1
2015-09-17 05:08:50 -07:00