Class WeakBB



  • public class WeakBB
    extends java.lang.Object
    WeakBB contains the functions to use Weak Boneh-Boyen signatures (https://ia.cr/2004/171)
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  WeakBB.KeyPair
      WeakBB.KeyPair represents a key pair for weak Boneh-Boyen signatures
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static WeakBB.KeyPair weakBBKeyGen​()
      Generate a new key-pair set
      static org.apache.milagro.amcl.FP256BN.ECP weakBBSign​(org.apache.milagro.amcl.FP256BN.BIG sk, org.apache.milagro.amcl.FP256BN.BIG m)
      Produces a WBB signature for a give message
      static boolean weakBBVerify​(org.apache.milagro.amcl.FP256BN.ECP2 pk, org.apache.milagro.amcl.FP256BN.ECP sig, org.apache.milagro.amcl.FP256BN.BIG m)
      Verify a WBB signature for a certain message
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • weakBBKeyGen

        public static WeakBB.KeyPair weakBBKeyGen​()
        Generate a new key-pair set
        Returns:
        a freshly generated key pair
      • weakBBSign

        public static org.apache.milagro.amcl.FP256BN.ECP weakBBSign​(org.apache.milagro.amcl.FP256BN.BIG sk,
                                                                     org.apache.milagro.amcl.FP256BN.BIG m)
        Produces a WBB signature for a give message
        Parameters:
        sk - Secret key
        m - Message
        Returns:
        Signature
      • weakBBVerify

        public static boolean weakBBVerify​(org.apache.milagro.amcl.FP256BN.ECP2 pk,
                                           org.apache.milagro.amcl.FP256BN.ECP sig,
                                           org.apache.milagro.amcl.FP256BN.BIG m)
        Verify a WBB signature for a certain message
        Parameters:
        pk - Public key
        sig - Signature
        m - Message
        Returns:
        True iff valid