Bouncy Castle Cryptography Library 1.81

org.bouncycastle.pqc.crypto.util
Class PQCOtherInfoGenerator.PartyV

java.lang.Object
  extended byorg.bouncycastle.pqc.crypto.util.PQCOtherInfoGenerator
      extended byorg.bouncycastle.pqc.crypto.util.PQCOtherInfoGenerator.PartyV
Enclosing class:
PQCOtherInfoGenerator

public static class PQCOtherInfoGenerator.PartyV
extends PQCOtherInfoGenerator

Party V (responder) generation.


Nested Class Summary
 
Nested classes inherited from class org.bouncycastle.pqc.crypto.util.PQCOtherInfoGenerator
PQCOtherInfoGenerator.PartyU, PQCOtherInfoGenerator.PartyV
 
Field Summary
 
Fields inherited from class org.bouncycastle.pqc.crypto.util.PQCOtherInfoGenerator
otherInfoBuilder, random, used
 
Constructor Summary
PQCOtherInfoGenerator.PartyV(KEMParameters kemParams, AlgorithmIdentifier algorithmID, byte[] partyUInfo, byte[] partyVInfo, java.security.SecureRandom random)
          Create a basic builder with just the compulsory fields for the responder.
 
Method Summary
 DEROtherInfo generate()
           
 byte[] getSuppPrivInfoPartB(byte[] suppPrivInfoPartA)
           
 PQCOtherInfoGenerator withSuppPubInfo(byte[] suppPubInfo)
          Add optional supplementary public info (DER tagged, implicit, 0).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PQCOtherInfoGenerator.PartyV

public PQCOtherInfoGenerator.PartyV(KEMParameters kemParams,
                                    AlgorithmIdentifier algorithmID,
                                    byte[] partyUInfo,
                                    byte[] partyVInfo,
                                    java.security.SecureRandom random)
Create a basic builder with just the compulsory fields for the responder.

Parameters:
kemParams - the key type parameters for populating the private info field.
algorithmID - the algorithm associated with this invocation of the KDF.
partyUInfo - sender party info.
partyVInfo - receiver party info.
random - a source of randomness.
Method Detail

withSuppPubInfo

public PQCOtherInfoGenerator withSuppPubInfo(byte[] suppPubInfo)
Add optional supplementary public info (DER tagged, implicit, 0).

Parameters:
suppPubInfo - supplementary public info.
Returns:
the current builder instance.

getSuppPrivInfoPartB

public byte[] getSuppPrivInfoPartB(byte[] suppPrivInfoPartA)

generate

public DEROtherInfo generate()

Bouncy Castle Cryptography Library 1.81