mesh: Remove redundant code from mesh/crypto 07/234207/1
authorMichał Lowas-Rzechonek <michal.lowas-rzechonek@silvair.com>
Thu, 26 Mar 2020 21:17:05 +0000 (22:17 +0100)
committerAbhay Agarwal <ay.agarwal@samsung.com>
Fri, 22 May 2020 04:23:43 +0000 (09:53 +0530)
commit4269dbc68c9bd2a532750577c0df1df4fa9fccf8
tree9fcc1307a37cb3ec5568fbb72166f1f610647adf
parenta4052e6704a0b9207162f6cbafb793d3e5c9db42
mesh: Remove redundant code from mesh/crypto

- Remove application_encrypt/application_decrypt
- Make mesh_crypto_privacy_counter private, add mesh_crypto_pecb
- Make *_nonce functions private and align their implementation to be
  more consistent
- Refactor network_encrypt/network_decrypt to use *_nonce functions and
  rename them to packet_encrypt/packet_decrypt
- Refactor packet_encode/packet_decode

Change-Id: If342e994774714a75bdd0ae90766d1ec7b750b79
Signed-off-by: Abhay Agarwal <ay.agarwal@samsung.com>
mesh/crypto.c
mesh/crypto.h
mesh/net-keys.c
unit/test-mesh-crypto.c