Compare commits
No commits in common. "c8" and "c9-beta" have entirely different histories.
2
.gitignore
vendored
2
.gitignore
vendored
@ -1 +1 @@
|
||||
SOURCES/Crypt-OpenSSL-RSA-0.31.tar.gz
|
||||
SOURCES/Crypt-OpenSSL-RSA-0.33.tar.gz
|
||||
|
||||
@ -1 +1 @@
|
||||
5028d060a546a4e1334b60d2fefd21cdd116afb1 SOURCES/Crypt-OpenSSL-RSA-0.31.tar.gz
|
||||
eb32f6103c71a1e1ef47ede383d6093bc1f9abf9 SOURCES/Crypt-OpenSSL-RSA-0.33.tar.gz
|
||||
|
||||
80
SOURCES/perl-Crypt-OpenSSL-RSA-openssl30.patch
Normal file
80
SOURCES/perl-Crypt-OpenSSL-RSA-openssl30.patch
Normal file
@ -0,0 +1,80 @@
|
||||
diff --git a/README b/README
|
||||
index c7d4bb7..3da6d1d 100644
|
||||
--- a/README
|
||||
+++ b/README
|
||||
@@ -10,7 +10,6 @@ SYNOPSIS
|
||||
Crypt::OpenSSL::Random::random_seed($good_entropy);
|
||||
Crypt::OpenSSL::RSA->import_random_seed();
|
||||
$rsa_pub = Crypt::OpenSSL::RSA->new_public_key($key_string);
|
||||
- $rsa_pub->use_sslv23_padding(); # use_pkcs1_oaep_padding is the default
|
||||
$ciphertext = $rsa->encrypt($plaintext);
|
||||
|
||||
$rsa_priv = Crypt::OpenSSL::RSA->new_private_key($key_string);
|
||||
@@ -140,10 +139,6 @@ Instance Methods
|
||||
all new applications. It is the default mode used by
|
||||
"Crypt::OpenSSL::RSA".
|
||||
|
||||
- use_sslv23_padding
|
||||
- Use PKCS #1 v1.5 padding with an SSL-specific modification that
|
||||
- denotes that the server is SSL3 capable.
|
||||
-
|
||||
use_md5_hash
|
||||
Use the RFC 1321 MD5 hashing algorithm by Ron Rivest when signing
|
||||
and verifying messages.
|
||||
@@ -168,7 +163,7 @@ Instance Methods
|
||||
pkcs1_oaep_padding
|
||||
at most 42 bytes less than this size.
|
||||
|
||||
- pkcs1_padding or sslv23_padding
|
||||
+ pkcs1_padding
|
||||
at most 11 bytes less than this size.
|
||||
|
||||
no_padding
|
||||
diff --git a/RSA.pm b/RSA.pm
|
||||
index a08d9cc..b1a0e4b 100644
|
||||
--- a/RSA.pm
|
||||
+++ b/RSA.pm
|
||||
@@ -248,13 +248,6 @@ an empty encoding parameter. This mode of padding is recommended for
|
||||
all new applications. It is the default mode used by
|
||||
C<Crypt::OpenSSL::RSA>.
|
||||
|
||||
-=item use_sslv23_padding
|
||||
-
|
||||
-Use C<PKCS #1 v1.5> padding with an SSL-specific modification that
|
||||
-denotes that the server is SSL3 capable.
|
||||
-
|
||||
-Not available since OpenSSL 3.
|
||||
-
|
||||
=item use_md5_hash
|
||||
|
||||
Use the RFC 1321 MD5 hashing algorithm by Ron Rivest when signing and
|
||||
@@ -297,7 +290,7 @@ the text to be encrypted should be:
|
||||
|
||||
at most 42 bytes less than this size.
|
||||
|
||||
-=item pkcs1_padding or sslv23_padding
|
||||
+=item pkcs1_padding
|
||||
|
||||
at most 11 bytes less than this size.
|
||||
|
||||
diff --git a/RSA.xs b/RSA.xs
|
||||
index 5f5cfae..4bbe0ac 100644
|
||||
--- a/RSA.xs
|
||||
+++ b/RSA.xs
|
||||
@@ -680,16 +680,6 @@ use_pkcs1_oaep_padding(p_rsa)
|
||||
CODE:
|
||||
p_rsa->padding = RSA_PKCS1_OAEP_PADDING;
|
||||
|
||||
-#if OPENSSL_VERSION_NUMBER < 0x30000000L
|
||||
-
|
||||
-void
|
||||
-use_sslv23_padding(p_rsa)
|
||||
- rsaData* p_rsa;
|
||||
- CODE:
|
||||
- p_rsa->padding = RSA_SSLV23_PADDING;
|
||||
-
|
||||
-#endif
|
||||
-
|
||||
# Sign text. Returns the signature.
|
||||
|
||||
SV*
|
||||
@ -1,5 +1,5 @@
|
||||
Name: perl-Crypt-OpenSSL-RSA
|
||||
Version: 0.31
|
||||
Version: 0.33
|
||||
Release: 1%{?dist}
|
||||
Summary: Perl interface to OpenSSL for RSA
|
||||
License: GPL+ or Artistic
|
||||
@ -8,7 +8,6 @@ Source0: https://cpan.metacpan.org/authors/id/T/TO/TODDR/Crypt-OpenSSL-RS
|
||||
BuildRequires: gcc
|
||||
BuildRequires: findutils
|
||||
BuildRequires: make
|
||||
BuildRequires: openssl
|
||||
BuildRequires: openssl-devel
|
||||
BuildRequires: perl-devel
|
||||
BuildRequires: perl-generators
|
||||
@ -33,15 +32,18 @@ Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $versi
|
||||
Requires: perl(Crypt::OpenSSL::Random)
|
||||
Requires: perl(Crypt::OpenSSL::Bignum)
|
||||
|
||||
Patch1: perl-Crypt-OpenSSL-RSA-openssl30.patch
|
||||
|
||||
|
||||
%description
|
||||
Crypt::OpenSSL::RSA - RSA encoding and decoding, using the openSSL libraries
|
||||
|
||||
%prep
|
||||
%setup -q -n Crypt-OpenSSL-RSA-%{version}
|
||||
%autosetup -p1 -n Crypt-OpenSSL-RSA-%{version}
|
||||
|
||||
%build
|
||||
%{__perl} Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
|
||||
make %{?_smp_mflags}
|
||||
%make_build
|
||||
|
||||
%install
|
||||
make pure_install DESTDIR=%{buildroot}
|
||||
@ -59,6 +61,49 @@ make test
|
||||
%{_mandir}/man3/*
|
||||
|
||||
%changelog
|
||||
* Thu Jun 20 2024 Martin Osvald <mosvald@redhat.com> - 0.33-1
|
||||
- New version 0.33 supporting passphrase protected keys
|
||||
Resolves: RHEL-38780
|
||||
|
||||
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 0.31-13
|
||||
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
||||
Related: rhbz#1991688
|
||||
|
||||
* Wed Jun 16 2021 Mohan Boddu <mboddu@redhat.com> - 0.31-12
|
||||
- Rebuilt for RHEL 9 BETA for openssl 3.0
|
||||
Related: rhbz#1971065
|
||||
|
||||
* Tue May 18 2021 Pavel Zhukov <pzhukov@redhat.com> - 0.31-11
|
||||
- Build with openssl 3.0
|
||||
|
||||
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 0.31-10
|
||||
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
||||
|
||||
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.31-9
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
||||
|
||||
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.31-8
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
||||
|
||||
* Tue Jun 23 2020 Jitka Plesnikova <jplesnik@redhat.com> - 0.31-7
|
||||
- Perl 5.32 rebuild
|
||||
|
||||
* Tue Feb 04 2020 Tom Stellard <tstellar@redhat.com> - 0.31-6
|
||||
- Use make_build macro
|
||||
- https://docs.fedoraproject.org/en-US/packaging-guidelines/#_parallel_make
|
||||
|
||||
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.31-5
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
||||
|
||||
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.31-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
||||
|
||||
* Fri May 31 2019 Jitka Plesnikova <jplesnik@redhat.com> - 0.31-3
|
||||
- Perl 5.30 rebuild
|
||||
|
||||
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.31-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
||||
|
||||
* Wed Oct 03 2018 Jitka Plesnikova <jplesnik@redhat.com> - 0.31-1
|
||||
- 0.31 bump
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user