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

Unified Diff: tests/lib/crypto/hmac_sha256_test_vectors.dart

Issue 10871071: - Change "static final" to "static const" in the tests/ directory. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests/lib/crypto/hmac_sha1_test_vectors.dart ('k') | tests/lib/crypto/sha1_long_test_vectors.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/lib/crypto/hmac_sha256_test_vectors.dart
===================================================================
--- tests/lib/crypto/hmac_sha256_test_vectors.dart (revision 11349)
+++ tests/lib/crypto/hmac_sha256_test_vectors.dart (working copy)
@@ -5,7 +5,7 @@
// Standard test vectors from:
// http://csrc.nist.gov/groups/STM/cavp/documents/mac/hmactestvectors.zip
-final hmac_sha256_inputs = const [
+const hmac_sha256_inputs = const [
const [ 0x75, 0x2c, 0xff, 0x52, 0xe4, 0xb9, 0x07, 0x68, 0x55, 0x8e, 0x53, 0x69, 0xe7, 0x5d, 0x97, 0xc6, 0x96, 0x43, 0x50, 0x9a, 0x5e, 0x59, 0x04, 0xe0, 0xa3, 0x86, 0xcb, 0xe4, 0xd0, 0x97, 0x0e, 0xf7, 0x3f, 0x91, 0x8f, 0x67, 0x59, 0x45, 0xa9, 0xae, 0xfe, 0x26, 0xda, 0xea, 0x27, 0x58, 0x7e, 0x8d, 0xc9, 0x09, 0xdd, 0x56, 0xfd, 0x04, 0x68, 0x80, 0x5f, 0x83, 0x40, 0x39, 0xb3, 0x45, 0xf8, 0x55, 0xcf, 0xe1, 0x9c, 0x44, 0xb5, 0x5a, 0xf2, 0x41, 0xff, 0xf3, 0xff, 0xcd, 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, 0x32, 0xe4, 0x23, 0xd5, 0x20, 0x09, 0x25, 0xbd, 0xdf, 0xad, 0xd4, 0x18, 0xd8, 0xe3, 0x0e, 0x18, 0x05, 0x0e, 0xb4, 0xf0, 0x61, 0x8e, 0xb9, 0x95, 0x9d, 0x9f, 0x78, 0xc1, 0x15, 0x7d, 0x4b, 0x3e, 0x02, 0xcd, 0x59, 0x61, 0xf1, 0x38, 0xaf, 0xd5, 0x74, 0x59, 0x93, 0x99, 0x17, 0xd9, 0x14, 0x4c, 0x95, 0xd8, 0xe6, 0xa9, 0x4c, 0x8f, 0x6d, 0x4e, 0xef, 0x34, 0x18, 0xc1, 0x7b, 0x1e, 0xf0, 0xb4, 0x6c, 0x2a, 0x71, 0x88, 0x30, 0x5d, 0x98, 0x11, 0xdc, 0xcb, 0x3d, 0x99 ],
];
-final hmac_sha256_keys = const [
+const hmac_sha256_keys = const [
const [ 0x6f, 0x35, 0x62, 0x8d, 0x65, 0x81, 0x34, 0x35, 0x53, 0x4b, 0x5d, 0x67, 0xfb, 0xdb, 0x54, 0xcb, 0x33, 0x40, 0x3d, 0x04, 0xe8, 0x43, 0x10, 0x3e, 0x63, 0x99, 0xf8, 0x06, 0xcb, 0x5d, 0xf9, 0x5f, 0xeb, 0xbd, 0xd6, 0x12, 0x36, 0xf3, 0x32, 0x45 ],
const [ 0x17, 0xb5, 0x28, 0x58, 0xe3, 0xe1, 0x35, 0xbe, 0x44, 0x40, 0xd7, 0xdf, 0x0c, 0xa9, 0x96, 0xf4, 0x1c, 0xcb, 0x78, 0xb7, 0xd8, 0xcc, 0x19, 0x24, 0xd8, 0x30, 0xfe, 0x81, 0xe0, 0xfd, 0x27, 0x9c, 0x13, 0x1c, 0xe3, 0x54, 0x63, 0x03, 0xe9, 0x5a ],
const [ 0x7c, 0x67, 0x41, 0x0e, 0x0a, 0x9e, 0x3d, 0x7a, 0xe4, 0xf3, 0xd0, 0x4e, 0xff, 0x1c, 0x27, 0x16, 0x89, 0x1e, 0x82, 0x1c, 0x6e, 0xc1, 0xdc, 0x82, 0x21, 0x42, 0xce, 0x8d, 0x99, 0x49, 0xb1, 0x44, 0x9a, 0x1a, 0x03, 0x3a, 0x35, 0x0f, 0x0b, 0xa8 ],
@@ -461,7 +461,7 @@
const [ 0x4b, 0x7a, 0xb1, 0x33, 0xef, 0xe9, 0x9e, 0x02, 0xfc, 0x89, 0xa2, 0x84, 0x09, 0xee, 0x18, 0x7d, 0x57, 0x9e, 0x77, 0x4f, 0x4c, 0xba, 0x6f, 0xc2, 0x23, 0xe1, 0x35, 0x04, 0xe3, 0x51, 0x1b, 0xef, 0x8d, 0x4f, 0x63, 0x8b, 0x9a, 0xca, 0x55, 0xd4, 0xa4, 0x3b, 0x8f, 0xbd, 0x64, 0xcf, 0x9d, 0x74, 0xdc, 0xc8, 0xc9, 0xe8, 0xd5, 0x20, 0x34, 0x89, 0x8c, 0x70, 0x26, 0x4e, 0xa9, 0x11, 0xa3, 0xfd, 0x70, 0x81, 0x3f, 0xa7, 0x3b, 0x08, 0x33, 0x71, 0x28, 0x9b ],
];
-final hmac_sha256_macs = const [
+const hmac_sha256_macs = const [
'05d1243e6465ed9620c9aec1c351a186',
'c4061427764f979468ac422891dea9ca',
'1a0d427e79a7bdca7b11579339d0ff77',
« no previous file with comments | « tests/lib/crypto/hmac_sha1_test_vectors.dart ('k') | tests/lib/crypto/sha1_long_test_vectors.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698