Class BCXWingPublicKey

java.lang.Object
org.bouncycastle.jcajce.provider.asymmetric.xwing.BCXWingPublicKey
All Implemented Interfaces:
Serializable, AsymmetricKey, DEREncodablePREVIEW, Key, PublicKey, XWingKey, XWingPublicKey

public class BCXWingPublicKey extends Object implements XWingPublicKey
See Also:
  • Constructor Details

  • Method Details

    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • getAlgorithm

      public final String getAlgorithm()
      Specified by:
      getAlgorithm in interface 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 Key
    • getFormat

      public String getFormat()
      Specified by:
      getFormat in interface Key
    • toString

      public String toString()
      Overrides:
      toString in class Object