org.bouncycastle.crypto.test
Class ECGOST3410KeyEncodingTest
java.lang.Object
org.bouncycastle.util.test.SimpleTest
org.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.
| 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 |
ECGOST3410KeyEncodingTest
public ECGOST3410KeyEncodingTest()
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)