mil.dod.th.ose.remote/test/mil/dod/th/ose/remote/api/TestEncryptionUtility.java
@Test
    public final void testcreateKeyPair()
    {
        final AsymmetricCipherKeyPair keyPairA = EncryptionUtility.createKeyPair();
        final byte[] staticPublicKeyBytesA = ((ECPublicKeyParameters)keyPairA.getPublic()).getQ().getEncoded(false);
        assertThat(staticPublicKeyBytesA.length, is(65));     
    }
/**
     * Testing the createkeypair function to check if the public key created is of certain length.
     */
Testing the createkeypair function to check if the public key created is of certain length.
Testing the createkeypair function to check if the public key created is of certain length .
@Test
    public final void testcreateKeyPair()
    {
        final AsymmetricCipherKeyPair keyPairA = EncryptionUtility.createKeyPair();
        final byte[] staticPublicKeyBytesA = ((ECPublicKeyParameters)keyPairA.getPublic()).getQ().getEncoded(false);
        assertThat(staticPublicKeyBytesA.length, is(65));     
    }
@ Test public final void testcreateKeyPair ( ) { final AsymmetricCipherKeyPair keyPairA = EncryptionUtility . createKeyPair ( ) ; final byte [ ] staticPublicKeyBytesA = ( ( ECPublicKeyParameters ) keyPairA . getPublic ( ) ) . getQ ( ) . getEncoded ( false ) ; assertThat ( staticPublicKeyBytesA . length , is ( 65 ) ) ; }
Testing the createkeypair function to check if the public key created is of certain length.
Testing the createkeypair function to check if the public key created is of certain length .