1# provide here your tool chain
2#CC = gcc
3#AR = ar
4#CC = /opt/gcc-arm-none-eabi-9-2020-q2-update/bin/arm-none-eabi-gcc
5#AR = /opt/gcc-arm-none-eabi-9-2020-q2-update/bin/arm-none-eabi-ar
6#CC = clang-13
7
8#architecture
9#ARCH = -m32
10
11# the library is compiled with the folowing optimization
12OPT = -O3
13
14# Uncomment this to print intermediery results at runtime
15#DEBUG_PRINT += -DDEBUG_PRINT
16
17
18# CBOR engine
19# currently only ZCBOR is supported
20CBOR_ENGINE += -DZCBOR
21
22# The uoscore-uedhoc can be used with different crypto angines.
23# The user can provide as well additinal cryptoengines by providing
24# implementations of the function defined (as week) in the crypto_wrapper file.
25# Curretnly we have build in support for the following engines which
26# allow fowing modes of operation and suites:
27#
28# EDHOC suites:
29# Value: 0
30#    Array: 10, -16, 8, 4, -8, 10, -16
31#    Desc: AES-CCM-16-64-128, SHA-256, 8, X25519, EdDSA,
32#          AES-CCM-16-64-128, SHA-256
33
34#    Value: 1
35#    Array: 30, -16, 16, 4, -8, 10, -16
36#    Desc: AES-CCM-16-128-128, SHA-256, 16, X25519, EdDSA,
37#          AES-CCM-16-64-128, SHA-256
38
39#    Value: 2
40#    Array: 10, -16, 8, 1, -7, 10, -16
41#    Desc: AES-CCM-16-64-128, SHA-256, 8, P-256, ES256,
42#          AES-CCM-16-64-128, SHA-256
43
44#    Value: 3
45#    Array: 30, -16, 16, 1, -7, 10, -16
46#    Desc: AES-CCM-16-128-128, SHA-256, 16, P-256, ES256,
47#          AES-CCM-16-64-128, SHA-256
48
49#    Value: 4
50#    Array: 24, -16, 16, 4, -8, 24, -16
51#    Desc: ChaCha20/Poly1305, SHA-256, 16, X25519, EdDSA,
52#          ChaCha20/Poly1305, SHA-256
53
54
55# EDHOC methods:
56# +-------+-------------------+-------------------+-------------------+
57# | Value | Initiator         | Responder         | Reference         |
58# +-------+-------------------+-------------------+-------------------+
59# |     0 | Signature Key     | Signature Key     | [[this document]] |
60# |     1 | Signature Key     | Static DH Key     | [[this document]] |
61# |     2 | Static DH Key     | Signature Key     | [[this document]] |
62# |     3 | Static DH Key     | Static DH Key     | [[this document]] |
63# +-------+-------------------+-------------------+-------------------+
64#
65#
66#
67# +--------+---------+---------+-------------------------------------------
68# protocol | suite   | method  | ENGINE
69# +--------+---------+---------+-------------------------------------------
70# | OSCORE |         |         | TINYCRYPT or MBEDTLS
71# | EDHOC  | 0/1     | 0/1/2   | COMPACT25519 with (TINYCRYPT or MBEDTLS)
72# | EDHOC  | 0/1     | 3       | MBEDTLS or (COMPACT25519 with TINYCRYPT)
73# | EDHOC  | 2/3     | 0/1/2/3 | MBEDTLS
74# | EDHOC  | 0/1/2/3 | 0/1/2/3 | MBEDTLS and COMPACT25519
75
76
77#CRYPTO_ENGINE += -DTINYCRYPT
78CRYPTO_ENGINE += -DCOMPACT25519
79CRYPTO_ENGINE += -DMBEDTLS