Bug 1282816 - Add a function gnutls_x509_crt_key_encrypt
Summary: Add a function gnutls_x509_crt_key_encrypt
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: gnutls
Version: 23
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Nikos Mavrogiannopoulos
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-11-17 14:12 UTC by Andreas Schneider
Modified: 2015-11-18 07:33 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-11-18 07:33:27 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Andreas Schneider 2015-11-17 14:12:54 UTC
Please proivde a function gnutls_x509_crt_key_encrypt() which uses the subjectPublicKey to encrypt the given data.

gnutls_x509_crt_key_encrypt(gnutls_x509_crt_t cert,
                            const void * ptext, size_t ptext_len,
                            void * ctext, size_t ctext_len);

or a way to extract the public key so you can do it with the public key API.

This is needed to implement the MS-BRKP protocol in Samba with GnuTLS.

Comment 1 Andreas Schneider 2015-11-17 14:44:01 UTC
It is the other way around. Looks like gnutls_pubkey_import_x509() imports the sPKI of the cert. However encryption fails doesn't work, need to check why ...


Note You need to log in before you can comment on or make changes to this bug.