Documentation ¶
Index ¶
- Constants
- func DecryptContents(path string, progressReporter ProgressReporter, deleteEncryptedContents bool) error
- func DownloadTitle(titleID, outputDirectory string, doDecryption bool, ...) error
- func GenerateCert(tmd *TMD, outputPath string, progressReporter ProgressReporter, ...) error
- func GenerateKey(tid string) ([]byte, error)
- func GenerateTicket(path string, titleID uint64, titleKey []byte, titleVersion uint16) error
- func GetCategoryFromFormattedCategory(formattedCategory string) uint8
- func GetFormattedKind(titleID uint64) string
- func GetFormattedRegion(region uint8) string
- func PKCS7Padding(data []byte, blockSize int) []byte
- type Content
- type FEntry
- type FSTData
- type ProgressReporter
- type TMD
- type WriterProgress
Constants ¶
View Source
const ( BLOCK_SIZE = 0x8000 BLOCK_SIZE_HASHED = 0x10000 HASH_BLOCK_SIZE = 0xFC00 HASHES_SIZE = 0x0400 MAX_LEVELS = 0x10 )
View Source
const ( MCP_REGION_JAPAN = 0x01 MCP_REGION_USA = 0x02 MCP_REGION_EUROPE = 0x04 MCP_REGION_CHINA = 0x10 MCP_REGION_KOREA = 0x20 MCP_REGION_TAIWAN = 0x40 )
View Source
const ( TITLE_KEY_mypass = iota TITLE_KEY_nintendo TITLE_KEY_test TITLE_KEY_1234567890 TITLE_KEY_Lucy131211 TITLE_KEY_fbf10 TITLE_KEY_5678 TITLE_KEY_1234 TITLE_KEY_ TITLE_KEY_MAGIC )
View Source
const ( TITLE_CATEGORY_GAME = iota TITLE_CATEGORY_UPDATE TITLE_CATEGORY_DLC TITLE_CATEGORY_DEMO TITLE_CATEGORY_ALL TITLE_CATEGORY_DISC )
View Source
const ( TID_HIGH_GAME = 0x00050000 TID_HIGH_DEMO = 0x00050002 TID_HIGH_SYSTEM_APP = 0x00050010 TID_HIGH_SYSTEM_DATA = 0x0005001B TID_HIGH_SYSTEM_APPLET = 0x00050030 TID_HIGH_VWII_IOS = 0x00000007 TID_HIGH_VWII_SYSTEM_APP = 0x00070002 TID_HIGH_VWII_SYSTEM = 0x00070008 TID_HIGH_DLC = 0x0005000C TID_HIGH_UPDATE = 0x0005000E )
View Source
const ( TMD_VERSION_WII = 0x00 TMD_VERSION_WIIU = 0x01 )
View Source
const (
KEYGEN_SECRET = "fd040105060b111c2d49"
)
View Source
const READ_SIZE = 8 * 1024 * 1024
Variables ¶
This section is empty.
Functions ¶
func DecryptContents ¶
func DecryptContents(path string, progressReporter ProgressReporter, deleteEncryptedContents bool) error
func DownloadTitle ¶
func GenerateCert ¶
func GenerateKey ¶
func GenerateTicket ¶
func GetFormattedKind ¶
func GetFormattedRegion ¶
func PKCS7Padding ¶
Types ¶
type ProgressReporter ¶
type ProgressReporter interface { SetGameTitle(title string) UpdateDownloadProgress(downloaded int64, filename string) UpdateDecryptionProgress(progress float64) Cancelled() bool SetCancelled() SetDownloadSize(size int64) ResetTotals() MarkFileAsDone(filename string) SetTotalDownloadedForFile(filename string, downloaded int64) SetStartTime(startTime time.Time) }
type TMD ¶
type WriterProgress ¶
type WriterProgress struct {
// contains filtered or unexported fields
}
func (*WriterProgress) Close ¶
func (r *WriterProgress) Close() error
Source Files ¶
Click to show internal directories.
Click to hide internal directories.