Tools related to asymmetric ciphers

pyflocker.ciphers.backends.cryptography_.asymmetric.get_OAEP(padding: base.BaseAsymmetricPadding) padding_.OAEP[source]

Construct a pyca/cryptography specific OAEP object.

Parameters:

padding (OAEP) – An OAEP object.

Returns:

An OAEP encryptor/decryptor object depending on the key, from the cryptography backend.

Return type:

OAEP object

pyflocker.ciphers.backends.cryptography_.asymmetric.get_PSS(padding: base.BaseAsymmetricPadding) padding_.PSS[source]

Construct a pyca/cryptography specific PSS object.

Parameters:

padding (PSS) – A PSS object.

Returns:

An PSS signer/verifier object, depending on the key.

Return type:

PSS object

pyflocker.ciphers.backends.cryptography_.asymmetric.get_ECDH(algorithm: base.BaseEllepticCurveExchangeAlgorithm) ECDH[source]

Return an ECDH object for key exchange.

Parameters:

algorithm – The algorithm to use.

Returns: ECDH key exchange object.

pyflocker.ciphers.backends.cryptography_.asymmetric.get_ECDSA(algorithm: base.BaseEllepticCurveSignatureAlgorithm) type[ECDSA][source]

Return an ECDSA callable for signing/verification.

The object is not constructed until the key is signing/verifying.

Parameters:

algorithm – The algorithm to use.

Returns: Signer/Verifier callable.

pyflocker.ciphers.backends.cryptography_.asymmetric.get_padding_algorithm(padding: base.BaseAsymmetricPadding, *args: Any, **kwargs: Any) padding_.AsymmetricPadding[source]
pyflocker.ciphers.backends.cryptography_.asymmetric.get_ec_exchange_algorithm(algorithm: base.BaseEllepticCurveExchangeAlgorithm, *args: Any, **kwargs: Any) Any[source]
pyflocker.ciphers.backends.cryptography_.asymmetric.get_ec_signature_algorithm(algorithm: base.BaseEllepticCurveSignatureAlgorithm, *args: Any, **kwargs: Any) Any[source]