Bouncy Castle Cryptography Library 1.87

org.bouncycastle.crypto.test
Class ECGOST3410KeyEncodingTest

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

public class ECGOST3410KeyEncodingTest
extends SimpleTest

Checks the key algorithm OID chosen when encoding ECGOST3410 keys as SubjectPublicKeyInfo / PrivateKeyInfo. A legacy GOST R 34.10-2001 parameter set combined with a GOST R 34.11-2012 digest must encode as GOST R 34.10-2012 (RFC 9215, Section 4.2), while the same curve with a GOST R 34.11-94 digest remains GOST R 34.10-2001 (RFC 4491, Section 2.3.2). Also covers the OPTIONAL digestParamSet of GostR3410-2012-PublicKeyParameters.


Nested Class Summary
 
Nested classes inherited from class org.bouncycastle.util.test.SimpleTest
SimpleTest.TestExceptionOperation
 
Constructor Summary
ECGOST3410KeyEncodingTest()
           
 
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

ECGOST3410KeyEncodingTest

public ECGOST3410KeyEncodingTest()
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.87