summaryrefslogtreecommitdiffstats
path: root/src/test/crypto.cc (follow)
Commit message (Collapse)AuthorAgeFilesLines
* unittest_[ceph_]crypto: fix warningsSage Weil2016-02-111-2/+0
| | | | | | | | | | | test/crypto.cc:20:31: warning: ‘crypto_env’ defined but not used [-Wunused-variable] ::testing::Environment* const crypto_env = ::testing::AddGlobalTestEnvironment(n ^ test/ceph_crypto.cc:12:31: warning: ‘crypto_env’ defined but not used [-Wunused-variable] ::testing::Environment* const crypto_env = ::testing::AddGlobalTestEnvironment(n ^ Signed-off-by: Sage Weil <sage@redhat.com>
* auth: return error code from encrypt/decrypt; make error string optionalSage Weil2015-04-221-5/+10
| | | | | | This is simpler for a lot of callers. Signed-off-by: Sage Weil <sage@redhat.com>
* auth: refactor crypto key contextSage Weil2015-04-221-4/+8
| | | | | | | Cache all of the crypto key context in a new CryptoKeyHandler struct that is attached to CryptoKey. Signed-off-by: Sage Weil <sage@redhat.com>
* unittest_crypto: benchmark 100,000 CryptoKey::encrypt() callsSage Weil2015-04-221-0/+27
| | | | Signed-off-by: Sage Weil <sage@redhat.com>
* test/crypto: fix narrowing conversion warningSage Weil2013-02-091-6/+6
| | | | | | warning: test/crypto.cc:49:3: narrowing conversion of ‘136’ from ‘int’ to ‘char’ inside { } is ill-formed in C++11 [-Wnarrowing] Signed-off-by: Sage Weil <sage@inktank.com>
* rgw: fix buildYehuda Sadeh2012-11-081-1/+1
| | | | Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* auth: move Crypto users to use CephContextSage Weil2012-08-171-5/+5
| | | | | | | Globals are bad news. Switch all users to get the CryptoHandler from their cct. Signed-off-by: Sage Weil <sage@inktank.com>
* initialize g_ceph_context in common_preinitColin Patrick McCabe2011-06-221-1/+1
| | | | | | | | | | | Initialize g_ceph_context in common_preinit rather than in a global constructor. Add comments to all of the major initialization functions. We still set globals in common_preinit, for the time being. Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
* auth: CryptoKey, CryptoAES: deglobalizeColin Patrick McCabe2011-06-211-16/+13
| | | | Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
* auth: remove CephCryptoManagerColin Patrick McCabe2011-06-151-5/+5
| | | | | | It doesn't do anything. Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
* units: remove "performance test" from crypto unitsColin Patrick McCabe2011-03-251-29/+1
| | | | Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
* auth: Let common_init (or CephCrypto::init) init auth crypto.Tommi Virtanen2011-03-111-0/+10
| | | | | | This avoids doing it in a global constructor. Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
* auth: Add a microbenchmark for AES encrypt/decrypt.Tommi Virtanen2011-03-111-0/+69
| | | | Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
* auth: Add unit tests to check basic crypto sanity.Tommi Virtanen2011-03-111-0/+100
Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>