| java.lang.Object | |
| ↳ | com.pnfsoftware.jeb.core.units.code.android.APKSigSchemeV2Block |
Known Direct Subclasses
|
This class represents an APK Signature Scheme v2 Block.
Reference: https://source.android.com/security/apksigning/v2
| Nested Classes | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| class | APKSigSchemeV2Block.Attribute | ||||||||||
| class | APKSigSchemeV2Block.Certificate | ||||||||||
| class | APKSigSchemeV2Block.Digest | ||||||||||
| class | APKSigSchemeV2Block.PublicKey | ||||||||||
| class | APKSigSchemeV2Block.Signature | ||||||||||
| class | APKSigSchemeV2Block.Signer | ||||||||||
| Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| int | SigAlgoId_DSA_SHA2_256 | DSA with SHA2-256 digest. | |||||||||
| int | SigAlgoId_ECDSA_SHA2_256 | ECDSA with SHA2-256 digest. | |||||||||
| int | SigAlgoId_ECDSA_SHA2_512 | ECDSA with SHA2-512 digest. | |||||||||
| int | SigAlgoId_RSASSA_PKCS1_v1_5_SHA2_256 | RSASSA-PKCS1-v1_5 with SHA2-256 digest. | |||||||||
| int | SigAlgoId_RSASSA_PKCS1_v1_5_SHA2_512 | RSASSA-PKCS1-v1_5 with SHA2-512 digest. | |||||||||
| int | SigAlgoId_RSASSA_PSS_SHA2_256 | RSASSA-PSS with SHA2-256 digest, SHA2-256 MGF1, 32 bytes of salt, trailer: 0xbc. | |||||||||
| int | SigAlgoId_RSASSA_PSS_SHA2_512 | RSASSA-PSS with SHA2-512 digest, SHA2-512 MGF1, 64 bytes of salt, trailer: 0xbc. | |||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
APKSigSchemeV2Block(ByteBuffer b)
Create and parse a byte buffer containing the raw data of a signature scheme v2 block.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| static String |
algoIdToString(int id)
Convert a signature/digest algorithm id to a human-readable identifier string.
| ||||||||||
| List<APKSigSchemeV2Block.Signer> |
getSigners()
Retrieve the list of
signer blocks. | ||||||||||
| String | toString() | ||||||||||
| Protected Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| void | parse(int available) | ||||||||||
| byte[] | readBytes(int len) | ||||||||||
| int | readInt() | ||||||||||
| int | readSize() | ||||||||||
| void | skipAndWarnIfNonZero(int len) | ||||||||||
| void | skipBytes(int len) | ||||||||||
| void | verifyZero(int len) | ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
DSA with SHA2-256 digest.
ECDSA with SHA2-256 digest.
ECDSA with SHA2-512 digest.
RSASSA-PKCS1-v1_5 with SHA2-256 digest. This is for build systems which require deterministic signatures.
RSASSA-PKCS1-v1_5 with SHA2-512 digest. This is for build systems which require deterministic signatures.
RSASSA-PSS with SHA2-256 digest, SHA2-256 MGF1, 32 bytes of salt, trailer: 0xbc.
RSASSA-PSS with SHA2-512 digest, SHA2-512 MGF1, 64 bytes of salt, trailer: 0xbc.
Create and parse a byte buffer containing the raw data of a signature scheme v2 block.
Convert a signature/digest algorithm id to a human-readable identifier string.
| id | one of SigAlgoId_Xxx. |
|---|