smartcrypto

package module
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 25, 2023 License: MIT Imports: 11 Imported by: 1

README

smartcrypto

SmartView2 handshake Golang implementation for Samsung Smart TV H/J (2014/2015) models.

godoc license

smartcrypto is a Go implementation of sectroyer's C/Python handshake POC.

Two versions are available: a version with C code and cgo bindings (check the cgo branch and a pure Go implementation (master branch).

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateServerAcknowledge

func GenerateServerAcknowledge(skprime []byte) (string, error)

GenerateServerAcknowledge builds the ServerAcknowledge data string

func GenerateServerHello

func GenerateServerHello(hello *HelloData) ([]byte, error)

GenerateServerHello builds the Server Hello hex string

func ParseClientAcknowledge

func ParseClientAcknowledge(clientAck string, skprime []byte) error

ParseClientAcknowledge checks the ClientAcknowledge data

func ParseClientHello

func ParseClientHello(hello HelloData, clientHello string) ([]byte, []byte, error)

ParseClientHello parses the client message and checks it's valid Returns (SKPrime, ctx) and an error if it failed.

Types

type HelloData

type HelloData struct {
	UserID, PIN string // User-provided
	Key, Ctx    []byte // Calculated by GenerateServerHello
}

HelloData contains data to generate the ServerHello and check the ClientHello

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL