| 1 |
Name: python-cryptoparser |
| 2 |
Version: 1.6.0 |
| 3 |
Release: 1%{?dist} |
| 4 |
Summary: Multi-protocol cryptographic protocol parser library |
| 5 |
|
| 6 |
License: MPL-2.0 |
| 7 |
URL: https://gitlab.com/coroner/cryptoparser |
| 8 |
Source0: %{name}_%{version}.tar.xz |
| 9 |
|
| 10 |
BuildArch: noarch |
| 11 |
BuildRequires: python3-devel |
| 12 |
BuildRequires: python3-pip |
| 13 |
BuildRequires: python3-setuptools |
| 14 |
BuildRequires: python3-wheel |
| 15 |
BuildRequires: python3-cryptodatahub >= 1.6.0 |
| 16 |
|
| 17 |
%description |
| 18 |
CryptoParser is a library for parsing cryptographic protocol messages |
| 19 |
including TLS, SSH, IKE, and related protocols. It is used as the |
| 20 |
parsing backend for CryptoLyzer. |
| 21 |
|
| 22 |
%package -n python3-cryptoparser |
| 23 |
Summary: %{summary} |
| 24 |
Requires: python3-asn1crypto |
| 25 |
Requires: python3-attrs |
| 26 |
Requires: python3-cryptodatahub >= 1.6.0 |
| 27 |
Requires: python3-urllib3 |
| 28 |
|
| 29 |
%description -n python3-cryptoparser |
| 30 |
CryptoParser is a library for parsing cryptographic protocol messages |
| 31 |
including TLS, SSH, IKE, and related protocols. It is used as the |
| 32 |
parsing backend for CryptoLyzer. |
| 33 |
|
| 34 |
%prep |
| 35 |
%setup -q -T -c -n %{name}-%{version} |
| 36 |
tar -xJf %{SOURCE0} --strip-components=1 |
| 37 |
sed -i "s/, 'setuptools-scm'//" pyproject.toml |
| 38 |
sed -i "s/name = 'CryptoParser'/name = 'cryptoparser'/" pyproject.toml |
| 39 |
sed -i "s/exclude = \['submodules'\]/include = ['cryptoparser*']/" pyproject.toml |
| 40 |
|
| 41 |
%build |
| 42 |
export SETUPTOOLS_SCM_PRETEND_VERSION=%{version} |
| 43 |
|
| 44 |
%install |
| 45 |
export SETUPTOOLS_SCM_PRETEND_VERSION=%{version} |
| 46 |
%{__python3} -m pip install --no-build-isolation --no-deps --root %{buildroot} --prefix %{_prefix} . |
| 47 |
%check |
| 48 |
|
| 49 |
%files -n python3-cryptoparser |
| 50 |
%{python3_sitelib}/cryptoparser/ |
| 51 |
%{python3_sitelib}/cryptoparser-%{version}.dist-info/ |
| 52 |
%license LICENSE.txt |
| 53 |
|
| 54 |
%changelog |
| 55 |
* Tue Aug 25 2026 Szilárd Pfeiffer <[email protected]> - 1.6.0-1 |
| 56 |
- add trust anchors extension related messages (#104) |
| 57 |
- add server padding extension related messages (#104) |
| 58 |
- add application-layer protocol settings extension related messages with the old code point (#104) |
| 59 |
- bound the outer extension payload of the encrypted client hello by the extension length (#104) |
| 60 |
- preserve the transform number when parsing the IKEv1 transform payload (#105) |
| 61 |
- follow the replacement of the named group with the key parameter (#106) |
| 62 |
- make the parameter classes of the invalid extension types immutable (#104) |
| 63 |
|
| 64 |
* Fri Jul 31 2026 Szilárd Pfeiffer <[email protected]> - 1.5.0-1 |
| 65 |
- add IKEv1 and IKEv2 certificate payload parsing (#103) |
| 66 |
- add IKEv1 identification payload parsing (#103) |
| 67 |
- add IKEv1 signature payload parsing (#103) |
| 68 |
- add IKEv2 identification payload parsing (#103) |
| 69 |
- add IKEv2 authentication payload parsing (#103) |
| 70 |
- add IKEv2 extensible authentication protocol payload parsing (#103) |
| 71 |
- add IKEv2 encrypted and authenticated payload parsing (#103) |
| 72 |
- keep IKEv1 and IKEv2 payloads of unknown type unparsed instead of rejecting the message (#103) |
| 73 |
- parse the IKEv1 and IKEv2 identification payload data according to the identification type (#103) |
| 74 |
- parse the digital signature envelope of the IKEv2 authentication payload (#103) |
| 75 |
- split the ISAKMP message parsing and composing into header and payload chain steps (#103) |
| 76 |
- use typed values in the IKEv2 signature hash algorithms notify payload (#103) |
| 77 |
- add getter for the distinguished name of the IKEv1 certificate request payload (#103) |
| 78 |
- add getter for the certification authority hashes of the IKEv2 certificate request payload (#103) |
| 79 |
|
| 80 |
* Fri Jul 17 2026 Szilárd Pfeiffer <[email protected]> - 1.4.0-1 |
| 81 |
- add getter for multiple payloads with the same type (#93) |
| 82 |
- add IKEv2 NAT detection source IP and destination IP notify payload parsing (#93) |
| 83 |
- add IKEv2 set window size notify payload parsing (#93) |
| 84 |
- add IKEv2 use transport mode notify payload parsing (#93) |
| 85 |
- add IKEv2 HTTP certificate lookup supported notify payload parsing (#93) |
| 86 |
- add IKEv2 signature hash algorithms notify payload parsing (#93) |
| 87 |
- add IKEv2 intermediate exchange supported notify payload parsing (#93) |
| 88 |
- add IKEv2 use PPK notify payload parsing (#93) |
| 89 |
- add IKEv2 redirect supported notify payload parsing (#93) |
| 90 |
- add IKEv2 fragmentation supported notify payload parsing (#93) |
| 91 |
- add childless IKEv2 supported notify payload parsing (#93) |
| 92 |
|
| 93 |
* Mon Jun 15 2026 Szilárd Pfeiffer <[email protected]> - 1.3.0-1 |
| 94 |
- add Debian and RPM packaging (#102) |
| 95 |
- add JA4 tag generation for the client hello message (#100) |
| 96 |
- add JA4X tag generation for X.509 certificates (#101) |
| 97 |
- add certificate-related messages for protocol version 1.3 (#94) |
| 98 |
- make IKEv2 transform key length optional for fixed-key ciphers (#99) |