[Rpm-maint] [rpm-software-management/rpm] Add OpenSSL crypto backend (#129)
Tomáš Mráz
notifications at github.com
Tue Feb 7 09:57:52 UTC 2017
t8m commented on this pull request.
> + EVP_PKEY_free(key->evp_pkey);
+ key->evp_pkey = NULL;
+ RSA_free(rsa);
+ }
+
+ return 1;
+}
+
+static int pgpSetKeyMpiRSA(pgpDigAlg pgpkey, int num, const uint8_t *p)
+{
+ size_t mlen = pgpMpiLen(p) - 2;
+ struct pgpDigKeyRSA_s *key = pgpkey->data;
+
+ if(!key) {
+ key = pgpkey->data = OPENSSL_secure_zalloc(sizeof(*key));
+ if (!key) return 1;
As Panu says - as there are no secret/private key operations at all, there is no point in using the secure memory in the patch at all.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/129
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20170207/5fb86d6d/attachment.html>
More information about the Rpm-maint
mailing list