Skip to content

Commit

Permalink
FW-867. Move SHA and HKDF functions to crypto driver
Browse files Browse the repository at this point in the history
  • Loading branch information
TimothyClaeys committed May 18, 2020
1 parent 2dfaa2c commit f727f78
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 8 deletions.
10 changes: 8 additions & 2 deletions drivers/SConscript
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,21 @@ sources_c = [
os.path.join('common','openserial.c'),
os.path.join('common','opentimers.c'),
os.path.join('common','crypto','ccms.c'),
os.path.join('common','crypto','aes128.c')
os.path.join('common','crypto','hkdf.c'),
os.path.join('common','crypto','hmac.c'),
os.path.join('common','crypto','sha224-256.c'),
os.path.join('common','crypto','aes128.c'),
os.path.join('common','crypto','usha.c')
]
sources_h = [
os.path.join('common','openhdlc.h'),
os.path.join('common','opensensors.h'),
os.path.join('common','openserial.h'),
os.path.join('common','opentimers.h'),
os.path.join('common','crypto','ccms.h'),
os.path.join('common','crypto','aes128.h')
os.path.join('common','crypto','aes128.h'),
os.path.join('common','crypto','sha.h'),
os.path.join('common','crypto','sha-private.h')
]

if localEnv['board']=='python':
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 0 additions & 6 deletions openweb/SConscript
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,8 @@ sources_c = [
"openweb.c",
# ==== opencoap
os.path.join("opencoap", "cborencoder.c"),
os.path.join("opencoap", "hkdf.c"),
os.path.join("opencoap", "hmac.c"),
os.path.join("opencoap", "coap.c"),
os.path.join("opencoap", "openoscoap.c"),
os.path.join("opencoap", "sha224-256.c"),
os.path.join("opencoap", "usha.c"),
# ==== cjoin
os.path.join("cjoin", "cjoin.c"),
os.path.join("cjoin", "cojp_cbor.c")
Expand All @@ -26,8 +22,6 @@ sources_h = [
os.path.join("opencoap", "cborencoder.h"),
os.path.join("opencoap", "coap.h"),
os.path.join("opencoap", "openoscoap.h"),
os.path.join("opencoap", "sha.h"),
os.path.join("opencoap", "sha-private.h"),
# ==== cjoin
os.path.join("cjoin", "cjoin.h"),
os.path.join("cjoin", "cojp_cbor.h")
Expand Down
3 changes: 3 additions & 0 deletions projects/python/SConscript.env
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,9 @@ functionsToChange = [
'aes_ctr_enc',
'aes_cbc_enc_raw',
'aes_ctr_enc_raw',
# hash
'sha',
'sha-private',
# openserial
'openserial_init',
'openserial_register',
Expand Down

0 comments on commit f727f78

Please sign in to comment.