|
|
@@ -106,20 +106,12 @@ func mutualVersion(theirMajor, theirMinor uint8) (major, minor uint8, ok bool) { |
|
|
|
// A nop implements the NULL encryption and MAC algorithms. |
|
|
|
type nop struct{} |
|
|
|
|
|
|
|
func (nop) XORKeyStream(buf []byte) { |
|
|
|
} |
|
|
|
func (nop) XORKeyStream(buf []byte) {} |
|
|
|
|
|
|
|
func (nop) Write(buf []byte) (int, os.Error) { |
|
|
|
return len(buf), nil; |
|
|
|
} |
|
|
|
func (nop) Write(buf []byte) (int, os.Error) { return len(buf), nil } |
|
|
|
|
|
|
|
func (nop) Sum() []byte { |
|
|
|
return nil; |
|
|
|
} |
|
|
|
func (nop) Sum() []byte { return nil } |
|
|
|
|
|
|
|
func (nop) Reset() { |
|
|
|
} |
|
|
|
func (nop) Reset() {} |
|
|
|
|
|
|
|
func (nop) Size() int { |
|
|
|
return 0; |
|
|
|
} |
|
|
|
func (nop) Size() int { return 0 } |