|
Bouncy Castle Cryptography Library 1.81 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.bouncycastle.jcajce.spec.HybridValueParameterSpec
SP 800-56C Hybrid Value spec, by default to allow the secret in a key agreement to be created as "Z | T" where T is some other secret value as described in Section 2. If the value doPrepend is set to true the spec will be used to calculate "T | Z" instead.
Get methods throw IllegalStateException if destroy() is called.
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. |
|
HybridValueParameterSpec(byte[] t,
boolean doPrepend,
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()
Return true if the destroy() method is called and the contents are erased. |
boolean |
isPrependedT()
Return whether or not T should be prepended. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public HybridValueParameterSpec(byte[] t, java.security.spec.AlgorithmParameterSpec baseSpec)
t
- a shared secret to be concatenated with the agreement's Z value.baseSpec
- the base spec for the agreements KDF.public HybridValueParameterSpec(byte[] t, boolean doPrepend, java.security.spec.AlgorithmParameterSpec baseSpec)
t
- a shared secret to be concatenated with the agreement's Z value.baseSpec
- the base spec for the agreements KDF.Method Detail |
public boolean isPrependedT()
public byte[] getT()
public java.security.spec.AlgorithmParameterSpec getBaseParameterSpec()
public boolean isDestroyed()
isDestroyed
in interface javax.security.auth.Destroyable
public void destroy()
destroy
in interface javax.security.auth.Destroyable
|
Bouncy Castle Cryptography Library 1.81 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |