~ubuntu-branches/ubuntu/quantal/gnutls26/quantal

« back to all changes in this revision

Viewing changes to lib/gnutls_rsa_export.c

  • Committer: Bazaar Package Importer
  • Author(s): Steve Langasek
  • Date: 2011-05-20 13:07:18 UTC
  • mfrom: (12.1.11 sid)
  • Revision ID: james.westby@ubuntu.com-20110520130718-db41dybbanzfvlji
Tags: 2.10.5-1ubuntu1
* Merge from Debian unstable, remaining changes:
  - Fix build failure with --no-add-needed.
  - Build for multiarch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 * Copyright (C) 2002, 2003, 2004, 2005, 2008, 2009 Free Software Foundation
 
2
 * Copyright (C) 2002, 2003, 2004, 2005, 2008, 2009, 2010 Free Software
 
3
 * Foundation, Inc.
3
4
 *
4
5
 * Author: Nikos Mavrogiannopoulos
5
6
 *
6
 
 * This file is part of GNUTLS.
 
7
 * This file is part of GnuTLS.
7
8
 *
8
 
 * The GNUTLS library is free software; you can redistribute it and/or
 
9
 * The GnuTLS is free software; you can redistribute it and/or
9
10
 * modify it under the terms of the GNU Lesser General Public License
10
11
 * as published by the Free Software Foundation; either version 2.1 of
11
12
 * the License, or (at your option) any later version.
48
49
}
49
50
 
50
51
/**
51
 
 * gnutls_rsa_params_import_raw - set the RSA parameters
 
52
 * gnutls_rsa_params_import_raw:
52
53
 * @rsa_params: Is a structure will hold the parameters
53
54
 * @m: holds the modulus
54
55
 * @e: holds the public exponent
76
77
}
77
78
 
78
79
/**
79
 
 * gnutls_rsa_params_init - initialize the temporary RSA parameters
 
80
 * gnutls_rsa_params_init:
80
81
 * @rsa_params: Is a structure that will hold the parameters
81
82
 *
82
83
 * This function will initialize the temporary RSA parameters structure.
101
102
}
102
103
 
103
104
/**
104
 
 * gnutls_rsa_params_deinit - deinitialize the RSA parameters
 
105
 * gnutls_rsa_params_deinit:
105
106
 * @rsa_params: Is a structure that holds the parameters
106
107
 *
107
108
 * This function will deinitialize the RSA parameters structure.
113
114
}
114
115
 
115
116
/**
116
 
 * gnutls_rsa_params_cpy - copy an RSA parameters structure
 
117
 * gnutls_rsa_params_cpy:
117
118
 * @dst: Is the destination structure, which should be initialized.
118
119
 * @src: Is the source structure
119
120
 *
129
130
}
130
131
 
131
132
/**
132
 
 * gnutls_rsa_params_generate2 - generate temporary RSA parameters
 
133
 * gnutls_rsa_params_generate2:
133
134
 * @params: The structure where the parameters will be stored
134
135
 * @bits: is the prime's number of bits
135
136
 *
151
152
}
152
153
 
153
154
/**
154
 
 * gnutls_rsa_params_import_pkcs1 - import RSA params from a pkcs1 structure
 
155
 * gnutls_rsa_params_import_pkcs1:
155
156
 * @params: A structure where the parameters will be copied to
156
157
 * @pkcs1_params: should contain a PKCS1 RSAPublicKey structure PEM or DER encoded
157
158
 * @format: the format of params. PEM or DER.
173
174
}
174
175
 
175
176
/**
176
 
 * gnutls_rsa_params_export_pkcs1 - export RSA params to a pkcs1 structure
 
177
 * gnutls_rsa_params_export_pkcs1:
177
178
 * @params: Holds the RSA parameters
178
179
 * @format: the format of output params. One of PEM or DER.
179
180
 * @params_data: will contain a PKCS1 RSAPublicKey structure PEM or DER encoded
199
200
}
200
201
 
201
202
/**
202
 
 * gnutls_rsa_params_export_raw - export the RSA parameters
 
203
 * gnutls_rsa_params_export_raw:
203
204
 * @params: a structure that holds the rsa parameters
204
205
 * @m: will hold the modulus
205
206
 * @e: will hold the public exponent