automitive-cse-0.0.1.0: Automotive CSE emulation

Safe HaskellNone
LanguageHaskell2010

Codec.Automotive.CSE

Documentation

newtype M1 Source

Constructors

M1 ByteString 

Instances

newtype M2 Source

Constructors

M2 ByteString 

Instances

newtype M3 Source

Constructors

M3 ByteString 

Instances

newtype M4 Source

Constructors

M4 ByteString 

Instances

newtype M5 Source

Constructors

M5 ByteString 

Instances

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 

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

newtype KeyAuthUse k Source

Constructors

KeyAuthUse ByteString 

Instances