Package org.bouncycastle.tls.crypto.test
Class TlsCryptoTest
- java.lang.Object
-
- junit.framework.Assert
-
- junit.framework.TestCase
-
- org.bouncycastle.tls.crypto.test.TlsCryptoTest
-
- All Implemented Interfaces:
junit.framework.Test
- Direct Known Subclasses:
BcTlsCryptoTest,JcaTlsCryptoTest
public abstract class TlsCryptoTest extends junit.framework.TestCase
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedTlsCryptoTest(TlsCrypto crypto)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected TlsCredentialedSignerloadCredentialedSigner(TlsCryptoParameters cryptoParams, java.lang.String resource, SignatureAndHashAlgorithm signatureAndHashAlgorithm)protected TlsCredentialedSignerloadCredentialedSigner12(TlsCryptoParameters cryptoParams, SignatureAndHashAlgorithm signatureAndHashAlgorithm)protected TlsCredentialedSignerloadCredentialedSigner13(TlsCryptoParameters cryptoParams, int signatureScheme)protected TlsCredentialedSignerloadCredentialedSignerLegacy(TlsCryptoParameters cryptoParams, short signatureAlgorithm)voidtestDHDomain()voidtestECDomain()voidtestHKDF()voidtestHKDFExpandLimit()voidtestSignatures12()voidtestSignatures13()voidtestSignaturesLegacy()-
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, setUp, tearDown, toString
-
-
-
-
Field Detail
-
crypto
protected final TlsCrypto crypto
-
-
Constructor Detail
-
TlsCryptoTest
protected TlsCryptoTest(TlsCrypto crypto)
-
-
Method Detail
-
loadCredentialedSigner
protected TlsCredentialedSigner loadCredentialedSigner(TlsCryptoParameters cryptoParams, java.lang.String resource, SignatureAndHashAlgorithm signatureAndHashAlgorithm) throws java.io.IOException
- Throws:
java.io.IOException
-
loadCredentialedSignerLegacy
protected TlsCredentialedSigner loadCredentialedSignerLegacy(TlsCryptoParameters cryptoParams, short signatureAlgorithm) throws java.io.IOException
- Throws:
java.io.IOException
-
loadCredentialedSigner12
protected TlsCredentialedSigner loadCredentialedSigner12(TlsCryptoParameters cryptoParams, SignatureAndHashAlgorithm signatureAndHashAlgorithm) throws java.io.IOException
- Throws:
java.io.IOException
-
loadCredentialedSigner13
protected TlsCredentialedSigner loadCredentialedSigner13(TlsCryptoParameters cryptoParams, int signatureScheme) throws java.io.IOException
- Throws:
java.io.IOException
-
testDHDomain
public void testDHDomain() throws java.lang.Exception- Throws:
java.lang.Exception
-
testECDomain
public void testECDomain() throws java.lang.Exception- Throws:
java.lang.Exception
-
testHKDF
public void testHKDF() throws java.io.IOException- Throws:
java.io.IOException
-
testHKDFExpandLimit
public void testHKDFExpandLimit()
-
testSignaturesLegacy
public void testSignaturesLegacy() throws java.lang.Exception- Throws:
java.lang.Exception
-
testSignatures12
public void testSignatures12() throws java.lang.Exception- Throws:
java.lang.Exception
-
testSignatures13
public void testSignatures13() throws java.lang.Exception- Throws:
java.lang.Exception
-
-