security/nss/lib/cryptohi/keyi.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/security/nss/lib/cryptohi/keyi.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,23 @@
     1.4 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.5 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.6 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.7 +
     1.8 +#ifndef _KEYI_H_
     1.9 +#define _KEYI_H_
    1.10 +
    1.11 +
    1.12 +SEC_BEGIN_PROTOS
    1.13 +/* NSS private functions */
    1.14 +/* map an oid to a keytype... actually this function and it's converse
    1.15 + *  are good candidates for public functions..  */
    1.16 +KeyType seckey_GetKeyType(SECOidTag pubKeyOid);
    1.17 +
    1.18 +/* extract the 'encryption' (could be signing) and hash oids from and
    1.19 + * algorithm, key and parameters (parameters is the parameters field
    1.20 + * of a algorithm ID structure (SECAlgorithmID)*/
    1.21 +SECStatus sec_DecodeSigAlg(const SECKEYPublicKey *key, SECOidTag sigAlg,
    1.22 +             const SECItem *param, SECOidTag *encalg, SECOidTag *hashalg);
    1.23 +
    1.24 +SEC_END_PROTOS
    1.25 +
    1.26 +#endif /* _KEYHI_H_ */

mercurial