aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstrongswan/credentials/keys/public_key.h
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2008-06-10 09:08:27 +0000
committerTobias Brunner <tobias@strongswan.org>2008-06-10 09:08:27 +0000
commitea0823dffdc7f8ceff27038fc9a98ae833b6d683 (patch)
tree77ae00fbe28df50fb60359cc4f8a4678721e3de9 /src/libstrongswan/credentials/keys/public_key.h
parent2904403e96465af4bb2e16595dbc6c772a725605 (diff)
downloadstrongswan-ea0823dffdc7f8ceff27038fc9a98ae833b6d683.tar.bz2
strongswan-ea0823dffdc7f8ceff27038fc9a98ae833b6d683.tar.xz
ECDSA with OpenSSL
Diffstat (limited to 'src/libstrongswan/credentials/keys/public_key.h')
-rw-r--r--src/libstrongswan/credentials/keys/public_key.h18
1 files changed, 14 insertions, 4 deletions
diff --git a/src/libstrongswan/credentials/keys/public_key.h b/src/libstrongswan/credentials/keys/public_key.h
index 02a4410ff..b96ae9db3 100644
--- a/src/libstrongswan/credentials/keys/public_key.h
+++ b/src/libstrongswan/credentials/keys/public_key.h
@@ -39,7 +39,9 @@ enum key_type_t {
KEY_ANY,
/** RSA crypto system as in PKCS#1 */
KEY_RSA,
- /** DSS, ElGamal, ECDSA, ... */
+ /** ECDSA as in ANSI X9.62 */
+ KEY_ECDSA,
+ /** DSS, ElGamal, ... */
};
/**
@@ -61,11 +63,19 @@ enum signature_scheme_t {
/** EMSA-PKCS1 signature as in PKCS#1 standard using SHA1 as hash. */
SIGN_RSA_EMSA_PKCS1_SHA1,
/** EMSA-PKCS1 signature as in PKCS#1 standard using SHA256 as hash. */
- SIGN_RSA_EMSA_PKCS1_SHA256,
+ SIGN_RSA_EMSA_PKCS1_SHA256,
/** EMSA-PKCS1 signature as in PKCS#1 standard using SHA384 as hash. */
- SIGN_RSA_EMSA_PKCS1_SHA384,
+ SIGN_RSA_EMSA_PKCS1_SHA384,
/** EMSA-PKCS1 signature as in PKCS#1 standard using SHA512 as hash. */
- SIGN_RSA_EMSA_PKCS1_SHA512,
+ SIGN_RSA_EMSA_PKCS1_SHA512,
+ /** ECDSA using SHA-1 as hash. */
+ SIGN_ECDSA_WITH_SHA1,
+ /** ECDSA with SHA-256 on the P-256 curve as in RFC 4754 */
+ SIGN_ECDSA_256,
+ /** ECDSA with SHA-384 on the P-384 curve as in RFC 4754 */
+ SIGN_ECDSA_384,
+ /** ECDSA with SHA-512 on the P-521 curve as in RFC 4754 */
+ SIGN_ECDSA_521,
};
/**