blob: bd9e1be2455201b1e4fa4b3de9bd7bcdbbf3bfc4 [file] [log] [blame]
Gaurav Shah1f81a6f2010-02-06 14:34:31 -08001#!/bin/bash
2
3# Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
4# Use of this source code is governed by a BSD-style license that can be
5# found in the LICENSE file.
6
7if [ $# -ne 3 ]
8then
9 echo "Usage: `basename $0` <algorithm> <key file> <input file>"
10 exit -1
11fi
12
13./signature_digest $1 $3 | openssl rsautl -sign -pkcs -inkey $2