Bouncy Castle Cryptography Library 1.86

org.bouncycastle.crypto.test
Class SM9KEMTest

java.lang.Object
  extended byorg.bouncycastle.util.test.SimpleTest
      extended byorg.bouncycastle.crypto.test.SM9KEMTest
All Implemented Interfaces:
Test

public class SM9KEMTest
extends SimpleTest

Known-answer test for the SM9 key encapsulation mechanism (GM/T 0044.4-2016) against the GM/T 0044.5-2016 Part 5, Annex C vector (crypto/sm9/sm9_kem.txt): the encapsulation C and shared key K are reproduced byte-for-byte, and the decapsulation recovers K.


Nested Class Summary
 
Nested classes inherited from class org.bouncycastle.util.test.SimpleTest
SimpleTest.TestExceptionOperation
 
Constructor Summary
SM9KEMTest()
           
 
Method Summary
 java.lang.String getName()
           
static void main(java.lang.String[] args)
           
 void performTest()
           
 
Methods inherited from class org.bouncycastle.util.test.SimpleTest
areEqual, areEqual, areEqual, fail, fail, fail, isEquals, isEquals, isEquals, isEquals, isEquals, isEquals, isEquals, isTrue, isTrue, perform, runTest, runTest, runTests, runTests, testException
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SM9KEMTest

public SM9KEMTest()
Method Detail

getName

public java.lang.String getName()
Specified by:
getName in interface Test
Specified by:
getName in class SimpleTest

performTest

public void performTest()
                 throws java.lang.Exception
Specified by:
performTest in class SimpleTest
Throws:
java.lang.Exception

main

public static void main(java.lang.String[] args)

Bouncy Castle Cryptography Library 1.86