...

Source file src/github.com/google/certificate-transparency-go/trillian/testdata/keys.go

Documentation: github.com/google/certificate-transparency-go/trillian/testdata

     1  // Copyright 2016 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 testdata holds files, data and code for testing.
    16  // KEYS IN THIS FILE ARE ONLY FOR TESTING. They must not be used by production code.
    17  package testdata
    18  
    19  // DemoPrivateKeyPass is the password for DemoPrivateKey
    20  const DemoPrivateKeyPass string = "towel"
    21  
    22  // DemoPrivateKey is the private key itself; must only be used for testing purposes
    23  const DemoPrivateKey string = `
    24  -----BEGIN EC PRIVATE KEY-----
    25  Proc-Type: 4,ENCRYPTED
    26  DEK-Info: DES-CBC,B71ECAB011EB4E8F
    27  
    28  +6cz455aVRHFX5UsxplyGvFXMcmuMH0My/nOWNmYCL+bX2PnHdsv3dRgpgPRHTWt
    29  IPI6kVHv0g2uV5zW8nRqacmikBFA40CIKp0SjRmi1CtfchzuqXQ3q40rFwCjeuiz
    30  t48+aoeFsfU6NnL5sP8mbFlPze+o7lovgAWEqHEcebU=
    31  -----END EC PRIVATE KEY-----`
    32  
    33  // DemoPublicKey is the public key that corresponds to DemoPrivateKey.
    34  const DemoPublicKey string = `
    35  -----BEGIN PUBLIC KEY-----
    36  MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEsAVg3YB0tOFf3DdC2YHPL2WiuCNR
    37  1iywqGjjtu2dAdWktWqgRO4NTqPJXUggSQL3nvOupHB4WZFZ4j3QhtmWRg==
    38  -----END PUBLIC KEY-----`
    39  

View as plain text