security/nss/lib/freebl/nsslowhash.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/security/nss/lib/freebl/nsslowhash.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,28 @@
     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 + * Provide FIPS validated hashing for applications that only need hashing.
    1.10 + * NOTE: mac'ing requires keys and will not work in this interface.
    1.11 + * Also NOTE: this only works with Hashing. Only the FIPS interface is enabled.
    1.12 + */
    1.13 +
    1.14 +typedef struct NSSLOWInitContextStr NSSLOWInitContext;
    1.15 +typedef struct NSSLOWHASHContextStr NSSLOWHASHContext;
    1.16 +
    1.17 +NSSLOWInitContext *NSSLOW_Init(void);
    1.18 +void NSSLOW_Shutdown(NSSLOWInitContext *context);
    1.19 +void NSSLOW_Reset(NSSLOWInitContext *context);
    1.20 +NSSLOWHASHContext *NSSLOWHASH_NewContext(
    1.21 +			NSSLOWInitContext *initContext, 
    1.22 +			HASH_HashType hashType);
    1.23 +void NSSLOWHASH_Begin(NSSLOWHASHContext *context);
    1.24 +void NSSLOWHASH_Update(NSSLOWHASHContext *context, 
    1.25 +			const unsigned char *buf, 
    1.26 +			unsigned int len);
    1.27 +void NSSLOWHASH_End(NSSLOWHASHContext *context, 
    1.28 +			unsigned char *buf, 
    1.29 +			unsigned int *ret, unsigned int len);
    1.30 +void NSSLOWHASH_Destroy(NSSLOWHASHContext *context);
    1.31 +unsigned int NSSLOWHASH_Length(NSSLOWHASHContext *context); 

mercurial