ACIL FM
Dark
Refresh
Current DIR:
/usr/share/doc/python3-cryptography/docs/development/custom-vectors
/
usr
share
doc
python3-cryptography
docs
development
custom-vectors
Upload
Zip Selected
Delete Selected
Pilih semua
Nama
Ukuran
Permission
Aksi
arc4
-
chmod
Open
Rename
Delete
cast5
-
chmod
Open
Rename
Delete
hkdf
-
chmod
Open
Rename
Delete
idea
-
chmod
Open
Rename
Delete
rsa-oaep-sha2
-
chmod
Open
Rename
Delete
secp256k1
-
chmod
Open
Rename
Delete
seed
-
chmod
Open
Rename
Delete
arc4.rst
840 B
chmod
View
DL
Edit
Rename
Delete
cast5.rst
996 B
chmod
View
DL
Edit
Rename
Delete
hkdf.rst
755 B
chmod
View
DL
Edit
Rename
Delete
idea.rst
949 B
chmod
View
DL
Edit
Rename
Delete
rsa-oaep-sha2.rst
1.67 MB
chmod
View
DL
Edit
Rename
Delete
secp256k1.rst
998 B
chmod
View
DL
Edit
Rename
Delete
seed.rst
937 B
chmod
View
DL
Edit
Rename
Delete
Edit file: /usr/share/doc/python3-cryptography/docs/development/custom-vectors/rsa-oaep-sha2.rst
RSA OAEP SHA2 vector creation ============================= This page documents the code that was used to generate the RSA OAEP SHA2 test vectors as well as code used to verify them against another implementation. Creation -------- ``cryptography`` was modified to allow the use of SHA2 in OAEP encryption. Then the following python script was run to generate the vector files. .. literalinclude:: /development/custom-vectors/rsa-oaep-sha2/generate_rsa_oaep_sha2.py Download link: :download:`generate_rsa_oaep_sha2.py </development/custom-vectors/rsa-oaep-sha2/generate_rsa_oaep_sha2.py>` Verification ------------ A Java 8 program was written using `Bouncy Castle`_ to load and verify the test vectors. .. literalinclude:: /development/custom-vectors/rsa-oaep-sha2/VerifyRSAOAEPSHA2.java Download link: :download:`VerifyRSAOAEPSHA2.java </development/custom-vectors/rsa-oaep-sha2/VerifyRSAOAEPSHA2.java>` Using the Verifier ------------------ Download and install the `Java SDK`_. Initial verification was performed using ``jdk-8u77-macosx-x64.dmg``. Download the latest `Bouncy Castle`_ JAR. Initial verification was performed using ``bcprov-jdk15on-154.jar``. Set the ``-classpath`` to include the Bouncy Castle jar and the path to ``VerifyRSAOAEPSHA2.java`` and compile the program. .. code-block:: console $ javac -classpath ~/Downloads/bcprov-jdk15on-154.jar:./ VerifyRSAOAEPSHA2.java Finally, run the program with the path to the SHA-2 vectors: .. code-block:: console $ java -classpath ~/Downloads/bcprov-jdk15on-154.jar:./ VerifyRSAOAEPSHA2 .. _`Bouncy Castle`: https://www.bouncycastle.org/ .. _`Java SDK`: https://www.oracle.com/java/technologies/javase-downloads.html
Simpan
Batal
Isi Zip:
Unzip
Create
Buat Folder
Buat File
Terminal / Execute
Run
Chmod Bulk
All File
All Folder
All File dan Folder
Apply