Commit 32417724 authored by Jeromy's avatar Jeromy

Reenable secure channel code

parent f89cfc11
...@@ -184,12 +184,13 @@ func (s *SecurePipe) handshake() error { ...@@ -184,12 +184,13 @@ func (s *SecurePipe) handshake() error {
} }
cmp := bytes.Compare(myPubKey, proposeResp.GetPubkey()) cmp := bytes.Compare(myPubKey, proposeResp.GetPubkey())
//mIV, tIV, mCKey, tCKey, mMKey, tMKey := ci.KeyStretcher(cmp, cipherType, hashType, secret) mIV, tIV, mCKey, tCKey, mMKey, tMKey := ci.KeyStretcher(cmp, cipherType, hashType, secret)
ci.KeyStretcher(cmp, cipherType, hashType, secret) //ci.KeyStretcher(cmp, cipherType, hashType, secret)
//go s.handleSecureIn(hashType, cipherType, tIV, tCKey, tMKey) go s.handleSecureIn(hashType, cipherType, tIV, tCKey, tMKey)
//go s.handleSecureOut(hashType, cipherType, mIV, mCKey, mMKey) go s.handleSecureOut(hashType, cipherType, mIV, mCKey, mMKey)
/*
// Disable Secure Channel // Disable Secure Channel
go func(sp *SecurePipe) { go func(sp *SecurePipe) {
for { for {
...@@ -219,6 +220,7 @@ func (s *SecurePipe) handshake() error { ...@@ -219,6 +220,7 @@ func (s *SecurePipe) handshake() error {
} }
} }
}(s) }(s)
*/
finished := []byte("Finished") finished := []byte("Finished")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment