~ubuntu-branches/ubuntu/raring/gnupg2/raring-proposed

« back to all changes in this revision

Viewing changes to scd/iso7816.h

  • Committer: Bazaar Package Importer
  • Author(s): Eric Dorland
  • Date: 2009-09-07 20:38:23 UTC
  • mfrom: (1.1.13 upstream)
  • Revision ID: james.westby@ubuntu.com-20090907203823-d7hsk7lnfqoc4yom
Tags: 2.0.13-1
* New upstream release.
* debian/control: Depend instead of Recommend gnupg-agent. (Closes:
  #538947)

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
 *
16
16
 * You should have received a copy of the GNU General Public License
17
17
 * along with this program; if not, see <http://www.gnu.org/licenses/>.
18
 
 *
19
 
 * $Id: iso7816.h 5043 2009-06-17 09:45:50Z wk $
20
18
 */
21
19
 
22
20
#ifndef ISO7816_H
87
85
gpg_error_t iso7816_get_data (int slot, int extended_mode, int tag,
88
86
                              unsigned char **result, size_t *resultlen);
89
87
gpg_error_t iso7816_put_data (int slot, int extended_mode, int tag,
90
 
                              const unsigned char *data, size_t datalen);
 
88
                              const void *data, size_t datalen);
91
89
gpg_error_t iso7816_put_data_odd (int slot, int extended_mode, int tag,
92
 
                                  const unsigned char *data, size_t datalen);
 
90
                                  const void *data, size_t datalen);
93
91
gpg_error_t iso7816_manage_security_env (int slot, int p1, int p2,
94
92
                                         const unsigned char *data,
95
93
                                         size_t datalen);
96
 
gpg_error_t iso7816_compute_ds (int slot,
 
94
gpg_error_t iso7816_compute_ds (int slot, int extended_mode,
97
95
                                const unsigned char *data, size_t datalen,
 
96
                                int le,
98
97
                                unsigned char **result, size_t *resultlen);
99
98
gpg_error_t iso7816_decipher (int slot, int extended_mode,
100
99
                              const unsigned char *data, size_t datalen,
101
 
                              int padind,
 
100
                              int le, int padind,
102
101
                              unsigned char **result, size_t *resultlen);
103
 
gpg_error_t iso7816_internal_authenticate (int slot,
 
102
gpg_error_t iso7816_internal_authenticate (int slot, int extended_mode,
104
103
                                   const unsigned char *data, size_t datalen,
 
104
                                   int le,
105
105
                                   unsigned char **result, size_t *resultlen);
106
106
gpg_error_t iso7816_generate_keypair (int slot, int extended_mode,
107
107
                                    const unsigned char *data, size_t datalen,