001 // Copyright (C) 2002 IAIK
002 // https://jce.iaik.tugraz.at
003 //
004 // Copyright (C) 2003 - 2025 Stiftung Secure Information and
005 // Communication Technologies SIC
006 // https://sic.tech
007 //
008 // All rights reserved.
009 //
010 // Redistribution and use in source and binary forms, with or without
011 // modification, are permitted provided that the following conditions
012 // are met:
013 // 1. Redistributions of source code must retain the above copyright
014 // notice, this list of conditions and the following disclaimer.
015 // 2. Redistributions in binary form must reproduce the above copyright
016 // notice, this list of conditions and the following disclaimer in the
017 // documentation and/or other materials provided with the distribution.
018 //
019 // THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
020 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
021 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
022 // ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
023 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
024 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
025 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
026 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
027 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
028 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
029 // SUCH DAMAGE.
030
031 // Copyright (C) 2002 IAIK
032 // https://sic.tech/
033 //
034 // Copyright (C) 2003 - 2025 Stiftung Secure Information and
035 // Communication Technologies SIC
036 // https://sic.tech/
037 //
038 // All rights reserved.
039 //
040 // This source is provided for inspection purposes and recompilation only,
041 // unless specified differently in a contract with IAIK. This source has to
042 // be kept in strict confidence and must not be disclosed to any third party
043 // under any circumstances. Redistribution in source and binary forms, with
044 // or without modification, are <not> permitted in any case!
045 //
046 // THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
047 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
048 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
049 // ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
050 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
051 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
052 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
053 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
054 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
055 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
056 // SUCH DAMAGE.
057 //
058 // $Header: /IAIK-CMS/current/src/demo/cms/ecc/keystore/CMSEccKeyStoreConstants.java 15 12.02.25 17:58 Dbratko $
059 // $Revision: 15 $
060 //
061
062 package demo.cms.ecc.keystore;
063
064 /**
065 * Some constants for the keystore used by the ECC demos.
066 *
067 * @see demo.cms.ecc.keystore.CMSEccKeyStore
068 * @see demo.cms.ecc.keystore.SetupCMSEccKeyStore
069 */
070 public interface CMSEccKeyStoreConstants {
071 public final static String CA_ECDSA = "CA.ECDSA";
072 public final static String ECDSA_192 = "ECDSA.192";
073 public final static String ECDSA_224 = "ECDSA.224";
074 public final static String ECDSA_256 = "ECDSA.256";
075 public final static String ECDSA_384 = "ECDSA.384";
076 public final static String ECDSA_521 = "ECDSA.521";
077 public final static String ECDH_192_1 = "ECDH_1.192";
078 public final static String ECDH_192_2 = "ECDH_2.192";
079 public final static String ECDH_224_1 = "ECDH_1.224";
080 public final static String ECDH_224_2 = "ECDH_2.224";
081 public final static String ECDH_256_1 = "ECDH_1.256";
082 public final static String ECDH_256_2 = "ECDH_2.256";
083 public final static String ECDH_384_1 = "ECDH_1.384";
084 public final static String ECDH_384_2 = "ECDH_2.384";
085 public final static String ECDH_521_1 = "ECDH_1.521";
086 public final static String ECDH_521_2 = "ECDH_2.521";
087
088 public final static String ECDSA_BRAINPOOL_192 = "ECDSA_BRAINPOOL.192";
089 public final static String ECDSA_BRAINPOOL_224 = "ECDSA_BRAINPOOL.224";
090 public final static String ECDSA_BRAINPOOL_256 = "ECDSA_BRAINPOOL.256";
091 public final static String ECDSA_BRAINPOOL_384 = "ECDSA_BRAINPOOL.384";
092 public final static String ECDSA_BRAINPOOL_512 = "ECDSA_BRAINPOOL.512";
093 public final static String ECDH_BRAINPOOL_192_1 = "ECDH_BRAINPOOL_1.192";
094 public final static String ECDH_BRAINPOOL_192_2 = "ECDH_BRAINPOOL_2.192";
095 public final static String ECDH_BRAINPOOL_224_1 = "ECDH_BRAINPOOL_1.224";
096 public final static String ECDH_BRAINPOOL_224_2 = "ECDH_BRAINPOOL_2.224";
097 public final static String ECDH_BRAINPOOL_256_1 = "ECDH_BRAINPOOL_1.256";
098 public final static String ECDH_BRAINPOOL_256_2 = "ECDH_BRAINPOOL_2.256";
099 public final static String ECDH_BRAINPOOL_384_1 = "ECDH_BRAINPOOL_1.384";
100 public final static String ECDH_BRAINPOOL_384_2 = "ECDH_BRAINPOOL_2.384";
101 public final static String ECDH_BRAINPOOL_512_1 = "ECDH_BRAINPOOL_1.512";
102 public final static String ECDH_BRAINPOOL_512_2 = "ECDH_BRAINPOOL_2.512";
103
104 public final static String EDDSA_ED25519 = "EDDSA.ED25519";
105 public final static String EDDSA_ED448 = "EDDSA.ED448";
106
107 public final static String ECDH_X25519 = "ECDH.X25519";
108 public final static String ECDH_X448 = "ECDH.X448";
109
110 public final static String KS_FILENAME = "cmsecc.keystore";
111 public final static char[] KS_PASSWORD = "topSecret".toCharArray();
112 public final static String KS_DIRECTORY = System.getProperty("user.dir");
113 }
114