diff options
author | Lorry Tar Creator <lorry-tar-importer@lorry> | 2017-01-04 14:24:24 +0000 |
---|---|---|
committer | Lorry Tar Creator <lorry-tar-importer@lorry> | 2017-01-04 14:24:24 +0000 |
commit | dc1565216a5d20ae0d75872151523252309a1292 (patch) | |
tree | d57454ba9a40386552179eddf60d28bd1e8f3d54 /nss/lib/smime/cmslocal.h | |
parent | 26c046fbc57d53136b4fb3b5e0d18298318125d4 (diff) | |
download | nss-dc1565216a5d20ae0d75872151523252309a1292.tar.gz |
nss-3.28.1nss-3.28.1
Diffstat (limited to 'nss/lib/smime/cmslocal.h')
-rw-r--r-- | nss/lib/smime/cmslocal.h | 64 |
1 files changed, 31 insertions, 33 deletions
diff --git a/nss/lib/smime/cmslocal.h b/nss/lib/smime/cmslocal.h index ee00c05..ef7d500 100644 --- a/nss/lib/smime/cmslocal.h +++ b/nss/lib/smime/cmslocal.h @@ -23,7 +23,7 @@ extern const SEC_ASN1Template NSSCMSContentInfoTemplate[]; struct NSSCMSContentInfoPrivateStr { NSSCMSCipherContext *ciphcx; NSSCMSDigestContext *digcx; - PRBool dontStream; + PRBool dontStream; }; /************************************************************************/ @@ -38,7 +38,6 @@ SEC_BEGIN_PROTOS */ SECStatus NSS_CMSContentInfo_Private_Init(NSSCMSContentInfo *cinfo); - /*********************************************************************** * cmscipher.c - en/decryption routines ***********************************************************************/ @@ -105,12 +104,12 @@ NSS_CMSCipherContext_EncryptLength(NSSCMSCipherContext *cc, unsigned int input_l * "output" and storing the output length in "*output_len_p". * "cc" is the return value from NSS_CMSCipher_StartDecrypt. * When "final" is true, this is the last of the data to be decrypted. - */ + */ extern SECStatus NSS_CMSCipherContext_Decrypt(NSSCMSCipherContext *cc, unsigned char *output, - unsigned int *output_len_p, unsigned int max_output_len, - const unsigned char *input, unsigned int input_len, - PRBool final); + unsigned int *output_len_p, unsigned int max_output_len, + const unsigned char *input, unsigned int input_len, + PRBool final); /* * NSS_CMSCipherContext_Encrypt - do the encryption @@ -128,12 +127,12 @@ NSS_CMSCipherContext_Decrypt(NSSCMSCipherContext *cc, unsigned char *output, * "output" and storing the output length in "*output_len_p". * "cc" is the return value from NSS_CMSCipher_StartEncrypt. * When "final" is true, this is the last of the data to be encrypted. - */ + */ extern SECStatus NSS_CMSCipherContext_Encrypt(NSSCMSCipherContext *cc, unsigned char *output, - unsigned int *output_len_p, unsigned int max_output_len, - const unsigned char *input, unsigned int input_len, - PRBool final); + unsigned int *output_len_p, unsigned int max_output_len, + const unsigned char *input, unsigned int input_len, + PRBool final); /************************************************************************ * cmspubkey.c - public key operations @@ -167,12 +166,12 @@ NSS_CMSUtil_DecryptSymKey_RSA(SECKEYPrivateKey *privkey, SECItem *encKey, SECOid extern SECStatus NSS_CMSUtil_EncryptSymKey_ESDH(PLArenaPool *poolp, CERTCertificate *cert, PK11SymKey *key, - SECItem *encKey, SECItem **ukm, SECAlgorithmID *keyEncAlg, - SECItem *originatorPubKey); + SECItem *encKey, SECItem **ukm, SECAlgorithmID *keyEncAlg, + SECItem *originatorPubKey); extern PK11SymKey * NSS_CMSUtil_DecryptSymKey_ESDH(SECKEYPrivateKey *privkey, SECItem *encKey, - SECAlgorithmID *keyEncAlg, SECOidTag bulkalgtag, void *pwfn_arg); + SECAlgorithmID *keyEncAlg, SECOidTag bulkalgtag, void *pwfn_arg); /************************************************************************ * cmsreclist.c - recipient list stuff @@ -213,13 +212,13 @@ NSS_CMSArray_Count(void **array); * * If "secondary" is not NULL, the same reordering gets applied to it. * If "tertiary" is not NULL, the same reordering gets applied to it. - * "compare" is a function that returns + * "compare" is a function that returns * < 0 when the first element is less than the second * = 0 when the first element is equal to the second * > 0 when the first element is greater than the second */ extern void -NSS_CMSArray_Sort(void **primary, int (*compare)(void *,void *), void **secondary, void **tertiary); +NSS_CMSArray_Sort(void **primary, int (*compare)(void *, void *), void **secondary, void **tertiary); /************************************************************************ * cmsattr.c - misc attribute functions @@ -296,7 +295,7 @@ NSS_CMSAttributeArray_FindAttrByOidTag(NSSCMSAttribute **attrs, SECOidTag oidtag /* * NSS_CMSAttributeArray_AddAttr - add an attribute to an - * array of attributes. + * array of attributes. */ extern SECStatus NSS_CMSAttributeArray_AddAttr(PLArenaPool *poolp, NSSCMSAttribute ***attrs, NSSCMSAttribute *attr); @@ -305,7 +304,8 @@ NSS_CMSAttributeArray_AddAttr(PLArenaPool *poolp, NSSCMSAttribute ***attrs, NSSC * NSS_CMSAttributeArray_SetAttr - set an attribute's value in a set of attributes */ extern SECStatus -NSS_CMSAttributeArray_SetAttr(PLArenaPool *poolp, NSSCMSAttribute ***attrs, SECOidTag type, SECItem *value, PRBool encoded); +NSS_CMSAttributeArray_SetAttr(PLArenaPool *poolp, NSSCMSAttribute ***attrs, + SECOidTag type, SECItem *value, PRBool encoded); /* * NSS_CMSSignedData_AddTempCertificate - add temporary certificate references. @@ -320,33 +320,31 @@ NSS_CMSSignedData_AddTempCertificate(NSSCMSSignedData *sigd, CERTCertificate *ce */ SECOidTag NSS_CMSUtil_MapSignAlgs(SECOidTag signAlg); - /************************************************************************/ /* * local functions to handle user defined S/MIME content types */ - PRBool NSS_CMSType_IsWrapper(SECOidTag type); PRBool NSS_CMSType_IsData(SECOidTag type); size_t NSS_CMSType_GetContentSize(SECOidTag type); -const SEC_ASN1Template * NSS_CMSType_GetTemplate(SECOidTag type); +const SEC_ASN1Template *NSS_CMSType_GetTemplate(SECOidTag type); void NSS_CMSGenericWrapperData_Destroy(SECOidTag type, - NSSCMSGenericWrapperData *gd); -SECStatus NSS_CMSGenericWrapperData_Decode_BeforeData(SECOidTag type, - NSSCMSGenericWrapperData *gd); -SECStatus NSS_CMSGenericWrapperData_Decode_AfterData(SECOidTag type, - NSSCMSGenericWrapperData *gd); -SECStatus NSS_CMSGenericWrapperData_Decode_AfterEnd(SECOidTag type, - NSSCMSGenericWrapperData *gd); -SECStatus NSS_CMSGenericWrapperData_Encode_BeforeStart(SECOidTag type, - NSSCMSGenericWrapperData *gd); -SECStatus NSS_CMSGenericWrapperData_Encode_BeforeData(SECOidTag type, - NSSCMSGenericWrapperData *gd); -SECStatus NSS_CMSGenericWrapperData_Encode_AfterData(SECOidTag type, - NSSCMSGenericWrapperData *gd); + NSSCMSGenericWrapperData *gd); +SECStatus NSS_CMSGenericWrapperData_Decode_BeforeData(SECOidTag type, + NSSCMSGenericWrapperData *gd); +SECStatus NSS_CMSGenericWrapperData_Decode_AfterData(SECOidTag type, + NSSCMSGenericWrapperData *gd); +SECStatus NSS_CMSGenericWrapperData_Decode_AfterEnd(SECOidTag type, + NSSCMSGenericWrapperData *gd); +SECStatus NSS_CMSGenericWrapperData_Encode_BeforeStart(SECOidTag type, + NSSCMSGenericWrapperData *gd); +SECStatus NSS_CMSGenericWrapperData_Encode_BeforeData(SECOidTag type, + NSSCMSGenericWrapperData *gd); +SECStatus NSS_CMSGenericWrapperData_Encode_AfterData(SECOidTag type, + NSSCMSGenericWrapperData *gd); SEC_END_PROTOS |