SignaturePackets of version 3 and 4.
Version 6 OPS packets are used with SignaturePackets of version 6.
It is not clear to me, which version of the OPS packet is intended to be used with version 5 signatures.
| Modifier and Type | Field and Description |
|---|---|
| private final byte[] | |
| private final int | |
| private final int | |
| private final int | |
| private final long | |
| private final byte[] | |
| private final int | |
| private final int | |
| public static final int | |
| public static final int |
| Access | Constructor and Description |
|---|---|
| pack-priv | OnePassSignaturePacket(BCPGInputStream
OpenPGP packet input stream in)Parse a |
| pack-priv | |
| public | OnePassSignaturePacket(int
signature type sigType, int hash algorithm tag hashAlgorithm, int public key algorithm tag keyAlgorithm, long id of the signing key keyID, boolean if false, there is another OPS packet after this one, which applies to the same data.
it true, the corresponding signature is calculated also over succeeding additional OPS packets. isNested)Create a version 3 |
| public | OnePassSignaturePacket(int
signature type sigType, int hash algorithm tag hashAlgorithm, int public key algorithm tag keyAlgorithm, byte[] random salt. The length of this array depends on the hash algorithm in use. salt, byte[] 32 octet fingerprint of the (v6) signing key fingerprint, boolean if false, there is another OPS packet after this one, which applies to the same data.
it true, the corresponding signature is calculated also over succeeding additional OPS packets. isNested)Create a version 6 |
| Modifier and Type | Method and Description |
|---|---|
| public void | encode(BCPGOutputStream
OpenPGP packet output stream out)Implements abstract org. Encode the contents of this packet into the given packet output stream. |
| public byte[] | |
| public int | |
| public int | Returns: public key algorithm tagReturn the ID of the public key encryption algorithm. |
| public long | |
| public byte[] | |
| public int | |
| public int | |
| public boolean | Returns: true if encapsulating, false otherwiseReturn true, if the signature contains any signatures that follow. |
| fingerprint | back to summary |
|---|---|
| private final byte[] fingerprint | |
| hashAlgorithm | back to summary |
|---|---|
| private final int hashAlgorithm | |
| isContaining | back to summary |
|---|---|
| private final int isContaining | |
| keyAlgorithm | back to summary |
|---|---|
| private final int keyAlgorithm | |
| keyID | back to summary |
|---|---|
| private final long keyID | |
| salt | back to summary |
|---|---|
| private final byte[] salt | |
| sigType | back to summary |
|---|---|
| private final int sigType | |
| version | back to summary |
|---|---|
| private final int version | |
| VERSION_3 | back to summary |
|---|---|
| public static final int VERSION_3 | |
| VERSION_6 | back to summary |
|---|---|
| public static final int VERSION_6 | |
| OnePassSignaturePacket | back to summary |
|---|---|
| pack-priv OnePassSignaturePacket(BCPGInputStream in) throws IOException Parse a
| |
| OnePassSignaturePacket | back to summary |
|---|---|
| pack-priv OnePassSignaturePacket(BCPGInputStream in, boolean newPacketFormat) throws IOException | |
| OnePassSignaturePacket | back to summary |
|---|---|
| public OnePassSignaturePacket(int sigType, int hashAlgorithm, int keyAlgorithm, long keyID, boolean isNested) Create a version 3 signature type
hash algorithm tag
public key algorithm tag
id of the signing key
if false, there is another OPS packet after this one, which applies to the same data.
it true, the corresponding signature is calculated also over succeeding additional OPS packets.
| |
| OnePassSignaturePacket | back to summary |
|---|---|
| public OnePassSignaturePacket(int sigType, int hashAlgorithm, int keyAlgorithm, byte[] salt, byte[] fingerprint, boolean isNested) Create a version 6
| |
| encode | back to summary |
|---|---|
| public void encode(BCPGOutputStream out) throws IOException Implements abstract org. Encode the contents of this packet into the given packet output stream.
| |
| getFingerprint | back to summary |
|---|---|
| public byte[] getFingerprint() Return the version 6 fingerprint of the issuer. Only for version 6 packets.
| |
| getHashAlgorithm | back to summary |
|---|---|
| public int getHashAlgorithm() Return the algorithm ID of the hash algorithm.
| |
| getKeyAlgorithm | back to summary |
|---|---|
| public int getKeyAlgorithm() Return the ID of the public key encryption algorithm.
| |
| getKeyID | back to summary |
|---|---|
| public long getKeyID() Return the key-id of the signing key.
| |
| getSalt | back to summary |
|---|---|
| public byte[] getSalt() Return the salt used in the signature. Only for version 6 packets.
| |
| getSignatureType | back to summary |
|---|---|
| public int getSignatureType() Return the signature type.
| |
| getVersion | back to summary |
|---|---|
| public int getVersion() Return the packet version.
| |
| isContaining | back to summary |
|---|---|
| public boolean isContaining() Return true, if the signature contains any signatures that follow. A bracketing OPS is followed by additional OPS packets and is calculated over all the data between itself and its corresponding signature (it is an attestation for encapsulated signatures).
| |