All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.futureble.cryptography.crypto.HmacSHA224 Maven / Gradle / Ivy

The newest version!
/*
 * Copyright (c) 2016-2021 the original author or authors.
 * cryptography is licensed under Mulan PubL v2.
 * You can use this software according to the terms and conditions of the Mulan PubL v2.
 * You may obtain a copy of Mulan PubL v2 at:
 *          http://license.coscl.org.cn/MulanPubL-2.0
 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
 * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
 * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
 * See the Mulan PubL v2 for more details.
 */
  
package com.futureble.cryptography.crypto;

import com.futureble.cryptography.parameter.CryptographicAlgorithm;

/**
 * Hmac-SHA224
 *
 * @author 陈光毅
 * @since 1.0
 */
public class HmacSHA224 extends AbstractMac {

    private static volatile HmacSHA224 INSTANCE = null;

    private HmacSHA224() {}

    static HmacSHA224 getInstance() {
        if (INSTANCE == null) {
            synchronized (HmacSHA224.class) {
                if (INSTANCE == null) {
                    INSTANCE = new HmacSHA224();
                }
            }
        }
        return INSTANCE;
    }

    @Override
    public String getName() {
        return CryptographicAlgorithm.HMAC_224.getName();
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy