Home | History | Annotate | Download | only in include
      1 /* Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
      2  * Use of this source code is governed by a BSD-style license that can be
      3  * found in the LICENSE file.
      4  */
      5 
      6 #ifndef VBOOT_REFERENCE_VERIFY_DATA_H_
      7 #define VBOOT_REFERENCE_VERIFY_DATA_H_
      8 
      9 /* Reads a pre-processed key from [input_file] and
     10  * returns it in a RSAPublicKey structure.
     11  * Caller owns the returned key and must free it.
     12  */
     13 RSAPublicKey* read_RSAkey(char *input_file);
     14 
     15 /* Return a signature of [len] bytes read from [input_file].
     16  * Caller owns the returned signature and must free it.
     17  */
     18 uint8_t* read_signature(char *input_file, int len);
     19 
     20 #endif  /* VBOOT_REFERENCE_VERIFY_DATA_H_ */
     21