uboot/arch/arm/cpu/tegra20-common/crypto.h
<<
>>
Prefs
   1/*
   2 * Copyright (c) 2011 The Chromium OS Authors.
   3 * (C) Copyright 2010 - 2011 NVIDIA Corporation <www.nvidia.com>
   4 *
   5 * See file CREDITS for list of people who contributed to this
   6 * project.
   7 *
   8 * This program is free software; you can redistribute it and/or
   9 * modify it under the terms of the GNU General Public License as
  10 * published by the Free Software Foundation; either version 2 of
  11 * the License, or (at your option) any later version.
  12 *
  13 * This program is distributed in the hope that it will be useful,
  14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  16 * GNU General Public License for more details.
  17 *
  18 * You should have received a copy of the GNU General Public License
  19 * along with this program; if not, write to the Free Software
  20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
  21 * MA 02111-1307 USA
  22 */
  23
  24#ifndef _CRYPTO_H_
  25#define _CRYPTO_H_
  26
  27/**
  28 * Sign a block of data
  29 *
  30 * \param source        Source data
  31 * \param length        Size of source data
  32 * \param signature     Destination address for signature, AES_KEY_LENGTH bytes
  33 */
  34int sign_data_block(u8 *source, unsigned length, u8 *signature);
  35
  36#endif /* #ifndef _CRYPTO_H_ */
  37