blob: 05de5a6b468b4bba914a924e82616e95e694e4a9 [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
Gaurav Shah5ab5a372011-02-07 11:12:39 -080013./signature_digest_utility $1 $3 | openssl rsautl -sign -pkcs -inkey $2