|
CXI
|
Modules | |
| Find Modes | |
Functions | |
| KeyComponents () | |
| Creates an empty key component list. | |
| KeyComponents (byte[] value) | |
| Creates a KeyComponents object from the given input data. More... | |
| void | add (byte[] tag, byte[] value) |
| Adds a key component to the component list. More... | |
| void | add (byte[] tag, BigInteger value) |
| Adds a key component to the component list. More... | |
| byte[] | getList () |
| Returns the serialized key component list. | |
| byte[] | getItem (byte[] tag) throws CryptoServerException |
| Returns a specified key component. More... | |
| void | setOAEP (int md_algo, int mgf_algo, byte[] label) |
| Constructs a mechanism parameter for RSA encryption / decryption with PKCS#1_v2.1 RSAES-OAEP padding. More... | |
| void | setPSS (int md_algo, int mgf_algo, int salt_len) |
| Constructs a mechanism parameter for RSA signature creation / verification with PKCS#1_v2.1 RSASSA-PSS padding. More... | |
| void | setECIES (int hash_algo, int crypt_algo, int crypt_mech, int crypt_len, int mac_algo, int mac_mech, int mac_len, byte[] secret1, byte[] secret2) |
| Constructs a mechanism parameter for 'Elliptic Curve (Augmented) Encryption Scheme' (ECIES, see ANSI X9.63). More... | |
| void | setGCM (byte[] iv_init, byte[] ad, int tag_bits) |
| Constructs a mechanism parameter for AES encryption / decryption with 'Galois Counter Mode' chaining (GCM, see NIST SP-800-38D). More... | |
| void | setCCM (byte[] nonce, byte[] ad, int dataLen, int macLen) |
| Constructs a mechanism parameter for AES encryption / decryption in mode Counter with CBC-MAC (CCM, see NIST SP-800-38C). More... | |
| void | setGMAC (byte[] iv_init) |
| Constructs a mechanism parameter for AES MAC creation / verification with 'Galois Counter MAC' chaining (GMAC, see NIST SP-800-38D). More... | |
| byte[] | getEncoded () |
| Returns the encoded mechanism parameter. | |
| MechParamOAEP (int md_algo, int mgf_algo, byte[] label) | |
| Constructs a mechanism parameter for PKCS#1_v2.1 RSAES-OAEP. More... | |
| byte[] | getEncoded () |
| Returns the encoded mechanism parameter. | |
| MechParamPSS (int md_algo, int mgf_algo, int salt_len) | |
| Constructs a mechanism parameter for PKCS#1_v2.1 RSASSA-PSS. More... | |
| byte[] | getEncoded () |
| Returns the encoded mechanism parameter. | |
| MechParamECIES (int hash_algo, int crypt_algo, int crypt_mech, int crypt_len, int mac_algo, int mac_mech, int mac_len, byte[] secret1, byte[] secret2) | |
| Constructs a mechanism parameter for 'Elliptic Curve (Augmented) Encryption Scheme' (ECIES, see ANSI X9.63). More... | |
| byte[] | getEncoded () |
| Returns the encoded mechanism parameter. | |
| MechParamGCM (byte[] iv_init, byte[] ad, int tag_bits) | |
| Constructs a mechanism parameter for AES GCM (Galois Counter Mode, see NIST SP-800-38D). More... | |
| byte[] | getEncoded () |
| Returns the encoded mechanism parameter. | |
| MechParamGMAC (byte[] iv_init) | |
| Constructs a mechanism parameter for AES GMAC (Galois Counter MAC, see NIST SP-800-38D). More... | |
| byte[] | getEncoded () |
| Returns the encoded mechanism parameter. | |
| MechParamCCM (byte[] nonce, byte[] ad, int dataLen, int macLen) | |
| Constructs a mechanism parameter for AES CCM (Galois Counter Mode, see NIST SP-800-38D). More... | |
| byte[] | getEncoded () |
| Returns the encoded mechanism parameter. | |
| ECPublicKey (java.security.spec.ECPublicKeySpec ecPublicKeySpec) | |
| Creates an ECPublicKey object from the given key specifier. More... | |
| ECParameterSpec | getParams () |
| Returns the domain parameters of the EC key. More... | |
| ECPoint | getW () |
| Returns public part of the EC key. More... | |
| byte[] | getEncoded () throws CryptoServerException |
| Returns the EC key in its encoded form (x and y coordinates). More... | |
| ECParameter (ECParameterSpec ecp) throws CryptoServerException | |
| Creates an ECParameter object from the given domain parameter specification. More... | |
| ECParameter (byte[] ecp) throws CryptoServerException | |
| Creates an ECParameter object from the given input data in ASN1 encoded form. More... | |
| ECParameterSpec | getSpec () |
| Returns the domain parameter specification. | |
| byte[] | getEncoded () throws CryptoServerException |
| Returns the domain parameter in ASN1 encoded form. More... | |
| static byte[] | getEncoded (Object obj, String name) throws IOException |
| Returns a build in domain parameter in ASN1 encoded form. More... | |
Variables | |
| static final byte[] | TYPE_P = { (byte)'P', (byte)' ' } |
| RSA: Prime P. | |
| static final byte[] | TYPE_Q = { (byte)'Q', (byte)' ' } |
| RSA: Prime Q. | |
| static final byte[] | TYPE_DP = { (byte)'D', (byte)'P' } |
| RSA: dP := D mod P-1. | |
| static final byte[] | TYPE_DQ = { (byte)'D', (byte)'Q' } |
| RSA: dQ := D mod Q-1. | |
| static final byte[] | TYPE_U = { (byte)'U', (byte)' ' } |
| RSA: Coefficient U := Q^-1 mod P-1. | |
| static final byte[] | TYPE_SEXP = { (byte)'S', (byte)'E' } |
| RSA: Private (Secret) Exponent. | |
| static final byte[] | TYPE_PEXP = { (byte)'P', (byte)'E' } |
| RSA: Public Exponent. | |
| static final byte[] | TYPE_MOD = { (byte)'M', (byte)'O' } |
| RSA: Modulus. | |
| static final byte[] | TYPE_SK = { (byte)'S', (byte)'K' } |
| DSA,ECDSA: Private (Secret) Key. | |
| static final byte[] | TYPE_PK = { (byte)'P', (byte)'K' } |
| DSA,ECDSA: Public Key. | |
| KeyAttributes | keyAttributes |
| key attributes | |
| KeyComponents | keyComponents |
| key components | |
| KeyComponents | ( | byte[] | value | ) |
Creates a KeyComponents object from the given input data.
| value | Serialized key components. |
| void add | ( | byte[] | tag, |
| byte[] | value | ||
| ) |
Adds a key component to the component list.
| tag | Component type (see Key Components). |
| value | Component value. |
| void add | ( | byte[] | tag, |
| BigInteger | value | ||
| ) |
Adds a key component to the component list.
| tag | Component type (see Key Components). |
| value | Component value. |
| byte[] getItem | ( | byte[] | tag | ) | throws CryptoServerException |
Returns a specified key component.
| tag | Component type (see Key Components). |
| CryptoServerException | if the component list doesn't contain the desired component. |
| void setOAEP | ( | int | md_algo, |
| int | mgf_algo, | ||
| byte[] | label | ||
| ) |
Constructs a mechanism parameter for RSA encryption / decryption with PKCS#1_v2.1 RSAES-OAEP padding.
| md_algo | Hash algorithm used to hash the label parameter (see Hash Algorithms). |
| mgf_algo | Hash algorithm to be used for the underlying mask generation function (MGF) (see Hash Algorithms). |
| label | Label string to be used. |
| void setPSS | ( | int | md_algo, |
| int | mgf_algo, | ||
| int | salt_len | ||
| ) |
Constructs a mechanism parameter for RSA signature creation / verification with PKCS#1_v2.1 RSASSA-PSS padding.
| md_algo | Hash algorithm used to hash interim results (see Hash Algorithms). |
| mgf_algo | Hash algorithm to be used for the underlying mask generation function (MGF) (see Hash Algorithms). |
| salt_len | Length of the random salt value to be generated. |
| void setECIES | ( | int | hash_algo, |
| int | crypt_algo, | ||
| int | crypt_mech, | ||
| int | crypt_len, | ||
| int | mac_algo, | ||
| int | mac_mech, | ||
| int | mac_len, | ||
| byte[] | secret1, | ||
| byte[] | secret2 | ||
| ) |
Constructs a mechanism parameter for 'Elliptic Curve (Augmented) Encryption Scheme' (ECIES, see ANSI X9.63).
| hash_algo | hash_algo hash algorithm,see Hash Algorithms |
| crypt_algo | algorithm:
|
| crypt_mech | mechanism:
|
| crypt_len | AES key size (128,192 or 256) or zero on raw mode |
| mac_algo | algorithm: |
| mac_mech | mechanism:
|
| mac_len | AES key size (128,192 or 256) or zero on HMAC optional: mac size in byte for truncated macs when using CryptoServerCXI.MECH_MODE_MAC1. |
| secret1 | secret value #1 or null |
| secret2 | secret value #2 or null |
| void setGCM | ( | byte[] | iv_init, |
| byte[] | ad, | ||
| int | tag_bits | ||
| ) |
Constructs a mechanism parameter for AES encryption / decryption with 'Galois Counter Mode' chaining (GCM, see NIST SP-800-38D).
| iv_init | Initialization Vector:
|
| ad | Additional Authentication Data:
|
| tag_bits | Desired length of authentication tag in bits.
|
| void setCCM | ( | byte[] | nonce, |
| byte[] | ad, | ||
| int | dataLen, | ||
| int | macLen | ||
| ) |
Constructs a mechanism parameter for AES encryption / decryption in mode Counter with CBC-MAC (CCM, see NIST SP-800-38C).
| nonce | Nonce:
|
| ad | Additional Authentication Data:
|
| dataLen | Total data length:
|
| macLen | Desired length of MAC in bytes
|
| void setGMAC | ( | byte[] | iv_init | ) |
Constructs a mechanism parameter for AES MAC creation / verification with 'Galois Counter MAC' chaining (GMAC, see NIST SP-800-38D).
| iv_init | Initialization Vector:
|
| MechParamOAEP | ( | int | md_algo, |
| int | mgf_algo, | ||
| byte[] | label | ||
| ) |
Constructs a mechanism parameter for PKCS#1_v2.1 RSAES-OAEP.
| md_algo | Hash algorithm used to hash the label parameter (see Hash Algorithms). |
| mgf_algo | Hash algorithm to be used for the underlying mask generation function (MGF) (see Hash Algorithms). |
| label | Label string to be used. |
| MechParamPSS | ( | int | md_algo, |
| int | mgf_algo, | ||
| int | salt_len | ||
| ) |
Constructs a mechanism parameter for PKCS#1_v2.1 RSASSA-PSS.
| md_algo | Hash algorithm used to hash interim results (see Hash Algorithms). |
| mgf_algo | Hash algorithm to be used for the underlying mask generation function (MGF) (see Hash Algorithms). |
| salt_len | Length of the random salt value to be generated. |
| MechParamECIES | ( | int | hash_algo, |
| int | crypt_algo, | ||
| int | crypt_mech, | ||
| int | crypt_len, | ||
| int | mac_algo, | ||
| int | mac_mech, | ||
| int | mac_len, | ||
| byte[] | secret1, | ||
| byte[] | secret2 | ||
| ) |
Constructs a mechanism parameter for 'Elliptic Curve (Augmented) Encryption Scheme' (ECIES, see ANSI X9.63).
| hash_algo | hash_algo hash algorithm,see Hash Algorithms |
| crypt_algo | algorithm:
|
| crypt_mech | mechanism:
|
| crypt_len | AES key size (128,192 or 256) or zero on raw mode |
| mac_algo | algorithm: |
| mac_mech | mechanism:
|
| mac_len | AES key size (128,192 or 256) or zero on HMAC optional: mac size in byte for truncated macs when using CryptoServerCXI.MECH_MODE_MAC1. |
| secret1 | secret value #1 or null |
| secret2 | secret value #2 or null |
| MechParamGCM | ( | byte[] | iv_init, |
| byte[] | ad, | ||
| int | tag_bits | ||
| ) |
Constructs a mechanism parameter for AES GCM (Galois Counter Mode, see NIST SP-800-38D).
| iv_init | Initialization Vector:
|
| ad | Additional authentication data:
|
| tag_bits | Desired length of authentication tag in bits.
|
| MechParamGMAC | ( | byte[] | iv_init | ) |
Constructs a mechanism parameter for AES GMAC (Galois Counter MAC, see NIST SP-800-38D).
| iv_init | Initialization Vector:
|
| MechParamCCM | ( | byte[] | nonce, |
| byte[] | ad, | ||
| int | dataLen, | ||
| int | macLen | ||
| ) |
Constructs a mechanism parameter for AES CCM (Galois Counter Mode, see NIST SP-800-38D).
| nonce | Nonce:
|
| ad | Additional Authentication Data:
|
| dataLen | Total data length:
|
| macLen | Desired length of MAC in bytes
|
| ECPublicKey | ( | java.security.spec.ECPublicKeySpec | ecPublicKeySpec | ) |
Creates an ECPublicKey object from the given key specifier.
| ecPublicKeySpec | Key material |
| ECParameterSpec getParams | ( | ) |
Returns the domain parameters of the EC key.
| ECPoint getW | ( | ) |
Returns public part of the EC key.
| byte[] getEncoded | ( | ) | throws CryptoServerException |
Returns the EC key in its encoded form (x and y coordinates).
| ECParameter | ( | ECParameterSpec | ecp | ) | throws CryptoServerException |
Creates an ECParameter object from the given domain parameter specification.
| ecp | Domain parameter specification |
| ECParameter | ( | byte[] | ecp | ) | throws CryptoServerException |
Creates an ECParameter object from the given input data in ASN1 encoded form.
| ecp | ASN1 encoded domain parameter structure. |
| byte[] getEncoded | ( | ) | throws CryptoServerException |
Returns the domain parameter in ASN1 encoded form.
|
static |
Returns a build in domain parameter in ASN1 encoded form.
| obj | Reference to class object that contains the EC curve resources. |
| name | Name of the build in curve to be returned (e.g. "NIST-P256"). |