mirror of https://gogs.blitter.com/RLabs/xs
				
				
				
			| 
				
					
						
							 | 
			||
|---|---|---|
| demo | ||
| README.md | ||
| herradurakex.go | ||
| hkexchan.gox | ||
| hkexnet.go | ||
		
			
				
				README.md
			
		
		
			
			
		
	
	This is an implementation of the 'HerraduraKEx' key exchange algorithm in golang. See github.com/Caume/HerraduraKEx
package herradurakex is a simple golang library to manage key exchanges using the algorithm and (TODO) wraps/extends golang.org/pkg/net/, Listener interface, Dial/Accept methods by providing a HKexConn built on top of the vanilla Conn.
Theory:
- Build a standard pkg/net/ Conn c
 - Build a HKexConn passing in Conn hc (HKexConn implements io.Reader,io.Writer)s
 - Dial/Listen on hc (it will do the KEx and store session key, negotiate crypto alg.)
 - Call any pkg/net ops as usual using HKexConn
 
? -rlm 2018-01-06