diff options
author | Jack Lloyd <[email protected]> | 2017-07-16 17:31:24 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2017-07-16 17:31:24 -0400 |
commit | eb924f4dfe7d527c2df6fe927fd84f6b5c0573bd (patch) | |
tree | a151db636bd3bac8a65be45824db9001d288ee81 /doc | |
parent | 82264129430006b1eab83904fbd677a932c767a0 (diff) | |
parent | 4f2680a5c9a8b47c36e0f65bd5117a1837474279 (diff) |
Merge GH #1110 Fix documentation of PKCS11 module
Diffstat (limited to 'doc')
-rw-r--r-- | doc/manual/pkcs11.rst | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/manual/pkcs11.rst b/doc/manual/pkcs11.rst index 8e78b8797..a95e126bf 100644 --- a/doc/manual/pkcs11.rst +++ b/doc/manual/pkcs11.rst @@ -750,22 +750,22 @@ Code example: /************ RSA encrypt *************/ Botan::secure_vector<uint8_t> plaintext = { 0x00, 0x01, 0x02, 0x03 }; - Botan::PK_Encryptor_EME encryptor( rsa_keypair.first, rng, "Raw", "pkcs11" ); + Botan::PK_Encryptor_EME encryptor( rsa_keypair.first, rng, "Raw" ); auto ciphertext = encryptor.encrypt( plaintext, rng ); /************ RSA decrypt *************/ - Botan::PK_Decryptor_EME decryptor( rsa_keypair.second, rng, "Raw", "pkcs11" ); + Botan::PK_Decryptor_EME decryptor( rsa_keypair.second, rng, "Raw" ); plaintext = decryptor.decrypt( ciphertext ); /************ RSA sign *************/ - Botan::PK_Signer signer( rsa_keypair.second, rng, "EMSA4(SHA-256)", Botan::IEEE_1363, "pkcs11" ); + Botan::PK_Signer signer( rsa_keypair.second, rng, "EMSA4(SHA-256)", Botan::IEEE_1363 ); auto signature = signer.sign_message( plaintext, rng ); /************ RSA verify *************/ - Botan::PK_Verifier verifier( rsa_keypair.first, "EMSA4(SHA-256)", Botan::IEEE_1363, "pkcs11" ); + Botan::PK_Verifier verifier( rsa_keypair.first, "EMSA4(SHA-256)", Botan::IEEE_1363 ); auto ok = verifier.verify_message( plaintext, signature ); ECDSA |