Bouncy Castle Cryptography Library 1.77.0

org.bouncycastle.jcajce.spec
Class HybridValueParameterSpec

java.lang.Object
  |
  +--org.bouncycastle.jcajce.spec.HybridValueParameterSpec
All Implemented Interfaces:
java.security.spec.AlgorithmParameterSpec

public class HybridValueParameterSpec
extends java.lang.Object
implements java.security.spec.AlgorithmParameterSpec


Constructor Summary
HybridValueParameterSpec(byte[] t, java.security.spec.AlgorithmParameterSpec baseSpec)
          Create a spec with T set to t and the spec for the KDF in the agreement to baseSpec.
 
Method Summary
 void destroy()
          Destroy this parameter spec, explicitly erasing its contents.
 java.security.spec.AlgorithmParameterSpec getBaseParameterSpec()
          Return the base parameter spec.
 byte[] getT()
          Return a reference to the T value.
 boolean isDestroyed()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HybridValueParameterSpec

public HybridValueParameterSpec(byte[] t,
                                java.security.spec.AlgorithmParameterSpec baseSpec)
Create a spec with T set to t and the spec for the KDF in the agreement to baseSpec. Note: the t value is not copied.
Parameters:
t - a shared secret to be concatenated with the agreement's Z value.
baseSpec - the base spec for the agreements KDF.
Method Detail

getT

public byte[] getT()
Return a reference to the T value.
Returns:
a reference to T.

getBaseParameterSpec

public java.security.spec.AlgorithmParameterSpec getBaseParameterSpec()
Return the base parameter spec.
Returns:
base spec to be applied to the KDF.

isDestroyed

public boolean isDestroyed()

destroy

public void destroy()
Destroy this parameter spec, explicitly erasing its contents.

Bouncy Castle Cryptography Library 1.77.0