APIdia Launch Partner
Top Description Inners Fields Constructors Methods
com.sun.crypto.provider

pack-priv abstract Class PBMAC1Core

extends HmacCore
Class Inheritance
Known Direct Subclasses
com.sun.crypto.provider.PBMAC1Core.HmacSHA1, com.sun.crypto.provider.PBMAC1Core.HmacSHA224, com.sun.crypto.provider.PBMAC1Core.HmacSHA256, com.sun.crypto.provider.PBMAC1Core.HmacSHA384, com.sun.crypto.provider.PBMAC1Core.HmacSHA512, com.sun.crypto.provider.PBMAC1Core.HmacSHA512_224, com.sun.crypto.provider.PBMAC1Core.HmacSHA512_256
Imports
jdk.internal.access.SharedSecrets, java.util.Arrays, javax.crypto.SecretKey, javax.crypto.spec.SecretKeySpec, .PBEKeySpec, .PBEParameterSpec, java.security.*, java.security.spec.*

This is an implementation of the PBMAC1 algorithms as defined in PKCS#5 v2.1 standard.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
public static class
public static class
public static class
public static class
public static class
public static class

Field Summary

Modifier and TypeField and Description
private final int
private final String
private final String

Constructor Summary

AccessConstructor and Description
pack-priv
PBMAC1Core(String kdfAlgo, String hashAlgo, int blockLength)

Creates an instance of PBMAC1 according to the selected password-based key derivation function.

Method Summary

Modifier and TypeMethod and Description
protected void
engineInit(Key
the secret key.
key
,
AlgorithmParameterSpec
the algorithm parameters.
params
)

Overrides com.sun.crypto.provider.HmacCore.engineInit.

Initializes the HMAC with the given secret key and algorithm parameters.

private static PBKDF2Core
Inherited from com.sun.crypto.provider.HmacCore:
cloneengineDoFinalengineGetMacLengthengineResetengineUpdateengineUpdateengineUpdate

Field Detail

blockLengthback to summary
private final int blockLength
hashAlgoback to summary
private final String hashAlgo
kdfAlgoback to summary
private final String kdfAlgo

Constructor Detail

PBMAC1Coreback to summary
pack-priv PBMAC1Core(String kdfAlgo, String hashAlgo, int blockLength) throws NoSuchAlgorithmException

Creates an instance of PBMAC1 according to the selected password-based key derivation function.

Method Detail

engineInitback to summary
protected void engineInit(Key key, AlgorithmParameterSpec params) throws InvalidKeyException, InvalidAlgorithmParameterException

Overrides com.sun.crypto.provider.HmacCore.engineInit.

Initializes the HMAC with the given secret key and algorithm parameters.

Parameters
key:Key

the secret key.

params:AlgorithmParameterSpec

the algorithm parameters.

Exceptions
InvalidKeyException:
if the given key is inappropriate for initializing this MAC.
InvalidAlgorithmParameterException:
if the given algorithm parameters are inappropriate for this MAC.
getKDFImplback to summary
private static PBKDF2Core getKDFImpl(String algo)
com.sun.crypto.provider back to summary

public final Class PBMAC1Core.HmacSHA1

extends PBMAC1Core
Class Inheritance

Constructor Summary

AccessConstructor and Description
public

Method Summary

Inherited from com.sun.crypto.provider.PBMAC1Core:
engineInit

Constructor Detail

HmacSHA1back to summary
public HmacSHA1() throws NoSuchAlgorithmException
com.sun.crypto.provider back to summary

public final Class PBMAC1Core.HmacSHA224

extends PBMAC1Core
Class Inheritance

Constructor Summary

AccessConstructor and Description
public

Method Summary

Inherited from com.sun.crypto.provider.PBMAC1Core:
engineInit

Constructor Detail

HmacSHA224back to summary
public HmacSHA224() throws NoSuchAlgorithmException
com.sun.crypto.provider back to summary

public final Class PBMAC1Core.HmacSHA256

extends PBMAC1Core
Class Inheritance

Constructor Summary

AccessConstructor and Description
public

Method Summary

Inherited from com.sun.crypto.provider.PBMAC1Core:
engineInit

Constructor Detail

HmacSHA256back to summary
public HmacSHA256() throws NoSuchAlgorithmException
com.sun.crypto.provider back to summary

public final Class PBMAC1Core.HmacSHA384

extends PBMAC1Core
Class Inheritance

Constructor Summary

AccessConstructor and Description
public

Method Summary

Inherited from com.sun.crypto.provider.PBMAC1Core:
engineInit

Constructor Detail

HmacSHA384back to summary
public HmacSHA384() throws NoSuchAlgorithmException
com.sun.crypto.provider back to summary

public final Class PBMAC1Core.HmacSHA512

extends PBMAC1Core
Class Inheritance

Constructor Summary

AccessConstructor and Description
public

Method Summary

Inherited from com.sun.crypto.provider.PBMAC1Core:
engineInit

Constructor Detail

HmacSHA512back to summary
public HmacSHA512() throws NoSuchAlgorithmException
com.sun.crypto.provider back to summary

public final Class PBMAC1Core.HmacSHA512_224

extends PBMAC1Core
Class Inheritance

Constructor Summary

AccessConstructor and Description
public

Method Summary

Inherited from com.sun.crypto.provider.PBMAC1Core:
engineInit

Constructor Detail

HmacSHA512_224back to summary
public HmacSHA512_224() throws NoSuchAlgorithmException
com.sun.crypto.provider back to summary

public final Class PBMAC1Core.HmacSHA512_256

extends PBMAC1Core
Class Inheritance

Constructor Summary

AccessConstructor and Description
public

Method Summary

Inherited from com.sun.crypto.provider.PBMAC1Core:
engineInit

Constructor Detail

HmacSHA512_256back to summary
public HmacSHA512_256() throws NoSuchAlgorithmException