|
Botan
2.13.0
Crypto and TLS for C++11
|
#include <psk_db_sql.h>
Public Member Functions | |
| Encrypted_PSK_Database_SQL (const secure_vector< uint8_t > &master_key, std::shared_ptr< SQL_Database > db, const std::string &table_name) | |
| secure_vector< uint8_t > | get (const std::string &name) const override |
| std::string | get_str (const std::string &name) const |
| bool | is_encrypted () const override |
| std::set< std::string > | list_names () const override |
| void | remove (const std::string &name) override |
| void | set (const std::string &name, const uint8_t psk[], size_t psk_len) override |
| void | set_str (const std::string &name, const std::string &psk) |
| template<typename Alloc > | |
| void | set_vec (const std::string &name, const std::vector< uint8_t, Alloc > &psk) |
Definition at line 15 of file psk_db_sql.h.
| Botan::Encrypted_PSK_Database_SQL::Encrypted_PSK_Database_SQL | ( | const secure_vector< uint8_t > & | master_key, |
| std::shared_ptr< SQL_Database > | db, | ||
| const std::string & | table_name | ||
| ) |
Definition at line 11 of file psk_db_sql.cpp.
|
overridevirtualinherited |
Return the value associated with the specified
| name | or otherwise throw an exception. |
Implements Botan::PSK_Database.
Definition at line 66 of file psk_db.cpp.
References Botan::base64_decode(), Botan::base64_encode(), Botan::cast_char_ptr_to_uint8(), Botan::Encrypted_PSK_Database::kv_get(), Botan::nist_key_unwrap_padded(), and Botan::nist_key_wrap_padded().
|
inlineinherited |
Get a PSK in the form of a string (eg if the PSK is a password)
Definition at line 59 of file psk_db.h.
References Botan::cast_uint8_ptr_to_char(), and name.
|
inlineoverridevirtualinherited |
Returns if the values in the PSK database are encrypted. If false, saved values are being stored in plaintext.
Implements Botan::PSK_Database.
|
overridevirtualinherited |
Return the set of names for which get() will return a value.
Implements Botan::PSK_Database.
Definition at line 31 of file psk_db.cpp.
References Botan::base64_decode(), Botan::cast_uint8_ptr_to_char(), Botan::Encrypted_PSK_Database::kv_get_all(), and Botan::nist_key_unwrap_padded().
|
overridevirtualinherited |
Remove a PSK from the database
Implements Botan::PSK_Database.
Definition at line 56 of file psk_db.cpp.
References Botan::base64_encode(), Botan::cast_char_ptr_to_uint8(), Botan::Encrypted_PSK_Database::kv_del(), and Botan::nist_key_wrap_padded().
|
overridevirtualinherited |
Set a value that can later be accessed with get(). If name already exists in the database, the old value will be overwritten.
Implements Botan::PSK_Database.
Definition at line 86 of file psk_db.cpp.
References Botan::base64_encode(), Botan::cast_char_ptr_to_uint8(), Botan::Encrypted_PSK_Database::kv_set(), and Botan::nist_key_wrap_padded().
|
inlineinherited |
Definition at line 65 of file psk_db.h.
References Botan::cast_char_ptr_to_uint8().
|
inlineinherited |
1.8.9.1