automotive-cse-0.0.1.1: Automotive CSE emulation

Safe HaskellNone
LanguageHaskell2010

Codec.Automotive.CSE

Documentation

newtype M1 Source #

Constructors

M1 ByteString 

Instances

Eq M1 Source # 

Methods

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

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

newtype M2 Source #

Constructors

M2 ByteString 

Instances

Eq M2 Source # 

Methods

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

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

newtype M3 Source #

Constructors

M3 ByteString 

Instances

Eq M3 Source # 

Methods

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

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

newtype M4 Source #

Constructors

M4 ByteString 

Instances

Eq M4 Source # 

Methods

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

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

newtype M5 Source #

Constructors

M5 ByteString 

Instances

Eq M5 Source # 

Methods

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

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

makeM1 Source #

Arguments

:: ByteString

UID - 15 octet

-> Word8

Key ID - 4 bit

-> Word8

Auth key ID - 4 bit

-> M1 

makeM2 Source #

Arguments

:: K1

K1 value

-> Word32

Counter - 28 bit

-> Word8

Key Flag - 6 bit

-> KeyAuthUse NotAuth

Key Data for AES128

-> M2 

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

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 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 #

kdf :: KeyAuthUse k -> UpdateC c -> Derived k c Source #

newtype KeyAuthUse k Source #

Constructors

KeyAuthUse ByteString 

Instances