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