Modifier and Type | Field and Description |
---|---|
private final String | |
private final byte[] | |
private int | |
private final ObjectIdentifier | |
private boolean | |
private final String | |
private static final int | |
private static final int | |
private final MessageDigest | |
private final long | |
private int | |
private static final JavaNioAccess | |
private P11Key | |
private boolean | |
private static final int | |
private Session | |
private int | |
private static final int | |
private static final int | |
private static final int | |
private final Token | |
private final int |
Access | Constructor and Description |
---|---|
pack-priv |
Modifier and Type | Method and Description |
---|---|
private static byte[] | |
private static byte[] | |
private void | |
private void | |
private void | |
private static byte[] | |
private byte[] | |
protected Object | engineGetParameter(String
the string name of the parameter. param)Implements abstract java. Gets the value of the specified algorithm parameter. |
protected AlgorithmParameters | engineGetParameters()
Overrides java. Returns the parameters used with this |
protected void | engineInitSign(PrivateKey
the private key of the identity whose signature
will be generated. privateKey)Implements abstract java. Initializes this |
protected void | engineInitVerify(PublicKey
the public key of the identity whose signature is
going to be verified. publicKey)Implements abstract java. Initializes this |
protected void | engineSetParameter(String
the string identifier of the parameter. param, Object the parameter value. value)Implements abstract java. Sets the specified algorithm parameter to the specified value. |
protected void | engineSetParameter(AlgorithmParameterSpec
the parameters params)Overrides java. Initializes this |
protected byte[] | engineSign()
Implements abstract java. Returns the signature bytes of all the data updated so far. |
protected void | engineUpdate(byte
the byte to use for the update. b)Implements abstract java. Updates the data to be signed or verified using the specified byte. |
protected void | engineUpdate(byte[]
the array of bytes b, int the offset to start from in the array of bytes ofs, int the number of bytes to use, starting at offset len)Implements abstract java. Updates the data to be signed or verified, using the specified array of bytes, starting at the specified offset. |
protected void | engineUpdate(ByteBuffer
the ByteBuffer byteBuffer)Overrides java. Updates the data to be signed or verified using the specified ByteBuffer. |
protected boolean | engineVerify(byte[]
the signature bytes to be verified. signature)Implements abstract java. Verifies the passed-in signature. |
private void | |
private static KnownOIDs | |
private void | |
private byte[] | |
private void | |
private static byte[] |
algorithm | back to summary |
---|---|
private final String algorithm |
buffer | back to summary |
---|---|
private final byte[] buffer |
bytesProcessed | back to summary |
---|---|
private int bytesProcessed |
digestOID | back to summary |
---|---|
private final ObjectIdentifier digestOID |
initialized | back to summary |
---|---|
private boolean initialized |
keyAlgorithm | back to summary |
---|---|
private final String keyAlgorithm |
M_SIGN | back to summary |
---|---|
private static final int M_SIGN |
M_VERIFY | back to summary |
---|---|
private static final int M_VERIFY |
md | back to summary |
---|---|
private final MessageDigest md |
mechanism | back to summary |
---|---|
private final long mechanism |
mode | back to summary |
---|---|
private int mode |
NIO_ACCESS | back to summary |
---|---|
private static final JavaNioAccess NIO_ACCESS |
p11Key | back to summary |
---|---|
private P11Key p11Key |
p1363Format | back to summary |
---|---|
private boolean p1363Format |
RAW_ECDSA_MAX | back to summary |
---|---|
private static final int RAW_ECDSA_MAX |
session | back to summary |
---|---|
private Session session |
sigLen | back to summary |
---|---|
private int sigLen |
T_DIGEST | back to summary |
---|---|
private static final int T_DIGEST |
T_RAW | back to summary |
---|---|
private static final int T_RAW |
T_UPDATE | back to summary |
---|---|
private static final int T_UPDATE |
token | back to summary |
---|---|
private final Token token |
type | back to summary |
---|---|
private final int type |
P11Signature | back to summary |
---|---|
pack-priv P11Signature(Token token, String algorithm, long mechanism) throws NoSuchAlgorithmException, PKCS11Exception |
asn1ToDSA | back to summary |
---|---|
private static byte[] asn1ToDSA(byte[] sig, int sigLen) throws SignatureException |
asn1ToECDSA | back to summary |
---|---|
private static byte[] asn1ToECDSA(byte[] sig) throws SignatureException |
cancelOperation | back to summary |
---|---|
private void cancelOperation() |
checkKeySize | back to summary |
---|---|
private void checkKeySize(String keyAlgo, Key key) throws InvalidKeyException |
checkRSAKeyLength | back to summary |
---|---|
private void checkRSAKeyLength(int len) throws InvalidKeyException |
dsaToASN1 | back to summary |
---|---|
private static byte[] dsaToASN1(byte[] signature) |
encodeSignature | back to summary |
---|---|
private byte[] encodeSignature(byte[] digest) throws SignatureException |
engineGetParameter | back to summary |
---|---|
protected Object engineGetParameter(String param) throws InvalidParameterException Implements abstract java. Doc from java. Gets the value of the specified algorithm parameter. This method supplies a general-purpose mechanism through which it is possible to get the various parameters of this object. A parameter may be any settable parameter for the algorithm, such as a parameter size, or a source of random bits for signature generation (if appropriate), or an indication of whether to perform a specific but optional computation. A uniform algorithm-specific naming scheme for each parameter is desirable but left unspecified at this time.
|
engineGetParameters | back to summary |
---|---|
protected AlgorithmParameters engineGetParameters() Overrides java. Doc from java. Returns the parameters used with this The returned parameters may be the same that were used to initialize
this However, if the signature scheme does not support returning
the parameters as
|
engineInitSign | back to summary |
---|---|
protected void engineInitSign(PrivateKey privateKey) throws InvalidKeyException Implements abstract java. Doc from java. Initializes this
|
engineInitVerify | back to summary |
---|---|
protected void engineInitVerify(PublicKey publicKey) throws InvalidKeyException Implements abstract java. Doc from java. Initializes this
|
engineSetParameter | back to summary |
---|---|
protected void engineSetParameter(String param, Object value) throws InvalidParameterException Implements abstract java. Doc from java. Sets the specified algorithm parameter to the specified value. This method supplies a general-purpose mechanism through which it is possible to set the various parameters of this object. A parameter may be any settable parameter for the algorithm, such as a parameter size, or a source of random bits for signature generation (if appropriate), or an indication of whether to perform a specific but optional computation. A uniform algorithm-specific naming scheme for each parameter is desirable but left unspecified at this time.
|
engineSetParameter | back to summary |
---|---|
protected void engineSetParameter(AlgorithmParameterSpec params) throws InvalidAlgorithmParameterException Overrides java. Doc from java. Initializes this
|
engineSign | back to summary |
---|---|
protected byte[] engineSign() throws SignatureException Implements abstract java. Doc from java. Returns the signature bytes of all the data updated so far. The format of the signature depends on the underlying signature scheme.
|
engineUpdate | back to summary |
---|---|
protected void engineUpdate(byte b) throws SignatureException Implements abstract java. Doc from java. Updates the data to be signed or verified using the specified byte.
|
engineUpdate | back to summary |
---|---|
protected void engineUpdate(byte[] b, int ofs, int len) throws SignatureException Implements abstract java. Doc from java. Updates the data to be signed or verified, using the specified array of bytes, starting at the specified offset.
|
engineUpdate | back to summary |
---|---|
protected void engineUpdate(ByteBuffer byteBuffer) Overrides java. Doc from java. Updates the data to be signed or verified using the specified
ByteBuffer. Processes the
|
engineVerify | back to summary |
---|---|
protected boolean engineVerify(byte[] signature) throws SignatureException Implements abstract java. Doc from java. Verifies the passed-in signature.
|
ensureInitialized | back to summary |
---|---|
private void ensureInitialized() |
getDigestEnum | back to summary |
---|---|
private static KnownOIDs getDigestEnum(String algorithm) throws NoSuchAlgorithmException |
initialize | back to summary |
---|---|
private void initialize() |
pkcs1Pad | back to summary |
---|---|
private byte[] pkcs1Pad(byte[] data) |
reset | back to summary |
---|---|
private void reset(boolean doCancel) |
toByteArray | back to summary |
---|---|
private static byte[] toByteArray(BigInteger bi, int len) |