Skip to content
Snippets Groups Projects
Commit a5183508 authored by dmitriy.gerasimov's avatar dmitriy.gerasimov
Browse files

Merge branch 'feature-2513' into 'master'

Added support for generating DILITHIUM key.

See merge request cellframe/kelvin-node!21
parents 7101e3dc db742d66
No related branches found
No related tags found
1 merge request!21Added support for generating DILITHIUM key.
......@@ -38,7 +38,7 @@ SET( CPACK_GENERATOR "DEB")
SET( CPACK_PACKAGE_NAME "${PROJECT_NAME}")
SET( CPACK_PACKAGE_VERSION_MAJOR 1)
SET( CPACK_PACKAGE_VERSION_MINOR 2)
SET( CPACK_PACKAGE_VERSION_PATCH 3)
SET( CPACK_PACKAGE_VERSION_PATCH 4)
SET( CPACK_SYSTEM_NAME "debian-9.7-amd64")
SET( CPACK_PACKAGE_VERSION "${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}-${CPACK_PACKAGE_VERSION_PATCH}")
......
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
File added
File added
File added
Subproject commit 5ffa22f467e57c3dce98cee13673e9ea7d6bc2f2
Subproject commit 4318f5ee00817386e2b5433619e6dfb4799de362
......@@ -321,13 +321,16 @@ int main( int argc, const char **argv )
dap_enc_key_type_t l_key_type = DAP_ENC_KEY_TYPE_NULL;
if ( strcmp (argv[4],"sig_bliss") == 0 ){
if ( dap_strcmp (argv[4],"sig_bliss") == 0 ){
l_key_type = DAP_ENC_KEY_TYPE_SIG_BLISS;
} else if ( strcmp (argv[4],"sig_tesla") == 0) {
} else if ( dap_strcmp (argv[4],"sig_tesla") == 0) {
l_key_type = DAP_ENC_KEY_TYPE_SIG_TESLA;
} else if ( strcmp (argv[4],"sig_picnic") == 0){
} else if ( dap_strcmp (argv[4],"sig_picnic") == 0){
l_key_type = DAP_ENC_KEY_TYPE_SIG_PICNIC;
} else {
} else if ( dap_strcmp(argv[4],"sig_dil") == 0){
l_key_type = DAP_ENC_KEY_TYPE_SIG_DILITHIUM;
}
else {
log_it (L_ERROR, "Wrong key create action \"%s\"",argv[4]);
exit(-600);
}
......@@ -338,6 +341,7 @@ int main( int argc, const char **argv )
if (l_cert == NULL){
log_it(L_ERROR, "Can't create %s",l_cert_path);
}
dap_chain_cert_delete(l_cert);
} else {
s_help();
DAP_DELETE(l_cert_path);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment