Skip to content

Upgrading cryptography 0.1 to 0.2

Breaking0.1 → 0.2.2Breaking1New7Changed2Fixed3

BreakingUpgrade verdict

1 breaking change.

  • Code that registered custom cipher adapters on the backend will no longer work.
1 item needs code or config changes
Breaking1
Removes the register_cipher_adapter method from CipherBackend.
CipherBackend.register_cipher_adapterCipherBackend

Generated by DepDelta from published Python source. Not mixed with prose notes.

  • added: class InternalError(Exception)
  • added: class InvalidKey(Exception)
  • added: export CommonCryptoBinding
  • added: export MultiBackend
  • added: export commoncrypto
  • added: export backend
  • added: class Backend(object)
  • added: constructor Backend()
  • added: field Backend.name
  • added: method Backend.cipher_supported(cipher, mode)
  • added: method Backend.create_hash_ctx(algorithm)
  • added: method Backend.create_hmac_ctx(key, algorithm)
  • added: method Backend.create_symmetric_decryption_ctx(cipher, mode)
  • added: method Backend.create_symmetric_encryption_ctx(cipher, mode)
  • added: method Backend.derive_pbkdf2_hmac(algorithm, length, salt, iterations, key_material)
  • added: method Backend.hash_supported(algorithm)
  • added: method Backend.hmac_supported(algorithm)
  • added: method Backend.pbkdf2_hmac_supported(algorithm)
  • added: variable HashMethods
  • added: variable backend
  • removed: method CipherBackend.register_cipher_adapter(cipher, mode, adapter)
  • added: class PBKDF2HMACBackend(six.with_metaclass(abc.ABCMeta))
  • added: class RSABackend(six.with_metaclass(abc.ABCMeta))
  • added: method PBKDF2HMACBackend.derive_pbkdf2_hmac(algorithm, length, salt, iterations, key_material)
  • added: method PBKDF2HMACBackend.pbkdf2_hmac_supported(algorithm)
  • added: method RSABackend.create_rsa_signature_ctx(private_key, padding, algorithm)
  • added: method RSABackend.create_rsa_verification_ctx(public_key, signature, padding, algorithm)
  • added: method RSABackend.generate_rsa_private_key(public_exponent, key_size)
  • added: class MultiBackend(object)
  • added: constructor MultiBackend(backends)
  • added: field MultiBackend.name
  • added: method MultiBackend.cipher_supported(algorithm, mode)
  • added: method MultiBackend.create_hash_ctx(algorithm)
  • added: method MultiBackend.create_hmac_ctx(key, algorithm)
  • added: method MultiBackend.create_symmetric_decryption_ctx(algorithm, mode)
  • added: method MultiBackend.create_symmetric_encryption_ctx(algorithm, mode)
  • added: method MultiBackend.derive_pbkdf2_hmac(algorithm, length, salt, iterations, key_material)
  • added: method MultiBackend.generate_rsa_private_key(public_exponent, key_size)
  • added: method MultiBackend.hash_supported(algorithm)
  • added: method MultiBackend.hmac_supported(algorithm)
  • added: method MultiBackend.pbkdf2_hmac_supported(algorithm)
  • added: field Backend.name
  • added: method Backend.activate_builtin_random()
  • added: method Backend.activate_osrandom_engine()
  • added: method Backend.derive_pbkdf2_hmac(algorithm, length, salt, iterations, key_material)
  • added: method Backend.generate_rsa_private_key(public_exponent, key_size)
  • added: method Backend.pbkdf2_hmac_supported(algorithm)
  • added: class Binding(object)
  • added: constructor Binding()
  • added: field Binding.ffi
  • added: field Binding.lib
  • added: static method Binding.is_available()
  • added: variable CONDITIONAL_NAMES
  • added: variable CUSTOMIZATIONS
  • added: variable FUNCTIONS
  • added: variable INCLUDES
  • added: variable MACROS
  • added: variable TYPES
  • added: variable CONDITIONAL_NAMES
  • added: variable CUSTOMIZATIONS
  • added: variable FUNCTIONS
  • added: variable INCLUDES
  • added: variable MACROS
  • added: variable TYPES
  • added: variable CONDITIONAL_NAMES
  • added: variable CUSTOMIZATIONS
  • added: variable FUNCTIONS
  • added: variable INCLUDES
  • added: variable MACROS
  • added: variable TYPES
  • added: variable CONDITIONAL_NAMES
  • added: variable CUSTOMIZATIONS
  • added: variable FUNCTIONS
  • added: variable INCLUDES
  • added: variable MACROS
  • added: variable TYPES
  • added: variable CONDITIONAL_NAMES
  • added: variable CUSTOMIZATIONS
  • added: variable FUNCTIONS
  • added: variable INCLUDES
  • added: variable MACROS
  • added: variable TYPES
  • added: static method Binding.init_static_locks()
  • added: variable CONDITIONAL_NAMES
  • added: variable CUSTOMIZATIONS
  • added: variable FUNCTIONS
  • added: variable INCLUDES
  • added: variable MACROS
  • added: variable TYPES
  • added: variable CONDITIONAL_NAMES
  • added: variable CUSTOMIZATIONS
  • added: variable FUNCTIONS
  • added: variable INCLUDES
  • added: variable MACROS
  • added: variable POSIX_CUSTOMIZATIONS
  • added: variable TYPES
  • added: variable WIN32_CUSTOMIZATIONS
  • added: class RSAPrivateKey(object)
  • added: class RSAPublicKey(object)
  • added: constructor RSAPrivateKey(p, q, private_exponent, dmp1, dmq1, iqmp, public_exponent, modulus)
  • added: constructor RSAPublicKey(public_exponent, modulus)
  • added: method RSAPrivateKey.public_key()
  • added: property RSAPrivateKey.d
  • added: property RSAPrivateKey.dmp1
  • added: property RSAPrivateKey.dmq1
  • added: property RSAPrivateKey.e
  • added: property RSAPrivateKey.iqmp
  • added: property RSAPrivateKey.key_size
  • added: property RSAPrivateKey.modulus
  • added: property RSAPrivateKey.n
  • added: property RSAPrivateKey.p
  • added: property RSAPrivateKey.private_exponent
  • added: property RSAPrivateKey.public_exponent
  • added: property RSAPrivateKey.q
  • added: property RSAPublicKey.e
  • added: property RSAPublicKey.key_size
  • added: property RSAPublicKey.modulus
  • added: property RSAPublicKey.n
  • added: property RSAPublicKey.public_exponent
  • added: static method RSAPrivateKey.generate(public_exponent, key_size, backend)
  • added: class CAST5(object)
  • added: constructor CAST5(key)
  • added: field CAST5.block_size
  • added: field CAST5.key_sizes
  • added: field CAST5.name
  • added: property CAST5.key_size
  • added: class AsymmetricPadding(six.with_metaclass(abc.ABCMeta))
  • added: class AsymmetricSignatureContext(six.with_metaclass(abc.ABCMeta))
  • added: class AsymmetricVerificationContext(six.with_metaclass(abc.ABCMeta))
  • added: class KeyDerivationFunction(six.with_metaclass(abc.ABCMeta))
  • added: class RSAPrivateKey(six.with_metaclass(abc.ABCMeta))
  • added: class RSAPublicKey(six.with_metaclass(abc.ABCMeta))
  • added: method AsymmetricPadding.name()
  • added: method AsymmetricSignatureContext.finalize()
  • added: method AsymmetricSignatureContext.update(data)
  • added: method AsymmetricVerificationContext.update(data)
  • added: method AsymmetricVerificationContext.verify()
  • added: method KeyDerivationFunction.derive(key_material)
  • added: method KeyDerivationFunction.verify(key_material, expected_key)
  • added: method RSAPrivateKey.d()
  • added: method RSAPrivateKey.dmp1()
  • added: method RSAPrivateKey.dmq1()
  • added: method RSAPrivateKey.e()
  • added: method RSAPrivateKey.iqmp()
  • added: method RSAPrivateKey.key_size()
  • added: method RSAPrivateKey.modulus()
  • added: method RSAPrivateKey.n()
  • added: method RSAPrivateKey.p()
  • added: method RSAPrivateKey.private_exponent()
  • added: method RSAPrivateKey.public_exponent()
  • added: method RSAPrivateKey.public_key()
  • added: method RSAPrivateKey.q()
  • added: method RSAPublicKey.e()
  • added: method RSAPublicKey.key_size()
  • added: method RSAPublicKey.modulus()
  • added: method RSAPublicKey.n()
  • added: method RSAPublicKey.public_exponent()
  • added: class HKDF(object)
  • added: constructor HKDF(algorithm, length, salt, info, backend)
  • added: method HKDF.derive(key_material)
  • added: method HKDF.verify(key_material, expected_key)
  • added: class PBKDF2HMAC(object)
  • added: constructor PBKDF2HMAC(algorithm, length, salt, iterations, backend)
  • added: method PBKDF2HMAC.derive(key_material)
  • added: method PBKDF2HMAC.verify(key_material, expected_key)