Browse Source

Fix memory leaks in NewHope

kyber
Thom Wiggers 4 years ago
committed by Kris Kwiatkowski
parent
commit
0912b1821c
4 changed files with 4 additions and 0 deletions
  1. +1
    -0
      crypto_kem/newhope1024cca/clean/poly.c
  2. +1
    -0
      crypto_kem/newhope1024cpa/clean/poly.c
  3. +1
    -0
      crypto_kem/newhope512cca/clean/poly.c
  4. +1
    -0
      crypto_kem/newhope512cpa/clean/poly.c

+ 1
- 0
crypto_kem/newhope1024cca/clean/poly.c View File

@@ -225,6 +225,7 @@ void PQCLEAN_NEWHOPE1024CCA_CLEAN_poly_uniform(poly *a, const unsigned char *see
}
}
}
shake128_ctx_release(&state);
}
}



+ 1
- 0
crypto_kem/newhope1024cpa/clean/poly.c View File

@@ -225,6 +225,7 @@ void PQCLEAN_NEWHOPE1024CPA_CLEAN_poly_uniform(poly *a, const unsigned char *see
}
}
}
shake128_ctx_release(&state);
}
}



+ 1
- 0
crypto_kem/newhope512cca/clean/poly.c View File

@@ -221,6 +221,7 @@ void PQCLEAN_NEWHOPE512CCA_CLEAN_poly_uniform(poly *a, const unsigned char *seed
}
}
}
shake128_ctx_release(&state);
}
}



+ 1
- 0
crypto_kem/newhope512cpa/clean/poly.c View File

@@ -221,6 +221,7 @@ void PQCLEAN_NEWHOPE512CPA_CLEAN_poly_uniform(poly *a, const unsigned char *seed
}
}
}
shake128_ctx_release(&state);
}
}



Loading…
Cancel
Save