OLD | NEW |
---|---|
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 package org.chromium.chrome.browser.webapps; | 5 package org.chromium.chrome.browser.webapps; |
6 | 6 |
7 /** Public key and signature for WebAPKs */ | |
7 public class ChromeWebApkHostSignature { | 8 public class ChromeWebApkHostSignature { |
8 | |
9 // The public key to verify whether a WebAPK is signed by WebAPK Server. | 9 // The public key to verify whether a WebAPK is signed by WebAPK Server. |
10 static final byte[] EXPECTED_SIGNATURE = new byte[] {48, -126, 4, 104, 48, - 126, 2, -48, -96, 3, | 10 static final byte[] EXPECTED_SIGNATURE = new byte[] {48, -126, 4, 104, 48, - 126, 2, -48, -96, 3, |
11 2, 1, 2, 2, 20, 120, 33, -22, -36, -115, 7, 116, 66, 116, 113, -122, -126, -124, 32, 44, | 11 2, 1, 2, 2, 20, 120, 33, -22, -36, -115, 7, 116, 66, 116, 113, -122, -126, -124, 32, 44, |
12 72, -43, 127, -13, -11, 48, 13, 6, 9, 42, -122, 72, -122, -9, 13, 1, 1, 11, 5, 0, 48, | 12 72, -43, 127, -13, -11, 48, 13, 6, 9, 42, -122, 72, -122, -9, 13, 1, 1, 11, 5, 0, 48, |
13 67, 49, 11, 48, 9, 6, 3, 85, 4, 6, 19, 2, 85, 83, 49, 15, 48, 13, 6, 3, 85, 4, 10, 19, | 13 67, 49, 11, 48, 9, 6, 3, 85, 4, 6, 19, 2, 85, 83, 49, 15, 48, 13, 6, 3, 85, 4, 10, 19, |
14 6, 71, 111, 111, 103, 108, 101, 49, 22, 48, 20, 6, 3, 85, 4, 11, 19, 13, 67, 104, 114, | 14 6, 71, 111, 111, 103, 108, 101, 49, 22, 48, 20, 6, 3, 85, 4, 11, 19, 13, 67, 104, 114, |
15 111, 109, 101, 32, 87, 101, 98, 65, 80, 75, 49, 11, 48, 9, 6, 3, 85, 4, 3, 19, 2, 67, | 15 111, 109, 101, 32, 87, 101, 98, 65, 80, 75, 49, 11, 48, 9, 6, 3, 85, 4, 3, 19, 2, 67, |
16 65, 48, 30, 23, 13, 49, 54, 48, 56, 50, 51, 50, 48, 48, 56, 49, 49, 90, 23, 13, 52, 52, | 16 65, 48, 30, 23, 13, 49, 54, 48, 56, 50, 51, 50, 48, 48, 56, 49, 49, 90, 23, 13, 52, 52, |
17 48, 49, 49, 48, 50, 48, 48, 56, 49, 49, 90, 48, 67, 49, 11, 48, 9, 6 , 3, 85, 4, 6, 19, | 17 48, 49, 49, 48, 50, 48, 48, 56, 49, 49, 90, 48, 67, 49, 11, 48, 9, 6 , 3, 85, 4, 6, 19, |
18 2, 85, 83, 49, 15, 48, 13, 6, 3, 85, 4, 10, 19, 6, 71, 111, 111, 103 , 108, 101, 49, 22, | 18 2, 85, 83, 49, 15, 48, 13, 6, 3, 85, 4, 10, 19, 6, 71, 111, 111, 103 , 108, 101, 49, 22, |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
58 -23, 49, 73, 91, 76, 81, 90, 86, 112, 12, -87, -41, -61, -82, 32, -8 7, -7, 95, -28, -25, | 58 -23, 49, 73, 91, 76, 81, 90, 86, 112, 12, -87, -41, -61, -82, 32, -8 7, -7, 95, -28, -25, |
59 -9, -38, -102, 54, -81, -109, -126, 59, -82, 103, 126, -92, -51, -81 , 44, 61, 103, 127, | 59 -9, -38, -102, 54, -81, -109, -126, 59, -82, 103, 126, -92, -51, -81 , 44, 61, 103, 127, |
60 -1, -23, -84, -35, -43, -88, 41, 120, 76, 120, 39, -124, 81, 90, 64, 69, 112, 18, 54, | 60 -1, -23, -84, -35, -43, -88, 41, 120, 76, 120, 39, -124, 81, 90, 64, 69, 112, 18, 54, |
61 -115, -7, 12, -110, 105, 48, -44, 88, 35, -104, 107, -83, -4, -16, 1 23, 59, -13, 121, | 61 -115, -7, 12, -110, 105, 48, -44, 88, 35, -104, 107, -83, -4, -16, 1 23, 59, -13, 121, |
62 63, -89, 118, 100, 38, 118, -30, 9, -57, -54, -108, -26, -45, 29, -2 2, 57, -81, 83, | 62 63, -89, 118, 100, 38, 118, -30, 9, -57, -54, -108, -26, -45, 29, -2 2, 57, -81, 83, |
63 -124, -114, -50, 16, 78, 23, -41, -4, 119, -13, -68, 38, -23, 56, 22 , -96, -63, -27, 70, | 63 -124, -114, -50, 16, 78, 23, -41, -4, 119, -13, -68, 38, -23, 56, 22 , -96, -63, -27, 70, |
64 -94, -35, 111, -45, -9, 59, -90, -27, 103, 95, 16, 127, -118, -98, - 75, -52, 7, 32, 65, | 64 -94, -35, 111, -45, -9, 59, -90, -27, 103, 95, 16, 127, -118, -98, - 75, -52, 7, 32, 65, |
65 -27, -68, 62, -81, 98, -54, -80, -23, 59, 38, -127, 96, 71, 123, 34, -113, -23, -80, 32, | 65 -27, -68, 62, -81, 98, -54, -80, -23, 59, 38, -127, 96, 71, 123, 34, -113, -23, -80, 32, |
66 -97, -55, -100, 121, 120, 50, -48, 58, 69, -105, 26, 126, 30, -1, -1 12, -41, -18, -16, | 66 -97, -55, -100, 121, 120, 50, -48, 58, 69, -105, 26, 126, 30, -1, -1 12, -41, -18, -16, |
67 62, 48, -22, -2, 19, 117, -6, 59, 74, -13, 92, -1}; | 67 62, 48, -22, -2, 19, 117, -6, 59, 74, -13, 92, -1}; |
68 | |
69 static final byte[] PUBLIC_KEY = new byte[] {48, 89, 48, 19, 6, 7, 42, -122, 72, -50, 61, 2, 1, | |
Yaron
2017/04/04 15:43:29
Nit: comment
ScottK
2017/04/04 21:03:02
Done.
| |
70 6, 8, 42, -122, 72, -50, 61, 3, 1, 7, 3, 66, 0, 4, -25, 45, 2, 49, 4 4, -60, 107, -108, | |
71 -45, 27, -40, -8, -116, 44, 7, -38, -103, 52, -81, 33, -90, -80, -94 , 125, -3, -67, 51, | |
72 -125, -63, 6, -127, 89, 32, 53, 83, -120, -106, -113, -121, -39, 115 , -50, 15, 117, 66, | |
73 78, -89, -124, -120, 4, -61, 8, -90, -67, -6, 71, -120, -120, 23, 23 , 77, 75, 103, -28}; | |
68 } | 74 } |
OLD | NEW |