Bouncy Castle Cryptography Library 1.87

org.bouncycastle.jcajce.provider.asymmetric.xwing
Class BCXWingPublicKey

java.lang.Object
  extended byorg.bouncycastle.jcajce.provider.asymmetric.xwing.BCXWingPublicKey
All Implemented Interfaces:
java.security.Key, java.security.PublicKey, java.io.Serializable, XWingKey, XWingPublicKey

public class BCXWingPublicKey
extends java.lang.Object
implements XWingPublicKey

See Also:
Serialized Form

Constructor Summary
BCXWingPublicKey(SubjectPublicKeyInfo keyInfo)
           
BCXWingPublicKey(XWingPublicKeyParameters params)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.lang.String getAlgorithm()
           
 byte[] getEncoded()
           
 java.lang.String getFormat()
           
 byte[] getPublicData()
          Return the raw encoded data representing the public key (ML-KEM-768 encapsulation key || X25519 public key).
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BCXWingPublicKey

public BCXWingPublicKey(XWingPublicKeyParameters params)

BCXWingPublicKey

public BCXWingPublicKey(SubjectPublicKeyInfo keyInfo)
                 throws java.io.IOException
Method Detail

equals

public boolean equals(java.lang.Object o)

hashCode

public int hashCode()

getAlgorithm

public final java.lang.String getAlgorithm()
Specified by:
getAlgorithm in interface java.security.Key
Returns:
name of the algorithm - "X-WING".

getPublicData

public byte[] getPublicData()
Description copied from interface: XWingPublicKey
Return the raw encoded data representing the public key (ML-KEM-768 encapsulation key || X25519 public key).

Specified by:
getPublicData in interface XWingPublicKey
Returns:
the raw 1216 byte public key data.

getEncoded

public byte[] getEncoded()
Specified by:
getEncoded in interface java.security.Key

getFormat

public java.lang.String getFormat()
Specified by:
getFormat in interface java.security.Key

toString

public java.lang.String toString()

Bouncy Castle Cryptography Library 1.87