/********************************************************************
 * @author:      Kaven
 * @email:       kaven@wuwenkai.com
 * @website:     http://kavenblog.com
 * @file:        [basic] /src/libs/hashing_algorithms/KavenSHA.ts
 * @create:      2019-04-03 18:12:33.984
 * @modify:      2019-04-05 22:50:29.190
 * @version:     1.1.20
 * @times:       86
 * @lines:       698
 * @copyright:   Copyright © 2019 Kaven. All Rights Reserved.
 * @description: [description]
 * @license:
 * 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.
 ********************************************************************/
import { BitString } from "../BitString";
/**
 * SHA1 and SHA2
 */
export declare class KavenSHA {
    /**
     * SHA-512 initial hash values(in big-endian).
     *
     * These words were obtained by taking the first sixty-four bits of
     * the fractional parts of the square roots of the first eight prime numbers.
     */
    static readonly SHA512_INITIAL_HASH_VALUES: BitString[];
    /**
     *
     * @param str
     * @see {@link https://en.wikipedia.org/wiki/SHA-1}
     */
    ComputeSHA1(str: string): string;
    /**
     *
     * @param str
     * @see {@link https://en.wikipedia.org/wiki/SHA-2}
     */
    ComputeSHA256(str: string): string;
    ComputeSHA224(str: string): string;
    ComputeSHA512(str: string): string;
    ComputeSHA384(str: string): string;
    ComputeSHA512T(str: string, t: number): string;
    protected compute_224_256(data: number[], initialHashValues: number[]): number[];
    protected compute_384_512(data: number[], initialHashValues: BitString[]): BitString[];
}
//# sourceMappingURL=KavenSHA.d.ts.map