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 _KEYI_H_ andre@0: #define _KEYI_H_ andre@0: andre@0: andre@0: SEC_BEGIN_PROTOS andre@0: /* NSS private functions */ andre@0: /* map an oid to a keytype... actually this function and it's converse andre@0: * are good candidates for public functions.. */ andre@0: KeyType seckey_GetKeyType(SECOidTag pubKeyOid); andre@0: andre@0: /* extract the 'encryption' (could be signing) and hash oids from and andre@0: * algorithm, key and parameters (parameters is the parameters field andre@0: * of a algorithm ID structure (SECAlgorithmID)*/ andre@0: SECStatus sec_DecodeSigAlg(const SECKEYPublicKey *key, SECOidTag sigAlg, andre@0: const SECItem *param, SECOidTag *encalg, SECOidTag *hashalg); andre@0: andre@0: SEC_END_PROTOS andre@0: andre@0: #endif /* _KEYHI_H_ */