structs.go 1009 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. package apksigner
  2. // Apksigner represents apksigner util
  3. type Apksigner struct {
  4. binPath string
  5. }
  6. // SignerDN is signer for applications
  7. type SignerDN struct {
  8. SignerName string //CN
  9. KeyPath string
  10. CertPath string
  11. }
  12. // VerifyInfo is result of apk verify
  13. type VerifyInfo struct {
  14. V1 bool //Has v1 sign
  15. V2 bool //Has v2 sign
  16. V3 bool //Has v3 sign
  17. V3_1 bool //Has v3.1 sign
  18. V4 bool //Has v4 sign
  19. SignInfo []SignatureInfo //Array with all signatures
  20. NotProtected []string //Array with files what not protected by v1 sign
  21. }
  22. // SignatureInfo is information about signature. Single apk can have more than one signature
  23. type SignatureInfo struct {
  24. MinSdk int
  25. MaxSdk int
  26. CertDN map[string]string
  27. CertSHA256 string
  28. CertSHA1 string
  29. CertMD5 string
  30. KeyAlgorithm string
  31. KeySize int
  32. PubKeySHA256 string
  33. PubKeySHA1 string
  34. PubKeyMD5 string
  35. }