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 0x7f0fc7cf75d0>]) – The input file to read and parse.
mode (Annotated[Mode, <typer.models.ArgumentInfo object at 0x7f0fc7cf7490>]) – The mode of operation.
operation (Annotated[Operation, <typer.models.ArgumentInfo object at 0x7f0fc7cf7810>]) – The operation being tested (encrypt/decrypt).
- Keyword Arguments:
filename – Name of the file to save results.
no_save – 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 0x7f0fc7cf75d0>]) – The input file to read and parse.
pubkey_encoding (Annotated[PubKeyEncoding, <typer.models.ArgumentInfo object at 0x7f0fc7cf7b10>]) – The encoding used for the public keys.
hash_function (Annotated[Hash, <typer.models.ArgumentInfo object at 0x7f0fc7cf7bd0>]) – The hash function used to generate the signatures.
filename (Annotated[str, <typer.models.OptionInfo object at 0x7f0fc7cf7550>]) – Name of the file to save results.
no_save (Annotated[bool, <typer.models.OptionInfo object at 0x7f0fc7cf7510>]) – 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 0x7f0fc7cf75d0>]) – The input file.
algorithm (Annotated[Algorithm, <typer.models.ArgumentInfo object at 0x7f0fc7cf7e10>]) – The hash algorithm used.
filename (Annotated[str, <typer.models.OptionInfo object at 0x7f0fc7cf7550>]) – Name of the file to save results.
no_save (Annotated[bool, <typer.models.OptionInfo object at 0x7f0fc7cf7510>]) – 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 0x7f0fc7cf75d0>]) – The input file to read and parse.
mode (Annotated[Mode, <typer.models.ArgumentInfo object at 0x7f0fc7d00090>]) – The mode of operation.
operation (Annotated[Operation, <typer.models.ArgumentInfo object at 0x7f0fc7d00150>]) – The operation being tested (encrypt/decrypt).
filename (Annotated[str, <typer.models.OptionInfo object at 0x7f0fc7cf7550>]) – Name of the file to save results.
no_save (Annotated[bool, <typer.models.OptionInfo object at 0x7f0fc7cf7510>]) – 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 0x7f0fc7d00390>]) – The file to test.
algorithm (Annotated[Algorithm, <typer.models.ArgumentInfo object at 0x7f0fc7d00410>]) – 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.
- crypto_condor.cli.verify.test_hmac(input_file, hash_function, filename='', no_save=False, debug=None)¶
Tests the output of a SHAKE implementation.
- Parameters:
input_file (Annotated[str, <typer.models.ArgumentInfo object at 0x7f0fc7d00650>]) – The file to test.
hash_function (Annotated[Hash, <typer.models.ArgumentInfo object at 0x7f0fc7d00750>]) – The hash function used to generate the HMAC tags.
- 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.
- enum crypto_condor.cli.verify.EcdhCurve(value)¶
Bases:
StrEnum
Elliptic curves supported by cryptography.
- Member Type:
str
Valid values are as follows:
- P192 = <EcdhCurve.P192: 'P-192'>¶
- P224 = <EcdhCurve.P224: 'P-224'>¶
- P256 = <EcdhCurve.P256: 'P-256'>¶
- P384 = <EcdhCurve.P384: 'P-384'>¶
- P521 = <EcdhCurve.P521: 'P-521'>¶
- K163 = <EcdhCurve.K163: 'K-163'>¶
- K233 = <EcdhCurve.K233: 'K-233'>¶
- K283 = <EcdhCurve.K283: 'K-283'>¶
- K409 = <EcdhCurve.K409: 'K-409'>¶
- K571 = <EcdhCurve.K571: 'K-571'>¶
- B163 = <EcdhCurve.B163: 'B-163'>¶
- B233 = <EcdhCurve.B233: 'B-233'>¶
- B283 = <EcdhCurve.B283: 'B-283'>¶
- B409 = <EcdhCurve.B409: 'B-409'>¶
- B571 = <EcdhCurve.B571: 'B-571'>¶
- BRAINPOOLP256R1 = <EcdhCurve.BRAINPOOLP256R1: 'brainpoolP256r1'>¶
- BRAINPOOLP384R1 = <EcdhCurve.BRAINPOOLP384R1: 'brainpoolP384r1'>¶
- BRAINPOOLP512R1 = <EcdhCurve.BRAINPOOLP512R1: 'brainpoolP512r1'>¶
- SECP256K1 = <EcdhCurve.SECP256K1: 'secp256k1'>¶
- crypto_condor.cli.verify.test_ecdh(input_file, curve, filename='', no_save=False, debug=None)¶
Tests the output of a SHAKE implementation.
- Parameters:
input_file (Annotated[str, <typer.models.ArgumentInfo object at 0x7f0fc8bf4990>]) – The file to test.
curve (Annotated[EcdhCurve, <typer.models.ArgumentInfo object at 0x7f0fc9494f50>]) – The elliptic curve used for the exchange.
- 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.