forked from mirrors/nixpkgs
44b7d77591
Backward incompatible changes: - Support for Python 3.5 has been removed due to low usage and maintenance burden. - The GCM and AESGCM now require 64-bit to 1024-bit (8 byte to 128 byte) initialization vectors. This change is to conform with an upcoming OpenSSL release that will no longer support sizes outside this window. - When deserializing asymmetric keys we now raise ValueError rather than UnsupportedAlgorithm when an unsupported cipher is used. This change is to conform with an upcoming OpenSSL release that will no longer distinguish between error types. - We no longer allow loading of finite field Diffie-Hellman parameters of less than 512 bits in length. This change is to conform with an upcoming OpenSSL release that no longer supports smaller sizes. These keys were already wildly insecure and should not have been used in any application outside of testing.
24 lines
725 B
Nix
24 lines
725 B
Nix
{ buildPythonPackage, fetchPypi, lib, cryptography }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "cryptography_vectors";
|
|
# The test vectors must have the same version as the cryptography package:
|
|
version = cryptography.version;
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "192wix3sr678x21brav5hgc6j93l7ab1kh69p2scr3fsblq9qy03";
|
|
};
|
|
|
|
# No tests included
|
|
doCheck = false;
|
|
|
|
meta = with lib; {
|
|
description = "Test vectors for the cryptography package";
|
|
homepage = "https://cryptography.io/en/latest/development/test-vectors/";
|
|
# Source: https://github.com/pyca/cryptography/tree/master/vectors;
|
|
license = with licenses; [ asl20 bsd3 ];
|
|
maintainers = with maintainers; [ primeos ];
|
|
};
|
|
}
|