andre@0: /* This Source Code Form is subject to the terms of the Mozilla Public andre@0: * License, v. 2.0. If a copy of the MPL was not distributed with this andre@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ andre@0: andre@0: #ifndef _PK11SDR_H_ andre@0: #define _PK11SDR_H_ andre@0: andre@0: #include "seccomon.h" andre@0: andre@0: SEC_BEGIN_PROTOS andre@0: andre@0: /* andre@0: * PK11SDR_Encrypt - encrypt data using the specified key id or SDR default andre@0: * result should be freed with SECItem_ZfreeItem andre@0: */ andre@0: SECStatus andre@0: PK11SDR_Encrypt(SECItem *keyid, SECItem *data, SECItem *result, void *cx); andre@0: andre@0: /* andre@0: * PK11SDR_Decrypt - decrypt data previously encrypted with PK11SDR_Encrypt andre@0: * result should be freed with SECItem_ZfreeItem andre@0: */ andre@0: SECStatus andre@0: PK11SDR_Decrypt(SECItem *data, SECItem *result, void *cx); andre@0: andre@0: SEC_END_PROTOS andre@0: andre@0: #endif