Verify

Module for the verify subcommand.

crypto_condor.cli.verify.aes(input_file, mode, operation, filename='', no_save=False)

Tests the output of an AES implementation.

Parameters:
  • input_file (Annotated[Path, <typer.models.ArgumentInfo object at 0x7f01002dcc10>]) – The input file to read and parse.

  • mode (Annotated[Mode, <typer.models.ArgumentInfo object at 0x7f01002f4210>]) – The mode of operation.

  • operation (Annotated[Operation, <typer.models.ArgumentInfo object at 0x7f01002f4310>]) – The operation being tested (encrypt/decrypt).

  • filename (Annotated[str, <typer.models.OptionInfo object at 0x7f01002f4150>]) – Name of the file to save results.

  • no_save (Annotated[bool, <typer.models.OptionInfo object at 0x7f01002f4190>]) – Do not save results or prompt the user.

crypto_condor.cli.verify.ecdsa(input_file, pubkey_encoding, hash_function, filename='', no_save=False)

Tests ECDSA signatures.

Parameters:
  • input_file (Annotated[Path, <typer.models.ArgumentInfo object at 0x7f01002dcc10>]) – The input file to read and parse.

  • pubkey_encoding (Annotated[PubKeyEncoding, <typer.models.ArgumentInfo object at 0x7f01002f4590>]) – The encoding used for the public keys.

  • hash_function (Annotated[Hash, <typer.models.ArgumentInfo object at 0x7f01002f4610>]) – The hash function used to generate the signatures.

  • filename (Annotated[str, <typer.models.OptionInfo object at 0x7f01002f4150>]) – Name of the file to save results.

  • no_save (Annotated[bool, <typer.models.OptionInfo object at 0x7f01002f4190>]) – Do not save results or prompt the user.

crypto_condor.cli.verify.sha(input_file, algorithm, filename='', no_save=False)

Tests SHA hashes.

Parameters:
  • input_file (Annotated[Path, <typer.models.ArgumentInfo object at 0x7f01002dcc10>]) – The input file.

  • algorithm (Annotated[Algorithm, <typer.models.ArgumentInfo object at 0x7f01002f47d0>]) – The hash algorithm used.

  • filename (Annotated[str, <typer.models.OptionInfo object at 0x7f01002f4150>]) – Name of the file to save results.

  • no_save (Annotated[bool, <typer.models.OptionInfo object at 0x7f01002f4190>]) – Do not save results or prompt the user.

crypto_condor.cli.verify.chacha20(input_file, mode, operation, filename='', no_save=False)

Tests the output of an ChaCha20 implementation.

Parameters:
  • input_file (Annotated[Path, <typer.models.ArgumentInfo object at 0x7f01002dcc10>]) – The input file to read and parse.

  • mode (Annotated[Mode, <typer.models.ArgumentInfo object at 0x7f01002f4a10>]) – The mode of operation.

  • operation (Annotated[Operation, <typer.models.ArgumentInfo object at 0x7f01002f4ad0>]) – The operation being tested (encrypt/decrypt).

  • filename (Annotated[str, <typer.models.OptionInfo object at 0x7f01002f4150>]) – Name of the file to save results.

  • no_save (Annotated[bool, <typer.models.OptionInfo object at 0x7f01002f4190>]) – Do not save results or prompt the user.

crypto_condor.cli.verify.shake(input_file, algorithm, filename='', no_save=False, debug=None)

Tests the output of a SHAKE implementation.

Parameters:
  • input_file (Annotated[Path, <typer.models.ArgumentInfo object at 0x7f01002f4d10>]) – The file to test.

  • algorithm (Annotated[Algorithm, <typer.models.ArgumentInfo object at 0x7f01002f4d90>]) – The SHAKE variant used to generate the outputs.

Keyword Arguments:
  • filename – The name of the file to save the results.

  • no_save – If True, results are not saved and the user is not prompted.

  • debug – If the results are saved, include debug data.