diff options
author | Kai Engert <kaie@kuix.de> | 2013-02-28 12:44:50 +0100 |
---|---|---|
committer | Kai Engert <kaie@kuix.de> | 2013-02-28 12:44:50 +0100 |
commit | 3ecd967b2a9e23403935e2bc932597f7e03e7f24 (patch) | |
tree | 4b0f054f0354c2dbe401f86d864c04c6034c1621 /lib/freebl/nsslowhash.h | |
parent | f45b9ca74a609e0521d0cc4b7fc91603774992df (diff) | |
download | nss-hg-3ecd967b2a9e23403935e2bc932597f7e03e7f24.tar.gz |
Bug 845556, reorganize NSS directory layout, moving files, very large changeset! r=wtc
Diffstat (limited to 'lib/freebl/nsslowhash.h')
-rw-r--r-- | lib/freebl/nsslowhash.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/lib/freebl/nsslowhash.h b/lib/freebl/nsslowhash.h new file mode 100644 index 000000000..bbd537b5c --- /dev/null +++ b/lib/freebl/nsslowhash.h @@ -0,0 +1,28 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + +/* + * Provide FIPS validated hashing for applications that only need hashing. + * NOTE: mac'ing requires keys and will not work in this interface. + * Also NOTE: this only works with Hashing. Only the FIPS interface is enabled. + */ + +typedef struct NSSLOWInitContextStr NSSLOWInitContext; +typedef struct NSSLOWHASHContextStr NSSLOWHASHContext; + +NSSLOWInitContext *NSSLOW_Init(void); +void NSSLOW_Shutdown(NSSLOWInitContext *context); +void NSSLOW_Reset(NSSLOWInitContext *context); +NSSLOWHASHContext *NSSLOWHASH_NewContext( + NSSLOWInitContext *initContext, + HASH_HashType hashType); +void NSSLOWHASH_Begin(NSSLOWHASHContext *context); +void NSSLOWHASH_Update(NSSLOWHASHContext *context, + const unsigned char *buf, + unsigned int len); +void NSSLOWHASH_End(NSSLOWHASHContext *context, + unsigned char *buf, + unsigned int *ret, unsigned int len); +void NSSLOWHASH_Destroy(NSSLOWHASHContext *context); +unsigned int NSSLOWHASH_Length(NSSLOWHASHContext *context); |