Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(115)

Issue 12534011: Add base64 decoder and change existing base64 encoder. (Closed)

Created:
7 years, 9 months ago by mdakin1
Modified:
7 years, 8 months ago
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Add base64 decoder and change existing base64 encoder. New implmentation supports url/file safe encoding and should be faster. Committed: https://code.google.com/p/dart/source/detail?r=20845

Patch Set 1 #

Patch Set 2 : minor fix #

Total comments: 68

Patch Set 3 : Address comments. #

Patch Set 4 : Address comments. #

Total comments: 38

Patch Set 5 : Address all comments from Florian and Lasse. #

Total comments: 8

Patch Set 6 : Minor fixes. #

Patch Set 7 : Change iterations in perf test. #

Patch Set 8 : Minor fixes, make encoder padding bits more consistent with older version. #

Patch Set 9 : Remove whitespace #

Unified diffs Side-by-side diffs Delta from patch set Stats (+282 lines, -67 lines) Patch
M sdk/lib/crypto/crypto.dart View 1 2 3 4 5 6 1 chunk +37 lines, -5 lines 0 comments Download
M sdk/lib/crypto/crypto_utils.dart View 1 2 3 4 5 6 7 8 2 chunks +140 lines, -55 lines 0 comments Download
M tests/lib/crypto/base64_test.dart View 1 2 3 4 5 6 2 chunks +105 lines, -7 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
Lasse Reichstein Nielsen
Preliminary comments, not done yet. https://codereview.chromium.org/12534011/diff/1001/sdk/lib/crypto/crypto_base.dart File sdk/lib/crypto/crypto_base.dart (right): https://codereview.chromium.org/12534011/diff/1001/sdk/lib/crypto/crypto_base.dart#newcode127 sdk/lib/crypto/crypto_base.dart:127: * base64 encoded string ...
7 years, 9 months ago (2013-03-21 14:06:38 UTC) #1
mdakin1
Thanks, I addressed most of the comments. https://codereview.chromium.org/12534011/diff/1001/sdk/lib/crypto/crypto_base.dart File sdk/lib/crypto/crypto_base.dart (right): https://codereview.chromium.org/12534011/diff/1001/sdk/lib/crypto/crypto_base.dart#newcode127 sdk/lib/crypto/crypto_base.dart:127: * base64 ...
7 years, 9 months ago (2013-03-21 15:27:15 UTC) #2
Lasse Reichstein Nielsen
LGTM with comments addressed (if the counting of extrasLen is correct). https://codereview.chromium.org/12534011/diff/1001/sdk/lib/crypto/crypto_utils.dart File sdk/lib/crypto/crypto_utils.dart (right): ...
7 years, 9 months ago (2013-03-22 09:16:56 UTC) #3
floitsch
LGTM. https://codereview.chromium.org/12534011/diff/12002/sdk/lib/crypto/crypto_base.dart File sdk/lib/crypto/crypto_base.dart (right): https://codereview.chromium.org/12534011/diff/12002/sdk/lib/crypto/crypto_base.dart#newcode136 sdk/lib/crypto/crypto_base.dart:136: * If [usePadding] is false, Extra padding characters ...
7 years, 9 months ago (2013-03-22 17:22:05 UTC) #4
mdakin1
I hipe I fixed all the issues, would be nice if you have a quick ...
7 years, 9 months ago (2013-03-25 17:05:02 UTC) #5
floitsch
LGTM. https://codereview.chromium.org/12534011/diff/1001/sdk/lib/crypto/crypto_utils.dart File sdk/lib/crypto/crypto_utils.dart (right): https://codereview.chromium.org/12534011/diff/1001/sdk/lib/crypto/crypto_utils.dart#newcode45 sdk/lib/crypto/crypto_utils.dart:45: int len = bytes != null ? bytes.length ...
7 years, 9 months ago (2013-03-25 17:45:37 UTC) #6
mdakin1
https://codereview.chromium.org/12534011/diff/1001/sdk/lib/crypto/crypto_utils.dart File sdk/lib/crypto/crypto_utils.dart (right): https://codereview.chromium.org/12534011/diff/1001/sdk/lib/crypto/crypto_utils.dart#newcode110 sdk/lib/crypto/crypto_utils.dart:110: if ((len - extrasLen) % 4 != 0) { ...
7 years, 9 months ago (2013-03-26 09:52:16 UTC) #7
mdakin1
7 years, 8 months ago (2013-04-03 10:45:46 UTC) #8
Message was sent while issue was closed.
Committed patchset #9 manually as r20845 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698