Gaurav Shah | 1f81a6f | 2010-02-06 14:34:31 -0800 | [diff] [blame] | 1 | #!/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 | |||||
7 | if [ $# -ne 3 ] | ||||
8 | then | ||||
9 | echo "Usage: `basename $0` <algorithm> <key file> <input file>" | ||||
10 | exit -1 | ||||
11 | fi | ||||
12 | |||||
Gaurav Shah | 5ab5a37 | 2011-02-07 11:12:39 -0800 | [diff] [blame] | 13 | ./signature_digest_utility $1 $3 | openssl rsautl -sign -pkcs -inkey $2 |