Skip to content

Commit

Permalink
Removed NTRU. (#415)
Browse files Browse the repository at this point in the history
  • Loading branch information
xvzcf authored Dec 16, 2022
1 parent 7c433e8 commit 5118e6e
Show file tree
Hide file tree
Showing 16 changed files with 314 additions and 717 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ The following quantum-safe algorithms from liboqs are supported (assuming they h
- **CRYSTALS-Kyber**: `kyber512`, `kyber768`, `kyber1024`, `kyber90s512`, `kyber90s768`, `kyber90s1024`
- **FrodoKEM**: `frodo640aes`, `frodo640shake`, `frodo976aes`, `frodo976shake`, `frodo1344aes`, `frodo1344shake`
- **HQC**: `hqc128`, `hqc192`, `hqc256`
- **NTRU**: `ntru_hps2048509`, `ntru_hps2048677`, `ntru_hps4096821`, `ntru_hps40961229`, `ntru_hrss701`, `ntru_hrss1373`
<!--- OQS_TEMPLATE_FRAGMENT_LIST_KEXS_END -->

If ``<KEX>`` is any of the algorithms listed above, the following hybrid algorithms are supported:
Expand Down
12 changes: 0 additions & 12 deletions apps/s_cb.c
Original file line number Diff line number Diff line change
Expand Up @@ -470,12 +470,6 @@ static const char* OQS_CURVE_ID_NAME_STR(int id) {
case 0x023A: return "kyber512";
case 0x023C: return "kyber768";
case 0x023D: return "kyber1024";
case 0x0214: return "ntru_hps2048509";
case 0x0215: return "ntru_hps2048677";
case 0x0216: return "ntru_hps4096821";
case 0x0245: return "ntru_hps40961229";
case 0x0217: return "ntru_hrss701";
case 0x0246: return "ntru_hrss1373";
case 0x0238: return "bikel1";
case 0x023B: return "bikel3";
case 0x023E: return "kyber90s512";
Expand All @@ -495,12 +489,6 @@ static const char* OQS_CURVE_ID_NAME_STR(int id) {
case 0x2F3A: return "p256_kyber512 hybrid";
case 0x2F3C: return "p384_kyber768 hybrid";
case 0x2F3D: return "p521_kyber1024 hybrid";
case 0x2F14: return "p256_ntru_hps2048509 hybrid";
case 0x2F15: return "p384_ntru_hps2048677 hybrid";
case 0x2F16: return "p521_ntru_hps4096821 hybrid";
case 0x2F45: return "p521_ntru_hps40961229 hybrid";
case 0x2F17: return "p384_ntru_hrss701 hybrid";
case 0x2F46: return "p521_ntru_hrss1373 hybrid";
case 0x2F38: return "p256_bikel1 hybrid";
case 0x2F3B: return "p384_bikel3 hybrid";
case 0x2F3E: return "p256_kyber90s512 hybrid";
Expand Down
24 changes: 0 additions & 24 deletions crypto/ec/oqs_meth.c
Original file line number Diff line number Diff line change
Expand Up @@ -118,12 +118,6 @@ int oqssl_kem_nids_list[] = {
NID_kyber512,
NID_kyber768,
NID_kyber1024,
NID_ntru_hps2048509,
NID_ntru_hps2048677,
NID_ntru_hps4096821,
NID_ntru_hps40961229,
NID_ntru_hrss701,
NID_ntru_hrss1373,
NID_bikel1,
NID_bikel3,
NID_kyber90s512,
Expand Down Expand Up @@ -228,24 +222,6 @@ char* get_oqs_alg_name(int openssl_nid)
case NID_kyber1024:
case NID_p521_kyber1024:
return OQS_KEM_alg_kyber_1024;
case NID_ntru_hps2048509:
case NID_p256_ntru_hps2048509:
return OQS_KEM_alg_ntru_hps2048509;
case NID_ntru_hps2048677:
case NID_p384_ntru_hps2048677:
return OQS_KEM_alg_ntru_hps2048677;
case NID_ntru_hps4096821:
case NID_p521_ntru_hps4096821:
return OQS_KEM_alg_ntru_hps4096821;
case NID_ntru_hps40961229:
case NID_p521_ntru_hps40961229:
return OQS_KEM_alg_ntru_hps40961229;
case NID_ntru_hrss701:
case NID_p384_ntru_hrss701:
return OQS_KEM_alg_ntru_hrss701;
case NID_ntru_hrss1373:
case NID_p521_ntru_hrss1373:
return OQS_KEM_alg_ntru_hrss1373;
case NID_bikel1:
case NID_p256_bikel1:
return OQS_KEM_alg_bike_l1;
Expand Down
Loading

0 comments on commit 5118e6e

Please sign in to comment.