diff --git a/wolfCrypt-JNI/src-ja/chapter02.md b/wolfCrypt-JNI/src-ja/chapter02.md index 7b7dde59..42842557 100644 --- a/wolfCrypt-JNI/src-ja/chapter02.md +++ b/wolfCrypt-JNI/src-ja/chapter02.md @@ -10,9 +10,9 @@ wolfJCE では、ホストシステムに Java をインストールする必要 単体テストを実行するには、JUnit4 が開発システムにインストールされている必要があります。 JUnit4 は、プロジェクトの Web サイト (www.junit.org) からダウンロードできます Unix/Linux/OSX システムに JUnit4 をインストールするには: -1) [junit.org/junit4/]() から "**junit-4.13.jar**" と "**hamcrest-all-1.3.jar**" をダウンロードします。 執筆時点では、前述の .jar ファイルは次のリンクからダウンロードできます: +1) [junit.org/junit4/](https://junit.org/junit4/) から "**junit-4.13.2.jar**" と "**hamcrest-all-1.3.jar**" をダウンロードします。 執筆時点では、前述の .jar ファイルは次のリンクからダウンロードできます: -Junit: [junit-4.13.jar](https://search.maven.org/search?q=g:junit%20AND%20a:junit) +JUnit: [junit-4.13.2.jar](https://search.maven.org/search?q=g:junit%20AND%20a:junit) Hamcrest: [hamcrest-all-1.3.jar](https://search.maven.org/artifact/org.hamcrest/hamcrest-all/1.3/jar) @@ -48,16 +48,7 @@ $ make check $ sudo make install ``` -**wolfSSL FIPSv1 ビルド**: - -``` -$ cd wolfssl-x.x.x-commercial-fips -$ ./configure --enable-fips --enable-jni -$ make check -$ sudo make install -``` - -**wolfSSL FIPSv2 ビルド**: +**wolfSSL FIPSv2 ビルド (FIPS 140-2, Certificate #3389)**: ``` $ cd wolfssl-x.x.x-commercial-fips @@ -66,7 +57,7 @@ $ make check $ sudo make install ``` -**wolfSSL FIPSv5 ビルド**: +**wolfSSL FIPSv5 ビルド (FIPS 140-3, Certificate #4718)**: ``` $ cd wolfssl-x.x.x-commercial-fips diff --git a/wolfCrypt-JNI/src-ja/chapter03.md b/wolfCrypt-JNI/src-ja/chapter03.md index fce67593..d3e422c4 100644 --- a/wolfCrypt-JNI/src-ja/chapter03.md +++ b/wolfCrypt-JNI/src-ja/chapter03.md @@ -63,8 +63,55 @@ $ ant clean $ make clean ``` +## Mavenによるコンパイル + +wolfCrypt JNI/JCEはMavenによるビルドにも対応しています。 +まずは前セクションに示したように`make`を使用してJNI共有ライブラリをコンパイルします。 + +次に、Mavenを用いてJavaソースをコンパイルします。 + +``` +$ mvn compile +``` + +JUnitテストをコンパイル、実行するには次のようにします。 + +``` +$ mvn test +``` + +JARファイルにパッケージングするには、次のようにします。 + +``` +$ mvn package +``` + +JARファイルをローカルのMavenリポジトリにインストールするには、次のようにします。 + +``` +$ mvn install +``` + +インストール後は、ユーザのMavenプロジェクトにおいて次のようにして使用できるようになります。 + +```xml + + com.wolfssl + wolfcrypt-jni + 1.9.0-SNAPSHOT + +``` + ## APIマニュアル(Javadoc) `ant` を実行すると、`wolfcrypt-jni/docs/javadoc` ディレクトリの下に一連の Javadoc が生成されます。 Javadocインデックスを表示するには、Web ブラウザで次のファイルを開きます: `wolfcrypt-jni/docs/javadoc/index.html` + +Mavenを使用している場合、Javadocは次のようにして生成できます。 + +``` +$ mvn javadoc:javadoc +``` + +成果物は`./docs/apidocs`ディレクトリに保存されます。 diff --git a/wolfCrypt-JNI/src-ja/chapter05.md b/wolfCrypt-JNI/src-ja/chapter05.md index f62687e2..cfcd623d 100644 --- a/wolfCrypt-JNI/src-ja/chapter05.md +++ b/wolfCrypt-JNI/src-ja/chapter05.md @@ -26,7 +26,7 @@ wolfcrypt-jni / jni/ ネイティブC JNIバインディングソースファイル lib/ コンパイル成果物(ライブラリ)の出力先 makefile.linux Linux用のMakefile - makefile.osx OSX用のMakefile + makefile.macosx macOS用のMakefile pom.xml Mavenビルドファイル rpm/ Linux rpmファイル scripts/ テストスクリプト(Facebook Infer等) diff --git a/wolfCrypt-JNI/src-ja/chapter06.md b/wolfCrypt-JNI/src-ja/chapter06.md index fdb5ab1d..44e28549 100644 --- a/wolfCrypt-JNI/src-ja/chapter06.md +++ b/wolfCrypt-JNI/src-ja/chapter06.md @@ -5,54 +5,116 @@ wolfJCE は現在、次のアルゴリズムとクラスをサポートしてい MessageDigest Class MD5 SHA-1 + SHA-224 SHA-256 SHA-384 SHA-512 + SHA3-224 + SHA3-256 + SHA3-384 + SHA3-512 SecureRandom Class DEFAULT (maps to HashDRBG) - HashDRBG + HashDRBG (aliased also as: Hash_DRBG, DRBG) Cipher Class AES/CBC/NoPadding AES/CBC/PKCS5Padding + AES/CCM/NoPadding + AES/CTR/NoPadding + AES/CTS/NoPadding + AES/ECB/NoPadding + AES/ECB/PKCS5Padding (aliased also as: AES) AES/GCM/NoPadding + AES/OFB/NoPadding DESede/CBC/NoPadding RSA RSA/ECB/PKCS1Padding + RSA/ECB/OAEPWithSHA-1AndMGF1Padding + RSA/ECB/OAEPWithSHA-256AndMGF1Padding Mac Class + AESCMAC (aliased also as: AES-CMAC) + AESGMAC (aliased also as: AES-GMAC) HmacMD5 HmacSHA1 + HmacSHA224 HmacSHA256 HmacSHA384 HmacSHA512 + HmacSHA3-224 + HmacSHA3-256 + HmacSHA3-384 + HmacSHA3-512 Signature Class MD5withRSA SHA1withRSA + SHA224withRSA SHA256withRSA SHA384withRSA SHA512withRSA + SHA3-224withRSA + SHA3-256withRSA + SHA3-384withRSA + SHA3-512withRSA + RSASSA-PSS + SHA224withRSA/PSS + SHA256withRSA/PSS + SHA384withRSA/PSS + SHA512withRSA/PSS SHA1withECDSA + SHA224withECDSA SHA256withECDSA SHA384withECDSA SHA512withECDSA + SHA3-224withECDSA + SHA3-256withECDSA + SHA3-384withECDSA + SHA3-512withECDSA + SHA256withECDSAinP1363Format + SHA384withECDSAinP1363Format + SHA512withECDSAinP1363Format + SHA3-256withECDSAinP1363Format + SHA3-384withECDSAinP1363Format + SHA3-512withECDSAinP1363Format KeyAgreement Class DiffieHellman DH ECDH + KeyGenerator Class + AES + HmacSHA1 + HmacSHA224 + HmacSHA256 + HmacSHA384 + HmacSHA512 + HmacSHA3-224 + HmacSHA3-256 + HmacSHA3-384 + HmacSHA3-512 + KeyPairGenerator Class RSA + RSASSA-PSS EC - DH + DH (aliased also as: DiffieHellman) + + KeyFactory Class + RSA + EC + DH (aliased also as: DiffieHellman) CertPathValidator Class PKIX - SecretKeyFactory + CertPathBuilder Class + PKIX + + SecretKeyFactory Class PBKDF2WithHmacSHA1 PBKDF2WithHmacSHA224 PBKDF2WithHmacSHA256 @@ -63,5 +125,14 @@ wolfJCE は現在、次のアルゴリズムとクラスをサポートしてい PBKDF2WithHmacSHA3-384 PBKDF2WithHmacSHA3-512 - KeyStore + KeyStore Class WKS + + AlgorithmParameters Class + AES + DH (aliased also as: DiffieHellman) + GCM (aliased also as: AES-GCM) + RSASSA-PSS + + AlgorithmParameterGenerator Class + DH (aliased also as: DiffieHellman)