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

« back to all changes in this revision

Viewing changes to lib/gnutls_dh_primes.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) 2000, 2001, 2003, 2004, 2005, 2008, 2009 Free Software Foundation
 
2
 * Copyright (C) 2000, 2001, 2003, 2004, 2005, 2008, 2009, 2010 Free
 
3
 * Software 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.
53
54
 * generated one.
54
55
 */
55
56
/**
56
 
 * gnutls_dh_params_import_raw - import DH parameters
 
57
 * gnutls_dh_params_import_raw:
57
58
 * @dh_params: Is a structure that will hold the prime numbers
58
59
 * @prime: holds the new prime
59
60
 * @generator: holds the new generator
98
99
}
99
100
 
100
101
/**
101
 
 * gnutls_dh_params_init - initialize the DH parameters
 
102
 * gnutls_dh_params_init:
102
103
 * @dh_params: Is a structure that will hold the prime numbers
103
104
 *
104
105
 * This function will initialize the DH parameters structure.
122
123
}
123
124
 
124
125
/**
125
 
 * gnutls_dh_params_deinit - deinitialize the DH parameters
 
126
 * gnutls_dh_params_deinit:
126
127
 * @dh_params: Is a structure that holds the prime numbers
127
128
 *
128
129
 * This function will deinitialize the DH parameters structure.
141
142
}
142
143
 
143
144
/**
144
 
 * gnutls_dh_params_cpy - copy a DH parameters structure
 
145
 * gnutls_dh_params_cpy:
145
146
 * @dst: Is the destination structure, which should be initialized.
146
147
 * @src: Is the source structure
147
148
 *
168
169
 
169
170
 
170
171
/**
171
 
 * gnutls_dh_params_generate2 - generate new DH parameters
 
172
 * gnutls_dh_params_generate2:
172
173
 * @params: Is the structure that the DH parameters will be stored
173
174
 * @bits: is the prime's number of bits
174
175
 *
205
206
}
206
207
 
207
208
/**
208
 
 * gnutls_dh_params_import_pkcs3 - import DH params from a pkcs3 structure
 
209
 * gnutls_dh_params_import_pkcs3:
209
210
 * @params: A structure where the parameters will be copied to
210
211
 * @pkcs3_params: should contain a PKCS3 DHParams structure PEM or DER encoded
211
212
 * @format: the format of params. PEM or DER.
314
315
}
315
316
 
316
317
/**
317
 
 * gnutls_dh_params_export_pkcs3 - export DH params to a pkcs3 structure
 
318
 * gnutls_dh_params_export_pkcs3:
318
319
 * @params: Holds the DH parameters
319
320
 * @format: the format of output params. One of PEM or DER.
320
321
 * @params_data: will contain a PKCS3 DHParams structure PEM or DER encoded
490
491
}
491
492
 
492
493
/**
493
 
 * gnutls_dh_params_export_raw - export the raw DH parameters
 
494
 * gnutls_dh_params_export_raw:
494
495
 * @params: Holds the DH parameters
495
496
 * @prime: will hold the new prime
496
497
 * @generator: will hold the new generator