Skip to content

Commit

Permalink
Create crypto package
Browse files Browse the repository at this point in the history
- Part of #32
  • Loading branch information
masomel committed Aug 7, 2016
1 parent e8865da commit 7c2ff67
Show file tree
Hide file tree
Showing 7 changed files with 114 additions and 15 deletions.
8 changes: 5 additions & 3 deletions coniks_common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,17 @@
<parent>
<groupId>org.coniks</groupId>
<artifactId>coniks-java</artifactId>
<version>1.2-SNAPSHOT</version>
<version>1.3-SNAPSHOT</version>
</parent>

<groupId>org.coniks.coniks_common</groupId>
<artifactId>coniks_common</artifactId>
<version>1.3-SNAPSHOT</version>
<packaging>jar</packaging>
<version>1.2-SNAPSHOT</version>
<name>coniks_common</name>

<name>CONIKS [Common]</name>
<url>http://coniks.org</url>
<description>Common message spec and encoding library for CONIKS.</description>

<dependencies>
<dependency>
Expand Down
11 changes: 7 additions & 4 deletions coniks_server/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,18 @@
<parent>
<groupId>org.coniks</groupId>
<artifactId>coniks-java</artifactId>
<version>1.2-SNAPSHOT</version>
<version>1.3-SNAPSHOT</version>
</parent>

<groupId>org.coniks.coniks_server</groupId>
<artifactId>coniks_server</artifactId>
<version>1.3-SNAPSHOT</version>
<packaging>jar</packaging>
<version>1.2-SNAPSHOT</version>
<name>coniks_server</name>

<name>CONIKS [Reference Server]</name>
<url>http://coniks.org</url>
<description>CONIKS server library and reference implementation.
</description>

<dependencies>
<dependency>
Expand All @@ -26,7 +29,7 @@
<dependency>
<groupId>org.coniks.coniks_common</groupId>
<artifactId>coniks_common</artifactId>
<version>1.2-SNAPSHOT</version>
<version>1.3-SNAPSHOT</version>
<scope>compile</scope>
</dependency>

Expand Down
11 changes: 7 additions & 4 deletions coniks_test_client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,18 @@
<parent>
<groupId>org.coniks</groupId>
<artifactId>coniks-java</artifactId>
<version>1.2-SNAPSHOT</version>
<version>1.3-SNAPSHOT</version>
</parent>

<groupId>org.coniks.coniks_test_client</groupId>
<artifactId>coniks_test_client</artifactId>
<version>1.3-SNAPSHOT</version>
<packaging>jar</packaging>
<version>1.2-SNAPSHOT</version>
<name>coniks_test_client</name>

<name>CONIKS [Test Client]</name>
<url>http://coniks.org</url>
<description>CONIKS client library and reference implementation.
</description>

<dependencies>
<dependency>
Expand All @@ -26,7 +29,7 @@
<dependency>
<groupId>org.coniks.coniks_common</groupId>
<artifactId>coniks_common</artifactId>
<version>1.2-SNAPSHOT</version>
<version>1.3-SNAPSHOT</version>
<scope>compile</scope>
</dependency>

Expand Down
35 changes: 35 additions & 0 deletions crypto/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<?xml version="1.0"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>org.coniks</groupId>
<artifactId>coniks-java</artifactId>
<version>1.3-SNAPSHOT</version>
</parent>

<groupId>org.coniks.crypto</groupId>
<artifactId>coniks-crypto</artifactId>
<version>1.3-SNAPSHOT</version>
<packaging>jar</packaging>

<name>CONIKS [Crypto]</name>
<url>http://coniks.org</url>
<description>
Cryptographic algorithms and operations library for CONIKS.
</description>

<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<scope>test</scope>
</dependency>
</dependencies>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
</project>
13 changes: 13 additions & 0 deletions crypto/src/main/java/org/coniks/crypto/App.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package org.coniks.crypto;

/**
* Hello world!
*
*/
public class App
{
public static void main( String[] args )
{
System.out.println( "Hello World!" );
}
}
38 changes: 38 additions & 0 deletions crypto/src/test/java/org/coniks/crypto/AppTest.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
package org.coniks.crypto;

import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;

/**
* Unit test for simple App.
*/
public class AppTest
extends TestCase
{
/**
* Create the test case
*
* @param testName name of the test case
*/
public AppTest( String testName )
{
super( testName );
}

/**
* @return the suite of tests being tested
*/
public static Test suite()
{
return new TestSuite( AppTest.class );
}

/**
* Rigourous Test :-)
*/
public void testApp()
{
assertTrue( true );
}
}
13 changes: 9 additions & 4 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>org.coniks</groupId>
<artifactId>coniks-java</artifactId>
<version>1.3-SNAPSHOT</version>
<packaging>pom</packaging>
<version>1.2-SNAPSHOT</version>
<name>CONIKS Java lib and reference</name>

<name>CONIKS [Parent]</name>
<url>http://coniks.org</url>
<description>CONIKS is a key management system that provides transparency for end-user public keys.
</description>

<build>
<plugins>
Expand All @@ -22,6 +26,7 @@
</build>

<modules>
<module>crypto</module>
<module>coniks_common</module>
<module>coniks_server</module>
<module>coniks_test_client</module>
Expand Down

0 comments on commit 7c2ff67

Please sign in to comment.