Skip to content

Commit

Permalink
Added_OAEP_JSS_test
Browse files Browse the repository at this point in the history
Signed-off-by: Pritam Singh <[email protected]>
  • Loading branch information
Pritam Singh committed Nov 20, 2020
1 parent 13a22a1 commit 1eff69d
Show file tree
Hide file tree
Showing 2 changed files with 432 additions and 0 deletions.
16 changes: 16 additions & 0 deletions cmake/JSSTests.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,22 @@ macro(jss_tests)
DEPENDS "Setup_DBs"
)
endif()
jss_test_exec(
NAME "Setup_Bouncy_Castle_Jar"
COMMAND "wget" "https://www.bouncycastle.org/download/bcprov-jdk15on-167.jar" "-P" "/tmp/"
)
jss_test_exec(
NAME "Compile_RSAOAEPSHA2_with_BC_classpath"
COMMAND "javac" "-classpath" "/tmp/bcprov-jdk15on-167.jar:./" "${JSS_TEST_DIR}/VerifyRSAOAEPSHA2.java"
DEPENDS "Setup_Bouncy_Castle_Jar"
)
if(HAVE_NSS_OAEP)
jss_test_java(
NAME "JSS-OAEP-Vector-Test"
COMMAND "org.mozilla.jss.tests.VerifyRSAOAEPSHA2"
DEPENDS "Setup_Bouncy_Castle_Jar"
)
endif()
jss_test_java(
NAME "Mozilla_JSS_JCA_Signature"
COMMAND "org.mozilla.jss.tests.JCASigTest" "${RESULTS_NSSDB_OUTPUT_DIR}" "${PASSWORD_FILE}"
Expand Down
Loading

0 comments on commit 1eff69d

Please sign in to comment.