Skip to content

Commit

Permalink
Some name fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
andlabs committed Sep 21, 2016
1 parent ad30660 commit 5bace1d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion bridge/initio.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ func (ks *InitioKeySector) valid() bool {
// into the key sector.
const initioDEKOffset = 0x190

func (ks *InitioKeySector) ExtractDEK() (dek []byte, err error) {
func (ks *InitioKeySector) DEK() (dek []byte, err error) {
r := bytes.NewReader(ks.raw[initioDEKOffset:])
// The endianness is most likely right, but unimportant since every field is [...]byte.
err = binary.Read(r, binary.LittleEndian, &(ks.d))
Expand Down
2 changes: 1 addition & 1 deletion bridge/jmicron.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ func (ks *JMicronKeySector) findDEK() (offset int) {
return -1 // not found; this isn't the right KEK
}

func (ks *JMicronKeySector) ExtractDEK() (dek []byte, err error) {
func (ks *JMicronKeySector) DEK() (dek []byte, err error) {
offset := ks.findDEK()
if offset == -1 {
return nil, ErrWrongKEK
Expand Down
2 changes: 1 addition & 1 deletion bridge/symwave.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ func (ks *SymwaveKeySector) Raw() []byte {
return ks.raw
}

func (ks *SymwaveKeySector) ExtractDEK() (dek []byte, err error) {
func (ks *SymwaveKeySector) DEK() (dek []byte, err error) {
r := bytes.NewReader(ks.raw)
// Again, stored as little endian for some reason; this is a 68000 system so it should be big endian...
err = binary.Read(r, binary.LittleEndian, &(ks.d))
Expand Down
2 changes: 1 addition & 1 deletion disk/disk.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type Disk struct {
size int64
}

func OpenDisk(filename string) (d *Disk, err error) {
func Open(filename string) (d *Disk, err error) {
d = new(Disk)
d.f, err = os.Open(filename)
if err != nil {
Expand Down

0 comments on commit 5bace1d

Please sign in to comment.