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 (Path) – The input file to read and parse.

  • mode (Mode) – The mode of operation.

  • operation (Operation) – The operation being tested (encrypt/decrypt).

  • filename (str) – Name of the file to save results.

  • no_save (bool) – 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 (Path) – The input file to read and parse.

  • pubkey_encoding (PubKeyEncoding) – The encoding used for the public keys.

  • hash_function (Hash) – The hash function used to generate the signatures.

  • filename (str) – Name of the file to save results.

  • no_save (bool) – 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 (Path) – The input file.

  • algorithm (Algorithm) – The hash algorithm used.

  • filename (str) – Name of the file to save results.

  • no_save (bool) – 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 (Path) – The input file to read and parse.

  • mode (Mode) – The mode of operation.

  • operation (Operation) – The operation being tested (encrypt/decrypt).

  • filename (str) – Name of the file to save results.

  • no_save (bool) – Do not save results or prompt the user.