1
/* This Source Code Form is subject to the terms of the Mozilla Public
2
* License, v. 2.0. If a copy of the MPL was not distributed with this
3
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6
static const char CVS_ID[] = "@(#) $RCSfile: symmkey.c,v $ $Revision: 1.7 $ $Date: 2012/04/25 14:50:07 $";
13
extern const NSSError NSS_ERROR_NOT_FOUND;
15
NSS_IMPLEMENT PRStatus
16
NSSSymmetricKey_Destroy (
20
nss_SetError(NSS_ERROR_NOT_FOUND);
24
NSS_IMPLEMENT PRStatus
25
NSSSymmetricKey_DeleteStoredObject (
30
nss_SetError(NSS_ERROR_NOT_FOUND);
34
NSS_IMPLEMENT PRUint32
35
NSSSymmetricKey_GetKeyLength (
39
nss_SetError(NSS_ERROR_NOT_FOUND);
43
NSS_IMPLEMENT PRUint32
44
NSSSymmetricKey_GetKeyStrength (
48
nss_SetError(NSS_ERROR_NOT_FOUND);
52
NSS_IMPLEMENT PRStatus
53
NSSSymmetricKey_IsStillPresent (
57
nss_SetError(NSS_ERROR_NOT_FOUND);
61
NSS_IMPLEMENT NSSTrustDomain *
62
NSSSymmetricKey_GetTrustDomain (
67
nss_SetError(NSS_ERROR_NOT_FOUND);
71
NSS_IMPLEMENT NSSToken *
72
NSSSymmetricKey_GetToken (
77
nss_SetError(NSS_ERROR_NOT_FOUND);
81
NSS_IMPLEMENT NSSSlot *
82
NSSSymmetricKey_GetSlot (
87
nss_SetError(NSS_ERROR_NOT_FOUND);
91
NSS_IMPLEMENT NSSModule *
92
NSSSymmetricKey_GetModule (
97
nss_SetError(NSS_ERROR_NOT_FOUND);
101
NSS_IMPLEMENT NSSItem *
102
NSSSymmetricKey_Encrypt (
104
NSSAlgorithmAndParameters *apOpt,
111
nss_SetError(NSS_ERROR_NOT_FOUND);
115
NSS_IMPLEMENT NSSItem *
116
NSSSymmetricKey_Decrypt (
118
NSSAlgorithmAndParameters *apOpt,
119
NSSItem *encryptedData,
125
nss_SetError(NSS_ERROR_NOT_FOUND);
129
NSS_IMPLEMENT NSSItem *
130
NSSSymmetricKey_Sign (
132
NSSAlgorithmAndParameters *apOpt,
139
nss_SetError(NSS_ERROR_NOT_FOUND);
143
NSS_IMPLEMENT NSSItem *
144
NSSSymmetricKey_SignRecover (
146
NSSAlgorithmAndParameters *apOpt,
153
nss_SetError(NSS_ERROR_NOT_FOUND);
157
NSS_IMPLEMENT PRStatus
158
NSSSymmetricKey_Verify (
160
NSSAlgorithmAndParameters *apOpt,
166
nss_SetError(NSS_ERROR_NOT_FOUND);
170
NSS_IMPLEMENT NSSItem *
171
NSSSymmetricKey_VerifyRecover (
173
NSSAlgorithmAndParameters *apOpt,
180
nss_SetError(NSS_ERROR_NOT_FOUND);
184
NSS_IMPLEMENT NSSItem *
185
NSSSymmetricKey_WrapSymmetricKey (
186
NSSSymmetricKey *wrappingKey,
187
NSSAlgorithmAndParameters *apOpt,
188
NSSSymmetricKey *keyToWrap,
194
nss_SetError(NSS_ERROR_NOT_FOUND);
198
NSS_IMPLEMENT NSSItem *
199
NSSSymmetricKey_WrapPrivateKey (
200
NSSSymmetricKey *wrappingKey,
201
NSSAlgorithmAndParameters *apOpt,
202
NSSPrivateKey *keyToWrap,
208
nss_SetError(NSS_ERROR_NOT_FOUND);
212
NSS_IMPLEMENT NSSSymmetricKey *
213
NSSSymmetricKey_UnwrapSymmetricKey (
214
NSSSymmetricKey *wrappingKey,
215
NSSAlgorithmAndParameters *apOpt,
219
NSSOperations operations,
223
nss_SetError(NSS_ERROR_NOT_FOUND);
227
NSS_IMPLEMENT NSSPrivateKey *
228
NSSSymmetricKey_UnwrapPrivateKey (
229
NSSSymmetricKey *wrappingKey,
230
NSSAlgorithmAndParameters *apOpt,
236
NSSToken *destinationOpt,
240
nss_SetError(NSS_ERROR_NOT_FOUND);
244
NSS_IMPLEMENT NSSSymmetricKey *
245
NSSSymmetricKey_DeriveSymmetricKey (
246
NSSSymmetricKey *originalKey,
247
NSSAlgorithmAndParameters *apOpt,
250
NSSOperations operations,
254
nss_SetError(NSS_ERROR_NOT_FOUND);
258
NSS_IMPLEMENT NSSCryptoContext *
259
NSSSymmetricKey_CreateCryptoContext (
261
NSSAlgorithmAndParameters *apOpt,
265
nss_SetError(NSS_ERROR_NOT_FOUND);