automotive-cse-0.1.2.0: Automotive CSE emulation

Safe HaskellNone
LanguageHaskell2010

Codec.Automotive.CSE

Documentation

data M1 Source #

Instances

Eq M1 Source # 

Methods

(==) :: M1 -> M1 -> Bool #

(/=) :: M1 -> M1 -> Bool #

Show M1 Source # 

Methods

showsPrec :: Int -> M1 -> ShowS #

show :: M1 -> String #

showList :: [M1] -> ShowS #

makeM1 Source #

Arguments

:: UID

UID - 15 octet

-> Word8

Key ID - 4 bit

-> Word8

Auth key ID - 4 bit

-> M1 

data M2 Source #

Instances

Eq M2 Source # 

Methods

(==) :: M2 -> M2 -> Bool #

(/=) :: M2 -> M2 -> Bool #

Show M2 Source # 

Methods

showsPrec :: Int -> M2 -> ShowS #

show :: M2 -> String #

showList :: [M2] -> ShowS #

makeM2 Source #

Arguments

:: K1

K1 value

-> Word32

Counter - 28 bit

-> Word8

Key Flag - 6 bit

-> KeyAuthUse NotAuth

Key Data for AES128

-> M2 

data M3 Source #

Instances

Eq M3 Source # 

Methods

(==) :: M3 -> M3 -> Bool #

(/=) :: M3 -> M3 -> Bool #

Show M3 Source # 

Methods

showsPrec :: Int -> M3 -> ShowS #

show :: M3 -> String #

showList :: [M3] -> ShowS #

makeM3 :: K2 -> M1 -> M2 -> M3 Source #

data M4 Source #

Instances

Eq M4 Source # 

Methods

(==) :: M4 -> M4 -> Bool #

(/=) :: M4 -> M4 -> Bool #

Show M4 Source # 

Methods

showsPrec :: Int -> M4 -> ShowS #

show :: M4 -> String #

showList :: [M4] -> ShowS #

makeM4 :: K3 -> UID -> Word8 -> Word8 -> Word32 -> M4 Source #

makeM4' :: K3 -> M1 -> Word32 -> M4 Source #

data M5 Source #

Instances

Eq M5 Source # 

Methods

(==) :: M5 -> M5 -> Bool #

(/=) :: M5 -> M5 -> Bool #

Show M5 Source # 

Methods

showsPrec :: Int -> M5 -> ShowS #

show :: M5 -> String #

showList :: [M5] -> ShowS #

makeM5 :: K4 -> M4 -> M5 Source #

makeK1 Source #

Arguments

:: KeyAuthUse Auth

AuthKey Data

-> K1'

Result Hash value

makeK2 Source #

Arguments

:: KeyAuthUse Auth

AuthKey Data

-> K2'

Result Hash value

makeK3 Source #

Arguments

:: KeyAuthUse NotAuth

Key Data

-> K3'

Result Hash value

makeK4 Source #

Arguments

:: KeyAuthUse NotAuth

Key Data

-> K4'

Result Hash value

data UID Source #

Instances

Eq UID Source # 

Methods

(==) :: UID -> UID -> Bool #

(/=) :: UID -> UID -> Bool #

Ord UID Source # 

Methods

compare :: UID -> UID -> Ordering #

(<) :: UID -> UID -> Bool #

(<=) :: UID -> UID -> Bool #

(>) :: UID -> UID -> Bool #

(>=) :: UID -> UID -> Bool #

max :: UID -> UID -> UID #

min :: UID -> UID -> UID #

Show UID Source # 

Methods

showsPrec :: Int -> UID -> ShowS #

show :: UID -> String #

showList :: [UID] -> ShowS #

data Derived k c Source #

Instances

Eq (Derived k c) Source # 

Methods

(==) :: Derived k c -> Derived k c -> Bool #

(/=) :: Derived k c -> Derived k c -> Bool #

Show (Derived k c) Source # 

Methods

showsPrec :: Int -> Derived k c -> ShowS #

show :: Derived k c -> String #

showList :: [Derived k c] -> ShowS #

data KeyAuthUse k Source #

Instances

data UpdateC c Source #

Instances

Eq (UpdateC c) Source # 

Methods

(==) :: UpdateC c -> UpdateC c -> Bool #

(/=) :: UpdateC c -> UpdateC c -> Bool #

Show (UpdateC c) Source # 

Methods

showsPrec :: Int -> UpdateC c -> ShowS #

show :: UpdateC c -> String #

showList :: [UpdateC c] -> ShowS #

data Enc Source #

data Mac Source #