stlab.adobe.com Adobe Systems Incorporated

A bit-oriented implementation of the SHA-512 Secure Hash Algorithm.

#include <sha.hpp>

List of all members.

Public Types

typedef traits_type::digest_type digest_type

Public Member Functions

template<typename I >
digest_type digest (I first, I last)
template<typename I >
digest_type digest (I first, boost::uint64_t num_bits)

Detailed Description

Definition at line 990 of file sha.hpp.


Member Typedef Documentation

A boost::array<boost::uint64_t, 8> for the 512-bit digest

Definition at line 996 of file sha.hpp.


Member Function Documentation

adobe::sha512_t::digest_type digest ( first,
last 
)
Precondition:
sizeof(std::iterator_traits<I>::value_type) must be 1
Parameters:
firstfirst iterator over the range to hash
lastlast iterator over the range to hash
Returns:
The SHA-512 digest of the message
Note:
While the SHA standard specifies the ability to process messages of 2^128 in length, currently this SHA-512 implementation only handles messages up to 2^64 in length.

Definition at line 999 of file sha.hpp.

adobe::sha512_t::digest_type digest ( first,
boost::uint64_t  num_bits 
)
Precondition:
sizeof(std::iterator_traits<I>::value_type) must be 1
Parameters:
firstfirst iterator over the range to hash
num_bitsnumber of bits to hash
Returns:
The SHA-512 digest of the message
Note:
While the SHA standard specifies the ability to process messages of 2^128 in length, currently this SHA-512 implementation only handles messages up to 2^64 in length.

Definition at line 1007 of file sha.hpp.

Copyright © 2006-2007 Adobe Systems Incorporated.

Use of this website signifies your agreement to the Terms of Use and Online Privacy Policy.

Search powered by Google