|
|
@ -16,10 +16,12 @@ void set_algorithm(algorithm_t* algo, const char* newname) { |
|
|
|
strncpy(algo->name, newname, sizeof(algo->name)); |
|
|
|
strncpy(algo->name, newname, sizeof(algo->name)); |
|
|
|
algo->name[sizeof(algo->name) - 1] = '\0'; |
|
|
|
algo->name[sizeof(algo->name) - 1] = '\0'; |
|
|
|
|
|
|
|
|
|
|
|
if (strcmp(algo->name, "adaptive-nfactor") == 0) { |
|
|
|
if ((strcmp(algo->name, "adaptive-n-factor") == 0) || |
|
|
|
set_algorithm_nfactor(algo, 11); |
|
|
|
(strcmp(algo->name, "adaptive-nfactor") == 0) || |
|
|
|
|
|
|
|
(strcmp(algo->name, "nscrypt") == 0) ) { |
|
|
|
|
|
|
|
set_algorithm_nfactor(algo, 11); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
set_algorithm_nfactor(algo, 10); |
|
|
|
set_algorithm_nfactor(algo, 10); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return; |
|
|
|
return; |
|
|
|