diff --git a/rsaserver.go b/rsaserver.go index df1c9cc..8e13831 100644 --- a/rsaserver.go +++ b/rsaserver.go @@ -74,7 +74,7 @@ func handleConnection(conn net.Conn, privateKey *rsa.PrivateKey) { log.Printf("Error decrypting key: %v", err) return } - conn.Write([]byte("Received key\n")) + conn.Write([]byte("OK\n")) ivData, err := bufio.NewReader(conn).ReadString('\n') if err != nil { @@ -86,7 +86,7 @@ func handleConnection(conn net.Conn, privateKey *rsa.PrivateKey) { log.Printf("Error decrypting IV: %v", err) return } - conn.Write([]byte("Received IV\n")) + conn.Write([]byte("OK\n")) uidData, err := bufio.NewReader(conn).ReadString('\n') if err != nil { @@ -98,7 +98,7 @@ func handleConnection(conn net.Conn, privateKey *rsa.PrivateKey) { log.Printf("Error decrypting UID: %v", err) return } - conn.Write([]byte("Received UID\n")) + conn.Write([]byte("OK\n")) fmt.Println("Exchange, OK!")