summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2005-05-28 20:15:48 +0000
committerDr. Stephen Henson <steve@openssl.org>2005-05-28 20:15:48 +0000
commite4c2c550b9c8865d9023dd330bddbc2038707a9f (patch)
treeef32cd6fd58e57d9adfbdd80e9c2e78fd09ebdce /apps
parent570357b7a8c264f8b6388618981737138766e8f1 (diff)
Add X9.31 signature support, mainly for FIPS140. Add new option to rsautl and
include options to use X9.31 in tests.
Diffstat (limited to 'apps')
-rw-r--r--apps/rsautl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/rsautl.c b/apps/rsautl.c
index 5db6fe7cd7..bdfbe31c14 100644
--- a/apps/rsautl.c
+++ b/apps/rsautl.c
@@ -3,7 +3,7 @@
* project 2000.
*/
/* ====================================================================
- * Copyright (c) 2000 The OpenSSL Project. All rights reserved.
+ * Copyright (c) 2000-2005 The OpenSSL Project. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -147,6 +147,7 @@ int MAIN(int argc, char **argv)
else if(!strcmp(*argv, "-oaep")) pad = RSA_PKCS1_OAEP_PADDING;
else if(!strcmp(*argv, "-ssl")) pad = RSA_SSLV23_PADDING;
else if(!strcmp(*argv, "-pkcs")) pad = RSA_PKCS1_PADDING;
+ else if(!strcmp(*argv, "-x931")) pad = RSA_X931_PADDING;
else if(!strcmp(*argv, "-sign")) {
rsa_mode = RSA_SIGN;
need_priv = 1;