| Index: nss/lib/pk11wrap/pk11pub.h
|
| diff --git a/nss/lib/pk11wrap/pk11pub.h b/nss/lib/pk11wrap/pk11pub.h
|
| index 2f004b151f996f67d53451dc684f915002d7439c..c3beef9860f321bf9c06af9463011575ad095488 100644
|
| --- a/nss/lib/pk11wrap/pk11pub.h
|
| +++ b/nss/lib/pk11wrap/pk11pub.h
|
| @@ -520,18 +520,38 @@ SECStatus PK11_Encrypt(PK11SymKey *symKey,
|
| const unsigned char *data, unsigned int dataLen);
|
|
|
| /* note: despite the name, this function takes a private key. */
|
| -SECStatus PK11_PubDecryptRaw(SECKEYPrivateKey *key, unsigned char *data,
|
| - unsigned *outLen, unsigned int maxLen, unsigned char *enc, unsigned encLen);
|
| +SECStatus PK11_PubDecryptRaw(SECKEYPrivateKey *key,
|
| + unsigned char *data, unsigned *outLen,
|
| + unsigned int maxLen,
|
| + const unsigned char *enc, unsigned encLen);
|
| #define PK11_PrivDecryptRaw PK11_PubDecryptRaw
|
| /* The encrypt function that complements the above decrypt function. */
|
| -SECStatus PK11_PubEncryptRaw(SECKEYPublicKey *key, unsigned char *enc,
|
| - unsigned char *data, unsigned dataLen, void *wincx);
|
| -
|
| -SECStatus PK11_PrivDecryptPKCS1(SECKEYPrivateKey *key, unsigned char *data,
|
| - unsigned *outLen, unsigned int maxLen, unsigned char *enc, unsigned encLen);
|
| +SECStatus PK11_PubEncryptRaw(SECKEYPublicKey *key,
|
| + unsigned char *enc,
|
| + const unsigned char *data, unsigned dataLen,
|
| + void *wincx);
|
| +
|
| +SECStatus PK11_PrivDecryptPKCS1(SECKEYPrivateKey *key,
|
| + unsigned char *data, unsigned *outLen,
|
| + unsigned int maxLen,
|
| + const unsigned char *enc, unsigned encLen);
|
| /* The encrypt function that complements the above decrypt function. */
|
| -SECStatus PK11_PubEncryptPKCS1(SECKEYPublicKey *key, unsigned char *enc,
|
| - unsigned char *data, unsigned dataLen, void *wincx);
|
| +SECStatus PK11_PubEncryptPKCS1(SECKEYPublicKey *key,
|
| + unsigned char *enc,
|
| + const unsigned char *data, unsigned dataLen,
|
| + void *wincx);
|
| +
|
| +SECStatus PK11_PrivDecrypt(SECKEYPrivateKey *key,
|
| + CK_MECHANISM_TYPE mechanism, SECItem *param,
|
| + unsigned char *out, unsigned int *outLen,
|
| + unsigned int maxLen,
|
| + const unsigned char *enc, unsigned int encLen);
|
| +SECStatus PK11_PubEncrypt(SECKEYPublicKey *key,
|
| + CK_MECHANISM_TYPE mechanism, SECItem *param,
|
| + unsigned char *out, unsigned int *outLen,
|
| + unsigned int maxLen,
|
| + const unsigned char *data, unsigned int dataLen,
|
| + void *wincx);
|
|
|
| SECStatus PK11_ImportPrivateKeyInfo(PK11SlotInfo *slot,
|
| SECKEYPrivateKeyInfo *pki, SECItem *nickname,
|
|
|