Searched refs:SecureBlob (Results 1 – 10 of 10) sorted by relevance
/external/libbrillo/brillo/blkdev_utils/ |
D | device_mapper_test.cc | 17 SecureBlob crypt_table_str("0 100 crypt"); in TEST() 21 EXPECT_EQ(DevmapperTable(0, 0, "", SecureBlob()).ToSecureBlob(), in TEST() 28 SecureBlob secret; in TEST() 29 SecureBlob::HexStringToSecureBlob("0123456789ABCDEF", &secret); in TEST() 31 SecureBlob crypt_parameters = DevmapperTable::CryptCreateParameters( in TEST() 36 SecureBlob crypt_table_str( in TEST() 48 SecureBlob secret; in TEST() 49 SecureBlob::HexStringToSecureBlob("0123456789ABCDEF", &secret); in TEST() 51 SecureBlob crypt_parameters = DevmapperTable::CryptCreateParameters( in TEST() 56 SecureBlob crypt_table_str( in TEST() [all …]
|
D | device_mapper.cc | 25 base::StringTokenizerT<std::string, SecureBlob::const_iterator>; 30 const SecureBlob& parameters) in DevmapperTable() 33 SecureBlob DevmapperTable::ToSecureBlob() { in ToSecureBlob() 34 SecureBlob table_blob(base::StringPrintf("%" PRIu64 " %" PRIu64 " %s ", in ToSecureBlob() 37 return SecureBlob::Combine(table_blob, parameters_); in ToSecureBlob() 41 const SecureBlob& table) { in CreateTableFromSecureBlob() 44 DevmapperTable invalid_table(0, 0, "", SecureBlob()); in CreateTableFromSecureBlob() 71 SecureBlob target = SecureBlob(tokenizer.token_begin(), table.end()); in CreateTableFromSecureBlob() 76 SecureBlob DevmapperTable::CryptGetKey() { in CryptGetKey() 81 return SecureBlob(); in CryptGetKey() [all …]
|
D | device_mapper.h | 31 const SecureBlob& parameters); 36 SecureBlob ToSecureBlob(); 42 SecureBlob GetParameters() const { return parameters_; } in GetParameters() 47 static DevmapperTable CreateTableFromSecureBlob(const SecureBlob& table); 52 SecureBlob CryptGetKey(); 57 static SecureBlob CryptCreateParameters(const std::string& cipher, 58 const SecureBlob& encryption_key, 68 const SecureBlob parameters_;
|
D | device_mapper_task.h | 52 const SecureBlob& parameters) = 0; 66 SecureBlob* parameters) = 0; 87 const SecureBlob& parameters) override; 91 SecureBlob* parameters) override;
|
D | device_mapper_fake.h | 30 SecureBlob parameters; 51 const SecureBlob& parameters) override; 55 SecureBlob* parameters) override;
|
D | device_mapper_task.cc | 29 const SecureBlob& parameters) { in AddTarget() 51 SecureBlob* parameters) { in GetNextTarget() 64 SecureBlob parameters_blob(parameters_cstr); in GetNextTarget()
|
D | device_mapper_fake.cc | 76 const SecureBlob& parameters) { in AddTarget() 89 SecureBlob* parameters) { in GetNextTarget()
|
/external/libbrillo/brillo/ |
D | secure_blob.cc | 50 SecureBlob::SecureBlob(const Blob& blob) in SecureBlob() function in brillo::SecureBlob 51 : SecureBlob(blob.begin(), blob.end()) {} in SecureBlob() 53 SecureBlob::SecureBlob(const std::string& data) in SecureBlob() function in brillo::SecureBlob 54 : SecureBlob(data.begin(), data.end()) {} in SecureBlob() 56 SecureBlob::~SecureBlob() { in ~SecureBlob() 60 void SecureBlob::resize(size_type count) { in resize() 67 void SecureBlob::resize(size_type count, const value_type& value) { in resize() 74 void SecureBlob::clear() { in clear() 79 std::string SecureBlob::to_string() const { in to_string() 83 SecureBlob SecureBlob::Combine(const SecureBlob& blob1, in Combine() [all …]
|
D | secure_blob.h | 32 class BRILLO_EXPORT SecureBlob : public Blob { 34 SecureBlob() = default; 36 explicit SecureBlob(const Blob& blob); 37 explicit SecureBlob(const std::string& data); 38 ~SecureBlob(); 49 static SecureBlob Combine(const SecureBlob& blob1, const SecureBlob& blob2); 51 SecureBlob* output); 80 BRILLO_EXPORT SecureBlob SecureBlobToSecureHex(const SecureBlob& blob); 81 BRILLO_EXPORT SecureBlob SecureHexToSecureBlob(const SecureBlob& hex);
|
D | secure_blob_test.cc | 54 static bool FindBlobInBlob(const brillo::SecureBlob& haystack, in FindBlobInBlob() 55 const brillo::SecureBlob& needle) { in FindBlobInBlob() 61 static int FindBlobIndexInBlob(const brillo::SecureBlob& haystack, in FindBlobIndexInBlob() 62 const brillo::SecureBlob& needle) { in FindBlobIndexInBlob() 77 SecureBlob blob(32); in TEST_F() 84 SecureBlob blob(32, 'a'); in TEST_F() 93 SecureBlob blob(32, 0); in TEST_F() 105 SecureBlob blob(std::begin(from_data), std::end(from_data)); in TEST_F() 118 const SecureBlob secure_blob(blob); in TEST_F() 128 SecureBlob blob(std::begin(from_data), std::end(from_data)); in TEST_F() [all …]
|