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