Package org.bouncycastle.cms.test
Class NewEnvelopedDataTest
- java.lang.Object
-
- junit.framework.Assert
-
- junit.framework.TestCase
-
- org.bouncycastle.cms.test.NewEnvelopedDataTest
-
- All Implemented Interfaces:
junit.framework.Test
public class NewEnvelopedDataTest extends junit.framework.TestCase
-
-
Field Summary
Fields Modifier and Type Field Description byte[]
github539_GostEnvData
byte[]
github539_PrivKey
byte[]
gost2001_Rand_Cert
byte[]
gost2001_Rand_Gen_Msg
byte[]
gost2001_Rand_Key
byte[]
gost2001_Rand_Msg
byte[]
gost2001_Rand_Reci_Cert
byte[]
gost2001_Rand_Reci_Key
byte[]
gost2001_Rand_Sender_Cert
byte[]
gost2001_Rand_Sender_Key
byte[]
gost2012_512_Reci_Cert
byte[]
gost2012_512_Reci_Key
byte[]
gost2012_512_Reci_Msg
byte[]
gost2012_512_Sender_Cert
byte[]
gost2012_512_Sender_Key
byte[]
gost2012_KeyTrans_Msg
byte[]
gost2012_KeyTrans_Reci_Cert
byte[]
gost2012_KeyTrans_Reci_Key
byte[]
gost2012_Reci_Cert
byte[]
gost2012_Reci_Key
byte[]
gost2012_Reci_Msg
byte[]
gost2012_Sender_Cert
byte[]
gost2012_Sender_Key
-
Constructor Summary
Constructors Constructor Description NewEnvelopedDataTest()
-
Method Summary
-
Methods inherited from class junit.framework.TestCase
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, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, tearDown, toString
-
-
-
-
Field Detail
-
gost2001_Rand_Cert
public byte[] gost2001_Rand_Cert
-
gost2001_Rand_Key
public byte[] gost2001_Rand_Key
-
gost2001_Rand_Msg
public byte[] gost2001_Rand_Msg
-
gost2001_Rand_Sender_Cert
public byte[] gost2001_Rand_Sender_Cert
-
gost2001_Rand_Sender_Key
public byte[] gost2001_Rand_Sender_Key
-
gost2001_Rand_Reci_Cert
public byte[] gost2001_Rand_Reci_Cert
-
gost2001_Rand_Reci_Key
public byte[] gost2001_Rand_Reci_Key
-
gost2001_Rand_Gen_Msg
public byte[] gost2001_Rand_Gen_Msg
-
gost2012_Sender_Cert
public byte[] gost2012_Sender_Cert
-
gost2012_Sender_Key
public byte[] gost2012_Sender_Key
-
gost2012_Reci_Cert
public byte[] gost2012_Reci_Cert
-
gost2012_Reci_Key
public byte[] gost2012_Reci_Key
-
gost2012_Reci_Msg
public byte[] gost2012_Reci_Msg
-
gost2012_512_Sender_Cert
public byte[] gost2012_512_Sender_Cert
-
gost2012_512_Sender_Key
public byte[] gost2012_512_Sender_Key
-
gost2012_512_Reci_Cert
public byte[] gost2012_512_Reci_Cert
-
gost2012_512_Reci_Key
public byte[] gost2012_512_Reci_Key
-
gost2012_512_Reci_Msg
public byte[] gost2012_512_Reci_Msg
-
gost2012_KeyTrans_Reci_Cert
public byte[] gost2012_KeyTrans_Reci_Cert
-
gost2012_KeyTrans_Reci_Key
public byte[] gost2012_KeyTrans_Reci_Key
-
gost2012_KeyTrans_Msg
public byte[] gost2012_KeyTrans_Msg
-
github539_GostEnvData
public byte[] github539_GostEnvData
-
github539_PrivKey
public byte[] github539_PrivKey
-
-
Method Detail
-
setUp
public void setUp() throws java.lang.Exception
- Overrides:
setUp
in classjunit.framework.TestCase
- Throws:
java.lang.Exception
-
main
public static void main(java.lang.String[] args) throws java.lang.Exception
- Throws:
java.lang.Exception
-
suite
public static junit.framework.Test suite() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testUnprotectedAttributes
public void testUnprotectedAttributes() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testKeyTrans
public void testKeyTrans() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testKeyTransOAEPDefault
public void testKeyTransOAEPDefault() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testKeyTransOAEPSHA1
public void testKeyTransOAEPSHA1() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testKeyTransOAEPSHA224
public void testKeyTransOAEPSHA224() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testKeyTransOAEPSHA256
public void testKeyTransOAEPSHA256() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testKeyTransOAEPSHA1AndSHA256
public void testKeyTransOAEPSHA1AndSHA256() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testKeyTransOAEPInCert
public void testKeyTransOAEPInCert() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testKeyTransWithAlgMapping
public void testKeyTransWithAlgMapping() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testOriginatorInfoGeneration
public void testOriginatorInfoGeneration() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testKeyTransRC2bit40
public void testKeyTransRC2bit40() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testKeyTransRC4
public void testKeyTransRC4() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testKeyTrans128RC4
public void testKeyTrans128RC4() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testKeyTransLight128RC4
public void testKeyTransLight128RC4() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testKeyTransODES
public void testKeyTransODES() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testKeyTransSmallAES
public void testKeyTransSmallAES() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testKeyTransDESEDE3Short
public void testKeyTransDESEDE3Short() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testKeyTransDESEDE3Light
public void testKeyTransDESEDE3Light() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testKeyTransDES
public void testKeyTransDES() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testKeyTransCAST5
public void testKeyTransCAST5() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testKeyTransAES128
public void testKeyTransAES128() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testKeyTransAES192
public void testKeyTransAES192() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testKeyTransAES256
public void testKeyTransAES256() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testKeyTransSEED
public void testKeyTransSEED() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testKeyTransCamellia128
public void testKeyTransCamellia128() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testKeyTransCamellia192
public void testKeyTransCamellia192() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testKeyTransCamellia256
public void testKeyTransCamellia256() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testErroneousKEK
public void testErroneousKEK() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testDESKEK
public void testDESKEK() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testRC2128KEK
public void testRC2128KEK() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testAES128KEK
public void testAES128KEK() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testAES192KEK
public void testAES192KEK() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testAES256KEK
public void testAES256KEK() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testSEED128KEK
public void testSEED128KEK() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testCamellia128KEK
public void testCamellia128KEK() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testCamellia192KEK
public void testCamellia192KEK() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testCamellia256KEK
public void testCamellia256KEK() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testECKeyAgree
public void testECKeyAgree() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testFaultyAgreementRecipient
public void testFaultyAgreementRecipient() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testKeyWrapAlgorithmIdentifiers
public void testKeyWrapAlgorithmIdentifiers() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testEphemeralStaticDHAgreement
public void testEphemeralStaticDHAgreement() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testStaticStaticDHAgreement
public void testStaticStaticDHAgreement() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testKDFAgreements
public void testKDFAgreements() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testECMQVKeyAgreeMultiple
public void testECMQVKeyAgreeMultiple() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testECKeyAgreeVectors
public void testECKeyAgreeVectors() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testECMQVKeyAgreeVectors
public void testECMQVKeyAgreeVectors() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testPasswordAES256
public void testPasswordAES256() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testPasswordDESEDE
public void testPasswordDESEDE() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testPasswordAES256WithPRF
public void testPasswordAES256WithPRF() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testNoSaltOrIterationCount
public void testNoSaltOrIterationCount() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testRFC4134ex5_1
public void testRFC4134ex5_1() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testRFC4134ex5_2
public void testRFC4134ex5_2() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testOriginatorInfo
public void testOriginatorInfo() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testOpenSSLVectors
public void testOpenSSLVectors() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testGost3410_2012_KeyTransGen
public void testGost3410_2012_KeyTransGen() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testGost3410_2001_KeyTrans
public void testGost3410_2001_KeyTrans() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testGithub539_Gost3410_2012_KeyTrans
public void testGithub539_Gost3410_2012_KeyTrans() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testGost3410_2012_KeyTrans
public void testGost3410_2012_KeyTrans() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testGost3410_2001_KeyAgree
public void testGost3410_2001_KeyAgree() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testGost3410_2001_KeyTransRand
public void testGost3410_2001_KeyTransRand() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testGost3410_2001_KeyAgreeRand
public void testGost3410_2001_KeyAgreeRand() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testGost3410_2012_KeyAgree
public void testGost3410_2012_KeyAgree() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testGost3410_2001_KeyAgree_Creation
public void testGost3410_2001_KeyAgree_Creation() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testGost3410_2012_256_KeyAgree_Creation
public void testGost3410_2012_256_KeyAgree_Creation() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testGost3410_2012_512_KeyAgree_Creation
public void testGost3410_2012_512_KeyAgree_Creation() throws java.lang.Exception
- Throws:
java.lang.Exception
-
-