github.com/google/trillian-examples@v0.0.0-20240520080811-0d40d35cef0e/binary_transparency/firmware/internal/crypto/key_info.go (about)

     1  // Copyright 2020 Google LLC. All Rights Reserved.
     2  //
     3  // Licensed under the Apache License, Version 2.0 (the "License");
     4  // you may not use this file except in compliance with the License.
     5  // You may obtain a copy of the License at
     6  //
     7  //     http://www.apache.org/licenses/LICENSE-2.0
     8  //
     9  // Unless required by applicable law or agreed to in writing, software
    10  // distributed under the License is distributed on an "AS IS" BASIS,
    11  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    12  // See the License for the specific language governing permissions and
    13  // limitations under the License.
    14  
    15  package crypto
    16  
    17  const (
    18  	// TestVendorRSAPriv stores a TEST/DEMO key for signing firmware metadata.
    19  	TestVendorRSAPriv = `
    20  -----BEGIN RSA PRIVATE KEY-----
    21  MIIEpQIBAAKCAQEAumH27frnBBnP/sgSbgiGkkxUGflZOJU0AZ+zDlGh4xIsam+8
    22  mSI/DKGodwQ6rDtjpWhLmIAPEusRC0Pw78+zxGZihxNEmuHM4vEQkwBLKAPAX8oo
    23  hE5cZADINwasFloO0hgynqvUJs/qpmp+FnxDQQe/ISsmsFDdQ+8NyuJuX203rMC3
    24  yVE+s7wazBEvdZkOkb38UkuiWcYplrWsjr1eHjNt2P0s1e46uUUTbDDp1YxSM8Jl
    25  fk/62/txofBGGIr7GqiR2g3KoiXz42PW40MpKpdzHwhwWpZ8sPU0p9GQT0rEtZDK
    26  Sr67roVq+YMWFjTE6hPTjvYa+oPEviHJgDh3FwIDAQABAoIBAQCTzUonUJfQXbPe
    27  xMQws9wbuiHbcyw4vcE/JGi3Cy9IxcmpIjC6czjyiGPy9cyddn8/1WRVbAAILZcX
    28  iupPEjPppJOvsCzwce2rbiWJnWr8MXVlwQe+W/HSb/hWApmHJCWqn/vMblDP8oOP
    29  MtYIeMRQlpcP84s7uPSuga07XbLPQo8capaSOrOEYMUjzuTFK42doBSm7BGwLD0/
    30  xyA3sJs5m3tpKEtuwhOTQ+lZNT36bLIzkHgWcvqAVjUP8yoHjtAMiqZOF1M0fmCu
    31  KUGiak1hmlEw/afdl5AFkZIIjRs+uTqjuIeh+EBsHaPZCX7RnlR3hVYmoixGDx2E
    32  u4WvZdExAoGBAOfRPkWhnRFzUUXr3AHqy+ETKEhttVEHdEVy0h+wpTaWCVu/75Ym
    33  C1dgL5cYUiaKZojKHMYGS6R5nNv3XtuqDuPURY6l99VwAgfTXlOHkKHl59aG/vfh
    34  h5EuJkAVM3P38JGRuAc4Ke4wRFxQ7P8eHnoL004nuVl7qqNAa8XIGhrPAoGBAM3T
    35  X6KbPNhR93OQNQ6McK/DDiNCx7h945/gxxByc4EWVbzv47ELfURFkL8Xdj2q3Oa0
    36  jPiMPfcDifglwwOTqmaI3f8OpDgUYCi+/zlOEqbkfvhezfop5zHx1qgI4EkE76C1
    37  1mQUnb7+orT8SgQZArO4UblEdZwzcRWwhUqIg1E5AoGBALbBpJlaryx5wGIibwFn
    38  7THVW5W2QBLQkJ7LxdJL/gQJxvj5WVYDSj+pSfuRpfpSdEF1LbgEcJALfFmCLNt6
    39  t2BwEiJCwB8ZvdATmDK8Fo88ZEkhhlNADxOq0WcGD9lmZ9crjWzLn2rzzIEHH8CF
    40  KzvGpODhumNMdptbh1uWxNXLAoGBAJjQwQann2s0oDaK8PmWR+wXNB317PcLcL85
    41  UlLhxuQmww1+Rl0inKTdyXQ3ZTCv9UbM8oVvCmqllABLeRjkv/VU1Q4TvtVsO2DF
    42  PhU75BlJOQQKz39XMTIhzjAANxW/tnJpz32K2Pv/bqpVTlbwgtMQnIyjSXbpsqJZ
    43  5vzJkkXxAoGAfYGjwrk8eb5+gOpCTAzkXFnbglomHq7eP6uX+rfOEkmsDHPl8u1o
    44  cxj/AZRxN9Xdvc13CuKYQ6m7l23fpLl6fd59/pviYUopLvqhtfCE8khb0UBc2c3/
    45  nJaDjwwm2fmeALKdhqOejIGkKSiVbc0OJbCzPMUt0LohVodSds984rk=
    46  -----END RSA PRIVATE KEY-----`
    47  
    48  	// TestVendorRSAPub stores a TEST/DEMO key for verifying signatures on firmware metadata.
    49  	TestVendorRSAPub = `
    50  -----BEGIN RSA PUBLIC KEY-----
    51  MIIBCgKCAQEAumH27frnBBnP/sgSbgiGkkxUGflZOJU0AZ+zDlGh4xIsam+8mSI/
    52  DKGodwQ6rDtjpWhLmIAPEusRC0Pw78+zxGZihxNEmuHM4vEQkwBLKAPAX8oohE5c
    53  ZADINwasFloO0hgynqvUJs/qpmp+FnxDQQe/ISsmsFDdQ+8NyuJuX203rMC3yVE+
    54  s7wazBEvdZkOkb38UkuiWcYplrWsjr1eHjNt2P0s1e46uUUTbDDp1YxSM8Jlfk/6
    55  2/txofBGGIr7GqiR2g3KoiXz42PW40MpKpdzHwhwWpZ8sPU0p9GQT0rEtZDKSr67
    56  roVq+YMWFjTE6hPTjvYa+oPEviHJgDh3FwIDAQAB
    57  -----END RSA PUBLIC KEY-----`
    58  
    59  	// TestFTPersonalityPriv stores a TEST/DEMO key used to sign the personality checkpoints.
    60  	TestFTPersonalityPriv = "PRIVATE+KEY+ft_personality+e8a242bd+ATWzA37YLiAsXuDHcPJtQRUye7xPhKGIUrZuNznGZDox"
    61  
    62  	// TestFTPersonalityPub is the TEST/DEMO key used to verify signatures on the personality checkpoints.
    63  	TestFTPersonalityPub = "ft_personality+e8a242bd+Aet8wMj2c6gk0hN/Ah7EfkSJWXWRg1JizEjkPnAWYpLY"
    64  
    65  	// TestAnnotationPriv is the TEST/DEMO key used to signed annotations.
    66  	TestAnnotationPriv = `-----BEGIN RSA PRIVATE KEY-----
    67  MIIEogIBAAKCAQEAoGKwBzNMxdPS1Uo+BAykf2C9nuLpLkXBSpINYOiGcJeBpV04
    68  MUw7BrW0ynvwwQL1h+yVWfiRL3xMDQmMkr/EjPEiW4VXji/lVMDClIi4mlMdygiG
    69  hM1Na5PpCAg8+khpFOnSlpC95EdGoU3c+iezTJH0nHH6KUfT6cMZMLNdjI5MtES3
    70  aZET4/iQRkmqv+FXP4M5QmQb1PE7iEGZ6J3IUQKJrpqilz0RZM535Tz89cchD1Mh
    71  cIwi3MO45dbZP1/0lDDYinK/VnklYlKuZjXTC29TWFzStF34YPDA1dFaGZug2/oC
    72  jdMLyQBEZJsEYEwF6jhdp4p7zHOSQ5Xc68xbDQIDAQABAoIBADUsgu/gMjPkZqIQ
    73  Wz88cc1JZZSn5mdQ+SSgB495iBkMIg+ROHAftfIjjC0VqlxTftPxvBJ4Nqpnq08n
    74  O1PsAF46FAoDy2N4va+7uMdGDO4dYGL7MJ4W8vQXtcrT8GOKXkxwuUDx/AMTHnec
    75  OQc24lsgiNjVcPr+tWNrK47Z6MoQXT7CaZpQMaZkYxj8T3g63Anfdjoichv4jByS
    76  /TQzGElqea1IxzUpvGXMf3n6IV4GxlVdDX0rFXLM9vp7k5Av8vBx4YCnTi48u0m0
    77  JbdAzfgeOla8GkWzzgYSkAY0CMhiSNB6eUkbO9qxHH0o0JZKuU8kP1bci/LBhcCL
    78  MyeGSAECgYEAzTrYxne3hUeVxAmXABtbgWtZbmlfE3FKXf+Jy4UOaLa/KZeHAaIK
    79  e32KjYTITfNlNZ+g6nYAy1hI7kJvutnznjY3Nfv9gtRNmK96ej+1SabMD68raDGY
    80  7/YR5mYr7KcI9Am5HFKTzDKBHUry0OB3v5JOPMrr9Le/LZ6pxQzKOT0CgYEAyA/b
    81  0bCylSGX2LW63IuEdyPEv5zIL/7cTsUNdtWbSofBpG3DdT9Fm2AvfnipJRxNIcX+
    82  t5zAqPrWSx23ovhr7GsdPawjn8oNpwO5GyHmpiFiMtMnykEAXtQNuJbPGcpKFWnH
    83  Ydp8pSBVyK0C5vlJWINNHYa0vTEzKW1MwbBVphECgYAu8PzQOGXDmGILGt5s6dT+
    84  Px2PgY57lfgak+5inKZ1EQecbco1d2jKYiakw/BE1B0cLMzTk/YOjLzxskR4Co4M
    85  a/4o3OBZYlH1UH3FJHlExV/7XmehR2bhy/jAKDJ3yKTlnKu4bLLdi9e4aYIsgIsj
    86  SEWY5hkeOkECID5YkdpXSQKBgAuG3mN2itOM2/LghaOvZjJ3HR7tKZuaU5c2Q1BV
    87  fl0M9VtD978JpjkNka73xMcemlMX1VU+8trJmQ865xm8tnsosMac5HCQc7jrvf6S
    88  NXfc9It5HxHILP1JuoCoL8aMoTgaoCJDNGtPMaIeVcx5EIDJD+hjmoZMD2aTpZiD
    89  UGwBAoGAIDPx1CWMWqwLIF66BfbxnYC7iPKWc0oTUKFx45yxjgwegzj5n9VCmJw0
    90  nSEBOasrfQKsWg0gbtgoxxg6awY12czAWRukp5zyoTT+PSGi32gHepCOan4MqJ5w
    91  QeDeXVCJOme4xiBEhnC95flKCsfN9yBMwFy2N7qj0T1DbyKZtSc=
    92  -----END RSA PRIVATE KEY-----`
    93  
    94  	// TestAnnotationPub is the TEST/DEMO key used to verify annotation signatures.
    95  	TestAnnotationPub = `-----BEGIN RSA PUBLIC KEY-----
    96  MIIBCgKCAQEAoGKwBzNMxdPS1Uo+BAykf2C9nuLpLkXBSpINYOiGcJeBpV04MUw7
    97  BrW0ynvwwQL1h+yVWfiRL3xMDQmMkr/EjPEiW4VXji/lVMDClIi4mlMdygiGhM1N
    98  a5PpCAg8+khpFOnSlpC95EdGoU3c+iezTJH0nHH6KUfT6cMZMLNdjI5MtES3aZET
    99  4/iQRkmqv+FXP4M5QmQb1PE7iEGZ6J3IUQKJrpqilz0RZM535Tz89cchD1MhcIwi
   100  3MO45dbZP1/0lDDYinK/VnklYlKuZjXTC29TWFzStF34YPDA1dFaGZug2/oCjdML
   101  yQBEZJsEYEwF6jhdp4p7zHOSQ5Xc68xbDQIDAQAB
   102  -----END RSA PUBLIC KEY-----`
   103  )