Skip navigation links

Package fr.cryptohash

The fr.cryptohash package contains implementations of various cryptographic hash functions.

See: Description

Package fr.cryptohash Description

The fr.cryptohash package contains implementations of various cryptographic hash functions.

All implemented functions assume the format of a dedicated class, with a no-argument constructor, and which implements the Digest interface. An instance of such a class represents a stateful running computation, into which data is input, and and the hash result is finally obtained.

A hash function instance is not thread-safe; however, distinct instances can be used concurrently with no ill effect. Instances are independent of each other, and mobilize no special ressources beyond a few plain Java objects. There is no need to "close" a given instance in any way.

An instance of Digest can be duplicated with the copy() method; the returned clone is thereafter independent of the original. This can be used to capture the hash function state at some point, after some data bytes have been input.

An instance of Digest can be reset at any time; this sets the hash function back to its initial state, ready to accept a new message. A call to reset() is automatically implied when the current hash operation is terminated (with a digest() method call).

Apart from the hash function classes, the fr.cryptohash package contains the following:

 ==========================(LICENSE BEGIN)============================

 Copyright (c) 2007-2010  Projet RNRT SAPHIR
 
 Permission is hereby granted, free of charge, to any person obtaining
 a copy of this software and associated documentation files (the
 "Software"), to deal in the Software without restriction, including
 without limitation the rights to use, copy, modify, merge, publish,
 distribute, sublicense, and/or sell copies of the Software, and to
 permit persons to whom the Software is furnished to do so, subject to
 the following conditions:
 
 The above copyright notice and this permission notice shall be
 included in all copies or substantial portions of the Software.
 
 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
 IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
 CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
 TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
 SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

 ===========================(LICENSE END)=============================
 
Version:
$Revision: 231 $
Author:
Thomas Pornin <thomas.pornin@cryptolog.com>
Skip navigation links

Copyright © 2014. All rights reserved.