Modifier and Type | Field and Description |
---|---|
private final String | |
private int | |
private long | |
private long | |
private final CK_MECHANISM_INFO | |
private int | |
private boolean | |
private final Token |
Access | Constructor and Description |
---|---|
pack-priv |
Modifier and Type | Method and Description |
---|---|
private static int | |
pack-priv static int | Returns: the significant key size (in bits) corresponding to the specified key size.the PKCS#11 key generation mechanism. keyGenMech, int the to-be-checked key size for this mechanism. keySize, Token token which provides this mechanism. token)Utility method for checking if the specified key size is valid and within the supported range. |
private static int | |
protected SecretKey | engineGenerateKey()
Implements abstract javax. Generates a secret key. |
protected void | engineInit(SecureRandom
the source of randomness for this generator random)Implements abstract javax. Initializes the key generator. |
protected void | engineInit(AlgorithmParameterSpec
the key generation parameters params, SecureRandom the source of randomness for this key generator random)Implements abstract javax. Initializes the key generator with the specified parameter set and a user-provided source of randomness. |
protected void | engineInit(int
the keysize. This is an algorithm-specific metric,
specified in number of bits. keySize, SecureRandom the source of randomness for this key generator random)Implements abstract javax. Initializes this key generator for a certain keysize, using the given source of randomness. |
private static CK_MECHANISM_INFO | |
private void |
algorithm | back to summary |
---|---|
private final String algorithm |
keySize | back to summary |
---|---|
private int keySize |
keyType | back to summary |
---|---|
private long keyType |
mechanism | back to summary |
---|---|
private long mechanism |
range | back to summary |
---|---|
private final CK_MECHANISM_INFO range |
significantKeySize | back to summary |
---|---|
private int significantKeySize |
supportBothKeySizes | back to summary |
---|---|
private boolean supportBothKeySizes |
token | back to summary |
---|---|
private final Token token |
P11KeyGenerator | back to summary |
---|---|
pack-priv P11KeyGenerator(Token token, String algorithm, long mechanism) throws PKCS11Exception |
adjustKeySize | back to summary |
---|---|
private static int adjustKeySize(int ks, CK_MECHANISM_INFO mi) |
checkKeySize | back to summary |
---|---|
pack-priv static int checkKeySize(long keyGenMech, int keySize, Token token) throws InvalidAlgorithmParameterException, ProviderException Utility method for checking if the specified key size is valid and within the supported range. Return the significant key size upon successful validation.
|
checkKeySize | back to summary |
---|---|
private static int checkKeySize(long keyGenMech, int keySize, CK_MECHANISM_INFO range) throws InvalidAlgorithmParameterException |
engineGenerateKey | back to summary |
---|---|
protected SecretKey engineGenerateKey() Implements abstract javax. Doc from javax. Generates a secret key.
|
engineInit | back to summary |
---|---|
protected void engineInit(SecureRandom random) Implements abstract javax. Doc from javax. Initializes the key generator.
|
engineInit | back to summary |
---|---|
protected void engineInit(AlgorithmParameterSpec params, SecureRandom random) throws InvalidAlgorithmParameterException Implements abstract javax. Doc from javax. Initializes the key generator with the specified parameter set and a user-provided source of randomness.
|
engineInit | back to summary |
---|---|
protected void engineInit(int keySize, SecureRandom random) Implements abstract javax. Doc from javax. Initializes this key generator for a certain keysize, using the given source of randomness.
|
getSupportedRange | back to summary |
---|---|
private static CK_MECHANISM_INFO getSupportedRange(Token token, long mech) throws ProviderException |
setDefault | back to summary |
---|---|
private void setDefault() |