Closed mouse07410 closed 3 years ago
Are you sure you're using the most recent liboqs? HQC algorithm identifiers changed when https://github.com/open-quantum-safe/liboqs/pull/851, so there should not be any occurrences of HQC-256-1-CCA2 in the liboqs source code anymore.
$ pwd
/Users/uri/src/liboqs
$ git remote -v
origin https://github.com/open-quantum-safe/liboqs.git (fetch)
origin https://github.com/open-quantum-safe/liboqs.git (push)
$ git branch
* master
$ git pull --recurse-submodules
Already up to date.
$ rg OQS_KEM_alg_hqc_256
src/kem/kem.h
72:#define OQS_KEM_alg_hqc_256_1_cca2 "HQC-256-1-CCA2"
74:#define OQS_KEM_alg_hqc_256_2_cca2 "HQC-256-2-CCA2"
76:#define OQS_KEM_alg_hqc_256_3_cca2 "HQC-256-3-CCA2"
src/kem/hqc/kem_hqc_256_2_cca2.c
15: kem->method_name = OQS_KEM_alg_hqc_256_2_cca2;
src/kem/hqc/kem_hqc_256_3_cca2.c
15: kem->method_name = OQS_KEM_alg_hqc_256_3_cca2;
src/kem/hqc/kem_hqc_256_1_cca2.c
15: kem->method_name = OQS_KEM_alg_hqc_256_1_cca2;
src/kem/kem.c
36: OQS_KEM_alg_hqc_256_1_cca2,
37: OQS_KEM_alg_hqc_256_2_cca2,
38: OQS_KEM_alg_hqc_256_3_cca2,
202: } else if (0 == strcasecmp(method_name, OQS_KEM_alg_hqc_256_1_cca2)) {
208: } else if (0 == strcasecmp(method_name, OQS_KEM_alg_hqc_256_2_cca2)) {
214: } else if (0 == strcasecmp(method_name, OQS_KEM_alg_hqc_256_3_cca2)) {
582: } else if (0 == strcasecmp(method_name, OQS_KEM_alg_hqc_256_1_cca2)) {
588: } else if (0 == strcasecmp(method_name, OQS_KEM_alg_hqc_256_2_cca2)) {
594: } else if (0 == strcasecmp(method_name, OQS_KEM_alg_hqc_256_3_cca2)) {
$ rg OQS_KEM_alg_count
src/kem/kem.h
185:OQS_API int OQS_KEM_alg_count(void);
src/kem/kem.c
89:OQS_API int OQS_KEM_alg_count() {
$
We renamed master to main, in liboqs do git checkout main
.
We renamed master to main, in liboqs do git checkout main
Oh... Thanks.
Yes, main
branch seems to behave much better:
$ git branch
* main
. . . . .
372 passed, 8 skipped in 84.72s (0:01:24)
. . . . .
rg OQS_KEM_alg_count
src/kem/kem.h
179:OQS_API int OQS_KEM_alg_count(void);
src/kem/kem.c
86:OQS_API int OQS_KEM_alg_count() {
$ rg OQS_KEM_alg_hqc_256
src/kem/kem.h
70:#define OQS_KEM_alg_hqc_256 "HQC-256"
src/kem/hqc/kem_hqc_256.c
15: kem->method_name = OQS_KEM_alg_hqc_256;
src/kem/kem.c
35: OQS_KEM_alg_hqc_256,
193: } else if (0 == strcasecmp(method_name, OQS_KEM_alg_hqc_256)) {
555: } else if (0 == strcasecmp(method_name, OQS_KEM_alg_hqc_256)) {
$
MacOS Catalina 10.15.7, Xcode-12.2, current master of this repo, and of
liboqs
.Problem:
OpenSSL config:
liboqs
config:All the
liboqs
tests pass, except for 8 skipped:381 passed, 8 skipped in 204.52s (0:03:24)
If it matters, doing in
liboqs
directory after successful build/test/install: