
com.kloudtek.kryptotek.jce.JCEHMACSHA512Key Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kryptotek-core Show documentation
Show all versions of kryptotek-core Show documentation
Kryptotek provides an easy to use abstraction layer for cryptographic functions
The newest version!
/*
* Copyright (c) 2015 Kloudtek Ltd
*/
package com.kloudtek.kryptotek.jce;
import com.kloudtek.kryptotek.DigestAlgorithm;
import com.kloudtek.kryptotek.EncodedKey;
import com.kloudtek.kryptotek.InvalidKeyEncodingException;
import com.kloudtek.kryptotek.key.HMACSHA512Key;
import com.kloudtek.kryptotek.key.KeyType;
import javax.crypto.SecretKey;
import java.security.InvalidKeyException;
import static com.kloudtek.kryptotek.DigestAlgorithm.SHA512;
/**
* Created by yannick on 18/12/2014.
*/
public class JCEHMACSHA512Key extends JCEHMACKey implements HMACSHA512Key {
public JCEHMACSHA512Key(DigestAlgorithm digestAlgorithm) {
super(SHA512);
}
public JCEHMACSHA512Key(JCECryptoEngine cryptoEngine, SecretKey secretKey) {
super(cryptoEngine, SHA512, secretKey);
}
public JCEHMACSHA512Key(JCECryptoEngine cryptoEngine, byte[] encodedRawKey) {
super(cryptoEngine, SHA512, encodedRawKey);
}
public JCEHMACSHA512Key(JCECryptoEngine cryptoEngine, EncodedKey encodedKey) throws InvalidKeyEncodingException, InvalidKeyException {
super(cryptoEngine, SHA512, encodedKey);
}
@Override
public KeyType getType() {
return KeyType.HMAC_SHA512;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy