Skip to content

Commit

Permalink
chore: fix indentation in DeriveKerberosKey from merge
Browse files Browse the repository at this point in the history
  • Loading branch information
jonbarrow committed Jul 5, 2024
1 parent 27cdd4c commit 4fbbe2d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kerberos.go
Original file line number Diff line number Diff line change
Expand Up @@ -191,11 +191,11 @@ func NewKerberosTicketInternalData(server *PRUDPServer) *KerberosTicketInternalD

// DeriveKerberosKey derives a users kerberos encryption key based on their PID and password
func DeriveKerberosKey(pid types.PID, password []byte) []byte {
iterationCount := int(65000 + pid%1024)
iterationCount := int(65000 + pid%1024)
key := make([]byte, md5.Size)
copy(key, password)

for i := 0; i < iterationCount; i++ {
for i := 0; i < iterationCount; i++ {
hash := md5.Sum(key)
copy(key, hash[:])
}
Expand Down

0 comments on commit 4fbbe2d

Please sign in to comment.