Bouncy Castle Cryptography Library 1.82

org.bouncycastle.crypto.threshold.test
Class ShamirSecretSplitterTest

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byorg.bouncycastle.crypto.threshold.test.ShamirSecretSplitterTest
All Implemented Interfaces:
junit.framework.Test

public class ShamirSecretSplitterTest
extends junit.framework.TestCase


Field Summary
static byte[][] TV011D_TV1_1_2_SPLITS
           
static byte[] TV011D_TV1_SECRET
           
static byte[][] TV011D_TV1_SPLITS
           
static byte[][] TV011D_TV1_SR
           
static byte[][] TV011D_TV2_1_2_SPLITS
           
static byte[][] TV011D_TV2_1_4_SPLITS
           
static byte[][] TV011D_TV2_3_4_SPLITS
           
static byte[] TV011D_TV2_SECRET
           
static byte[][] TV011D_TV2_SPLITS
           
static byte[][] TV011D_TV2_SR
           
static byte[][] TV011D_TV3_1_2_3_SPLITS
           
static byte[][] TV011D_TV3_1_2_4_SPLITS
           
static byte[][] TV011D_TV3_1_3_4_SPLITS
           
static byte[] TV011D_TV3_SECRET
           
static byte[][] TV011D_TV3_SPLITS
           
static byte[][] TV011D_TV3_SR
           
static byte[][] TV011D_TV4_1_2_3_4_SPLITS
           
static byte[] TV011D_TV4_SECRET
           
static byte[][] TV011D_TV4_SPLITS
           
static byte[][] TV011D_TV4_SR
           
static byte[][] TV011D_TV5_1_2_SPLITS
           
static byte[][] TV011D_TV5_8_9_SPLITS
           
static byte[] TV011D_TV5_SECRET
           
static byte[][] TV011D_TV5_SPLITS
           
static byte[][] TV011D_TV5_SR
           
 
Constructor Summary
ShamirSecretSplitterTest()
           
 
Method Summary
 java.lang.String getName()
           
static void main(java.lang.String[] args)
           
 void performTest()
           
 void testPolynomial()
           
 void testRecombine(ShamirSplitSecret splitSecret, byte[] secret)
           
 void testShamirSecretMultipleDivide()
           
 void testShamirSecretResplit()
           
 void testShamirSecretSplitter()
           
 void testShamirSecretSplitterSplitAround()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, run, run, runBare, runTest, setName, setUp, tearDown, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TV011D_TV1_SR

public static final byte[][] TV011D_TV1_SR

TV011D_TV1_SPLITS

public static final byte[][] TV011D_TV1_SPLITS

TV011D_TV1_1_2_SPLITS

public static final byte[][] TV011D_TV1_1_2_SPLITS

TV011D_TV1_SECRET

public static final byte[] TV011D_TV1_SECRET

TV011D_TV2_SR

public static final byte[][] TV011D_TV2_SR

TV011D_TV2_SPLITS

public static final byte[][] TV011D_TV2_SPLITS

TV011D_TV2_1_2_SPLITS

public static final byte[][] TV011D_TV2_1_2_SPLITS

TV011D_TV2_1_4_SPLITS

public static final byte[][] TV011D_TV2_1_4_SPLITS

TV011D_TV2_3_4_SPLITS

public static final byte[][] TV011D_TV2_3_4_SPLITS

TV011D_TV2_SECRET

public static final byte[] TV011D_TV2_SECRET

TV011D_TV3_SR

public static final byte[][] TV011D_TV3_SR

TV011D_TV3_SPLITS

public static final byte[][] TV011D_TV3_SPLITS

TV011D_TV3_1_2_3_SPLITS

public static final byte[][] TV011D_TV3_1_2_3_SPLITS

TV011D_TV3_1_2_4_SPLITS

public static final byte[][] TV011D_TV3_1_2_4_SPLITS

TV011D_TV3_1_3_4_SPLITS

public static final byte[][] TV011D_TV3_1_3_4_SPLITS

TV011D_TV3_SECRET

public static final byte[] TV011D_TV3_SECRET

TV011D_TV4_SR

public static final byte[][] TV011D_TV4_SR

TV011D_TV4_SPLITS

public static final byte[][] TV011D_TV4_SPLITS

TV011D_TV4_1_2_3_4_SPLITS

public static final byte[][] TV011D_TV4_1_2_3_4_SPLITS

TV011D_TV4_SECRET

public static final byte[] TV011D_TV4_SECRET

TV011D_TV5_SR

public static final byte[][] TV011D_TV5_SR

TV011D_TV5_SPLITS

public static final byte[][] TV011D_TV5_SPLITS

TV011D_TV5_1_2_SPLITS

public static final byte[][] TV011D_TV5_1_2_SPLITS

TV011D_TV5_8_9_SPLITS

public static final byte[][] TV011D_TV5_8_9_SPLITS

TV011D_TV5_SECRET

public static final byte[] TV011D_TV5_SECRET
Constructor Detail

ShamirSecretSplitterTest

public ShamirSecretSplitterTest()
Method Detail

main

public static void main(java.lang.String[] args)
                 throws java.io.IOException
Throws:
java.io.IOException

performTest

public void performTest()
                 throws java.io.IOException
Throws:
java.io.IOException

testShamirSecretResplit

public void testShamirSecretResplit()
                             throws java.io.IOException
Throws:
java.io.IOException

testShamirSecretMultipleDivide

public void testShamirSecretMultipleDivide()
                                    throws java.io.IOException
Throws:
java.io.IOException

testShamirSecretSplitterSplitAround

public void testShamirSecretSplitterSplitAround()
                                         throws java.io.IOException
Throws:
java.io.IOException

testShamirSecretSplitter

public void testShamirSecretSplitter()
                              throws java.io.IOException
Throws:
java.io.IOException

getName

public java.lang.String getName()

testPolynomial

public void testPolynomial()
                    throws java.io.IOException
Throws:
java.io.IOException

testRecombine

public void testRecombine(ShamirSplitSecret splitSecret,
                          byte[] secret)
                   throws java.io.IOException
Throws:
java.io.IOException

Bouncy Castle Cryptography Library 1.82