Quellcode durchsuchen

Fix a few nits (#107)

* Minor changes

* Gracefully degrade if clang-tidy segfaults

* Typo on returncode
tags/v0.0.1
Douglas Stebila vor 5 Jahren
committed by GitHub
Ursprung
Commit
0bc19b3633
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden GPG-Schlüssel-ID: 4AEE18F83AFDEB23
4 geänderte Dateien mit 6 neuen und 4 gelöschten Zeilen
  1. +1
    -1
      crypto_sign/sphincs-shake256-128f-simple/clean/thash_shake256_simple.c
  2. +1
    -1
      crypto_sign/sphincs-shake256-128f-simple/clean/wots.c
  3. +3
    -1
      test/helpers.py
  4. +1
    -1
      test/test_common.py

+ 1
- 1
crypto_sign/sphincs-shake256-128f-simple/clean/thash_shake256_simple.c Datei anzeigen

@@ -1,9 +1,9 @@
#include <stdint.h>
#include <string.h>

#include "thash.h"
#include "address.h"
#include "params.h"
#include "thash.h"

#include "fips202.h"



+ 1
- 1
crypto_sign/sphincs-shake256-128f-simple/clean/wots.c Datei anzeigen

@@ -1,11 +1,11 @@
#include <stdint.h>
#include <string.h>

#include "utils.h"
#include "address.h"
#include "hash.h"
#include "params.h"
#include "thash.h"
#include "utils.h"
#include "wots.h"

// TODO clarify address expectations, and make them more uniform.


+ 3
- 1
test/helpers.py Datei anzeigen

@@ -114,8 +114,10 @@ def permit_test(testname, thing, **args):

if isinstance(thing, pqclean.Implementation):
scheme = thing.scheme
else:
elif isinstance(thing, pqclean.Scheme):
scheme = thing
else:
return True

if 'PQCLEAN_ONLY_TYPES' in os.environ:
if not(scheme.type.lower() in os.environ['PQCLEAN_ONLY_TYPES'].lower().split(',')):


+ 1
- 1
test/test_common.py Datei anzeigen

@@ -12,7 +12,7 @@ import helpers
def test_common():
for d in os.listdir('common'):
primitive = re.sub(r"\.c$", "", d)
yield check_common, primitive
if helpers.permit_test('common', None): yield check_common, primitive


def check_common(primitive):


Laden…
Abbrechen
Speichern