mirror of
https://github.com/kepler155c/opus
synced 2025-01-16 18:32:52 +00:00
oops
This commit is contained in:
parent
00293033c8
commit
5283de18ed
@ -27,7 +27,7 @@ function Security.generateKeyPair()
|
||||
end
|
||||
|
||||
function Security.getIdentifier()
|
||||
return Security.geetPublicKey()
|
||||
return Security.getPublicKey()
|
||||
end
|
||||
|
||||
-- deprecate - will use getIdentifier
|
||||
|
@ -63,11 +63,13 @@ function socketClass:ping()
|
||||
end
|
||||
|
||||
function socketClass:setupEncryption()
|
||||
if false then
|
||||
self.sharedKey = ECC.exchange(self.privKey, self.remotePubKey)
|
||||
self.enckey = SHA.pbkdf2(self.sharedKey, "1enc", 1)
|
||||
self.hmackey = SHA.pbkdf2(self.sharedKey, "2hmac", 1)
|
||||
self.rseed = SHA.pbkdf2(self.sharedKey, "3rseed", 1)
|
||||
self.wseed = SHA.pbkdf2(self.sharedKey, "4sseed", 1)
|
||||
end
|
||||
end
|
||||
|
||||
function socketClass:close()
|
||||
|
Loading…
Reference in New Issue
Block a user