Class SSS


  • public class SSS
    extends java.lang.Object
    Shamirs secret sharing
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static interface  SSS.LibSSS  
    • Constructor Summary

      Constructors 
      Constructor Description
      SSS()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static byte[] combineKeyshares​(java.util.List<byte[]> shares)  
      static byte[] combineShares​(java.util.List<byte[]> shares)  
      static java.util.List<byte[]> createKeyshares​(byte[] data, int n, int k)  
      static java.util.List<byte[]> createShares​(byte[] data, int n, int k)  
      • Methods inherited from class java.lang.Object

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

      • SSS

        public SSS()
    • Method Detail

      • createShares

        public static java.util.List<byte[]> createShares​(byte[] data,
                                                          int n,
                                                          int k)
      • combineShares

        public static byte[] combineShares​(java.util.List<byte[]> shares)
      • createKeyshares

        public static java.util.List<byte[]> createKeyshares​(byte[] data,
                                                             int n,
                                                             int k)
      • combineKeyshares

        public static byte[] combineKeyshares​(java.util.List<byte[]> shares)