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