Skip to content

Commit

Permalink
Export ticket key encryption/decryption functions
Browse files Browse the repository at this point in the history
  • Loading branch information
spotlightishere committed Sep 21, 2020
1 parent 5bb575c commit 5ad63a2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions ticket.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func (t *Ticket) selectCommonKey() [16]byte {
}
}

func (t *Ticket) decryptKey() error {
func (t *Ticket) DecryptKey() error {
// Use the appropriate common key per this ticket.
key := t.selectCommonKey()
block, err := aes.NewCipher(key[:])
Expand All @@ -82,7 +82,7 @@ func (t *Ticket) decryptKey() error {
return nil
}

func (t *Ticket) encryptKey() error {
func (t *Ticket) EncryptKey() error {
// Use the appropriate common key per this ticket.
key := t.selectCommonKey()
block, err := aes.NewCipher(key[:])
Expand Down
2 changes: 1 addition & 1 deletion wad.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ func LoadWAD(contents []byte) (*WAD, error) {
if err != nil {
return nil, err
}
err = ticket.decryptKey()
err = ticket.DecryptKey()
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 5ad63a2

Please sign in to comment.