Left: | ||
Right: |
LEFT | RIGHT |
---|---|
1 /* This Source Code Form is subject to the terms of the Mozilla Public | 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 | 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/. */ | 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
4 #ifndef _PK11PUB_H_ | 4 #ifndef _PK11PUB_H_ |
5 #define _PK11PUB_H_ | 5 #define _PK11PUB_H_ |
6 #include "plarena.h" | 6 #include "plarena.h" |
7 #include "seccomon.h" | 7 #include "seccomon.h" |
8 #include "secoidt.h" | 8 #include "secoidt.h" |
9 #include "secdert.h" | 9 #include "secdert.h" |
10 #include "keyt.h" | 10 #include "keyt.h" |
(...skipping 693 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
704 * private key. | 704 * private key. |
705 * | 705 * |
706 * Return 0 or -1 on failure. (XXX Should we fix it to always return | 706 * Return 0 or -1 on failure. (XXX Should we fix it to always return |
707 * -1 on failure?) | 707 * -1 on failure?) |
708 */ | 708 */ |
709 int PK11_SignatureLen(SECKEYPrivateKey *key); | 709 int PK11_SignatureLen(SECKEYPrivateKey *key); |
710 PK11SlotInfo * PK11_GetSlotFromPrivateKey(SECKEYPrivateKey *key); | 710 PK11SlotInfo * PK11_GetSlotFromPrivateKey(SECKEYPrivateKey *key); |
711 SECStatus PK11_Sign(SECKEYPrivateKey *key, SECItem *sig, | 711 SECStatus PK11_Sign(SECKEYPrivateKey *key, SECItem *sig, |
712 const SECItem *hash); | 712 const SECItem *hash); |
713 SECStatus PK11_SignWithMechanism(SECKEYPrivateKey *key, | 713 SECStatus PK11_SignWithMechanism(SECKEYPrivateKey *key, |
714 » » CK_MECHANISM_TYPE mechanism, SECItem *param, SECItem *sig , | 714 CK_MECHANISM_TYPE mechanism, SECItem *param, |
715 » » const SECItem *hash); | 715 SECItem *sig, const SECItem *hash); |
mt
2015/10/16 17:54:27
nit: check alignment
ttaubert
2015/10/16 19:00:00
Done.
| |
716 SECStatus PK11_SignWithSymKey(PK11SymKey *symKey, CK_MECHANISM_TYPE mechanism, | 716 SECStatus PK11_SignWithSymKey(PK11SymKey *symKey, CK_MECHANISM_TYPE mechanism, |
717 SECItem *param, SECItem *sig, const SECItem *data); | 717 SECItem *param, SECItem *sig, const SECItem *data); |
718 SECStatus PK11_VerifyRecover(SECKEYPublicKey *key, const SECItem *sig, | 718 SECStatus PK11_VerifyRecover(SECKEYPublicKey *key, const SECItem *sig, |
719 SECItem *dsig, void * wincx); | 719 SECItem *dsig, void * wincx); |
720 SECStatus PK11_Verify(SECKEYPublicKey *key, const SECItem *sig, | 720 SECStatus PK11_Verify(SECKEYPublicKey *key, const SECItem *sig, |
721 const SECItem *hash, void *wincx); | 721 const SECItem *hash, void *wincx); |
722 SECStatus PK11_VerifyWithMechanism(SECKEYPublicKey *key, | 722 SECStatus PK11_VerifyWithMechanism(SECKEYPublicKey *key, |
723 CK_MECHANISM_TYPE mechanism, SECItem *param, | 723 CK_MECHANISM_TYPE mechanism, SECItem *param, |
724 const SECItem *sig, const SECItem *hash, | 724 const SECItem *sig, const SECItem *hash, |
725 void *wincx); | 725 void *wincx); |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
880 PK11_GetLowLevelKeyIDForCert(PK11SlotInfo *slot, | 880 PK11_GetLowLevelKeyIDForCert(PK11SlotInfo *slot, |
881 CERTCertificate *cert, void *pwarg); | 881 CERTCertificate *cert, void *pwarg); |
882 SECItem * | 882 SECItem * |
883 PK11_GetLowLevelKeyIDForPrivateKey(SECKEYPrivateKey *key); | 883 PK11_GetLowLevelKeyIDForPrivateKey(SECKEYPrivateKey *key); |
884 | 884 |
885 PRBool SECMOD_HasRootCerts(void); | 885 PRBool SECMOD_HasRootCerts(void); |
886 | 886 |
887 SEC_END_PROTOS | 887 SEC_END_PROTOS |
888 | 888 |
889 #endif | 889 #endif |
LEFT | RIGHT |