Test both encoding/decoding of WrappedKey data structures and writing them to CCN using WrappedKeyObjects. More...
Public Member Functions | |
void | setupTest () throws Exception |
Do this in the first test. | |
void | testWrapUnwrapKey () throws Exception |
void | testWrappedKeyByteArrayStringStringStringByteArrayByteArray () throws Exception |
void | testDecodeInputStream () throws Exception |
void | testWrappedKeyObject () throws Exception |
Static Public Member Functions | |
static void | setUpBeforeClass () throws Exception |
Static Public Attributes | |
static boolean | setupDone = false |
static KeyPair | wrappingKeyPair = null |
static KeyPair | wrappedKeyPair = null |
static KeyPair | wrappedDHKeyPair = null |
static KeyPair | wrappedDSAKeyPair = null |
static SecretKeySpec | wrappingAESKey = null |
static SecretKeySpec | wrappedAESKey = null |
static String | aLabel = "FileEncryptionKeys" |
static byte[] | wrappingKeyID = null |
static ContentName | wrappingKeyName = null |
static ContentName | storedKeyName = null |
static byte[] | dummyWrappedKey = new byte[64] |
Static Package Attributes | |
static CCNTestHelper | testHelper = new CCNTestHelper(PublicKeyObjectTestRepo.class) |
Handle naming for the test. |
Test both encoding/decoding of WrappedKey data structures and writing them to CCN using WrappedKeyObjects.
Move tests that require either unlimited-strength crypto or algorithms that BouncyCastle does not support on all platforms/versions to the expanded tests. See apps/examples/ExpandedCryptoTests.
void org.ccnx.ccn.test.io.content.WrappedKeyTest.setupTest | ( | ) | throws Exception |
Do this in the first test.
Were doing it in setupBeforeClass, but I think it was failing sometimes, possibly because it was too slow.
Exception |