security/nss/lib/freebl/pqg.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/security/nss/lib/freebl/pqg.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,25 @@
     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 +/*
     1.9 + *  pqg.h
    1.10 + *
    1.11 + *  header file for pqg functions exported just to freebl
    1.12 + */
    1.13 +
    1.14 +#ifndef _PQG_H_
    1.15 +#define _PQG_H_ 1
    1.16 +
    1.17 +/* PQG_GetLength returns the significant bytes in the SECItem object (that is 
    1.18 + * the length of the object minus any leading zeros. Any SECItem may be used,
    1.19 + * though this function is usually used for P, Q, or G values */
    1.20 +unsigned int PQG_GetLength(const SECItem *obj);
    1.21 +/* Check to see the PQG parameters patch a NIST defined DSA size,
    1.22 + * returns SECFaillure and sets SEC_ERROR_INVALID_ARGS if it doesn't.
    1.23 + * See blapi.h for legal DSA PQG sizes. */
    1.24 +SECStatus PQG_Check(const PQGParams *params);
    1.25 +/* Return the prefered hash algorithm for the given PQGParameters. */
    1.26 +HASH_HashType PQG_GetHashType(const PQGParams *params);
    1.27 +
    1.28 +#endif /* _PQG_H_ */

mercurial