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 protected
TlsCryptoTest(TlsCrypto crypto)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected TlsCredentialedSigner
loadCredentialedSigner(TlsCryptoParameters cryptoParams, java.lang.String resource, SignatureAndHashAlgorithm signatureAndHashAlgorithm)
protected TlsCredentialedSigner
loadCredentialedSigner12(TlsCryptoParameters cryptoParams, SignatureAndHashAlgorithm signatureAndHashAlgorithm)
protected TlsCredentialedSigner
loadCredentialedSigner13(TlsCryptoParameters cryptoParams, int signatureScheme)
protected TlsCredentialedSigner
loadCredentialedSignerLegacy(TlsCryptoParameters cryptoParams, short signatureAlgorithm)
void
testDHDomain()
void
testECDomain()
void
testHKDF()
void
testHKDFExpandLimit()
void
testSignatures12()
void
testSignatures13()
void
testSignaturesLegacy()
-
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
-
-