Skip to content

Commit d7a1e9f

Browse files
crypto: add cryptohelper implementation
Signed-off-by: Mykola Kobets <[email protected]>
1 parent 829828f commit d7a1e9f

File tree

7 files changed

+2047
-2
lines changed

7 files changed

+2047
-2
lines changed

src/core/common/config.hpp

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1230,6 +1230,20 @@
12301230
#define AOS_CONFIG_TIMERS_MAX_COUNT 32
12311231
#endif
12321232

1233+
/**
1234+
* Number of recipient info in envelope data.
1235+
*/
1236+
#ifndef AOS_CONFIG_CRYPTO_RECIPIENTS_IN_ENVELOPEDATA
1237+
#define AOS_CONFIG_CRYPTO_RECIPIENTS_IN_ENVELOPEDATA 4
1238+
#endif
1239+
1240+
/**
1241+
* Maximum size for cloud metadata.
1242+
*/
1243+
#ifndef AOS_CONFIG_CRYPTO_ENCRYPT_METADATA
1244+
#define AOS_CONFIG_CRYPTO_ENCRYPT_METADATA 1024
1245+
#endif
1246+
12331247
/**
12341248
* Max number of certificates.
12351249
*/

src/core/common/crypto/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ endif()
7171
# Sources
7272
# ######################################################################################################################
7373

74-
set(SOURCES crypto.cpp cryptoutils.cpp)
74+
set(SOURCES crypto.cpp cryptohelper.cpp cryptoutils.cpp)
7575

7676
if(WITH_MBEDTLS)
7777
list(APPEND SOURCES mbedtls/cryptoprovider.cpp mbedtls/driverwrapper.cpp)

0 commit comments

Comments
 (0)