Searched defs:ciphertext (Results 1 - 3 of 3) sorted by relevance

/system/keymaster/
H A Docb_utils.cpp122 KeymasterKeyBlob* ciphertext, Buffer* tag) {
123 assert(ciphertext && tag);
137 if (!ciphertext->Reset(plaintext.key_material_size))
142 0 /* additional data length */, ciphertext->writable_data(),
157 const KeymasterKeyBlob& ciphertext, const Buffer& nonce,
173 if (!plaintext->Reset(ciphertext.key_material_size))
176 int ae_err = ae_decrypt(ctx.get(), nonce.peek_read(), ciphertext.key_material,
177 ciphertext.key_material_size, NULL /* additional data */,
190 assert(ae_err == static_cast<int>(ciphertext.key_material_size));
118 OcbEncryptKey(const AuthorizationSet& hw_enforced, const AuthorizationSet& sw_enforced, const AuthorizationSet& hidden, const KeymasterKeyBlob& master_key, const KeymasterKeyBlob& plaintext, const Buffer& nonce, KeymasterKeyBlob* ciphertext, Buffer* tag) argument
154 OcbDecryptKey(const AuthorizationSet& hw_enforced, const AuthorizationSet& sw_enforced, const AuthorizationSet& hidden, const KeymasterKeyBlob& master_key, const KeymasterKeyBlob& ciphertext, const Buffer& nonce, const Buffer& tag, KeymasterKeyBlob* plaintext) argument
H A Dandroid_keymaster_test_utils.cpp431 string ciphertext = local
440 return ciphertext;
462 string ciphertext = local
471 return ciphertext;
481 string ciphertext = local
490 return ciphertext;
501 string Keymaster1Test::DecryptMessage(const string& ciphertext, keymaster_padding_t padding) { argument
506 return ProcessMessage(KM_PURPOSE_DECRYPT, ciphertext, begin_params, update_params);
509 string Keymaster1Test::DecryptMessage(const string& ciphertext, keymaster_digest_t digest, argument
516 return ProcessMessage(KM_PURPOSE_DECRYPT, ciphertext, begin_param
519 DecryptMessage(const string& ciphertext, keymaster_block_mode_t block_mode, keymaster_padding_t padding) argument
529 DecryptMessage(const string& ciphertext, keymaster_digest_t digest, keymaster_padding_t padding, const string& nonce) argument
540 DecryptMessage(const string& ciphertext, keymaster_block_mode_t block_mode, keymaster_padding_t padding, const string& nonce) argument
551 DecryptMessage(const AuthorizationSet& update_params, const string& ciphertext, keymaster_digest_t digest, keymaster_padding_t padding, const string& nonce) argument
607 string ciphertext = local
[all...]
H A Dandroid_keymaster_test.cpp1837 string ciphertext = EncryptMessage(message, KM_MODE_ECB, KM_PAD_PKCS7); local
1838 string plaintext = DecryptMessage(ciphertext, KM_MODE_ECB, KM_PAD_PKCS7);
1891 string ciphertext = EncryptMessage(message, KM_PAD_NONE); local
1892 EXPECT_EQ(256U / 8, ciphertext.size());
1895 string plaintext = DecryptMessage(ciphertext, KM_PAD_NONE);
1992 string ciphertext = EncryptMessage(string(message), KM_DIGEST_SHA_2_256, KM_PAD_RSA_OAEP); local
1993 EXPECT_EQ(key_size / 8, ciphertext.size());
1995 string plaintext = DecryptMessage(ciphertext, KM_DIGEST_SHA_2_256, KM_PAD_RSA_OAEP);
2043 string ciphertext = EncryptMessage(string(message), KM_DIGEST_SHA_2_256, KM_PAD_RSA_OAEP); local
2051 EXPECT_EQ(KM_ERROR_OK, UpdateOperation(ciphertext,
2087 string ciphertext = EncryptMessage(string(message), KM_DIGEST_SHA_2_256, KM_PAD_RSA_OAEP); local
2128 string ciphertext = EncryptMessage(string(message), KM_PAD_RSA_PKCS1_1_5_ENCRYPT); local
2177 string ciphertext = EncryptMessage(string(message), KM_PAD_RSA_PKCS1_1_5_ENCRYPT); local
2279 string ciphertext; local
2297 string ciphertext = EncryptMessage(message, KM_MODE_ECB, KM_PAD_PKCS7); local
2331 string ciphertext = EncryptMessage(message, KM_MODE_ECB, KM_PAD_PKCS7); local
2389 string ciphertext; local
2420 const char* ciphertext; member in struct:keymaster::test::AesCtrSp80038aTestVector
2459 const string ciphertext = hex2str(test.ciphertext); local
2607 string ciphertext; local
2644 string ciphertext = EncryptMessage(message, KM_MODE_CBC, KM_PAD_PKCS7, &iv); local
2672 string ciphertext; local
2738 string ciphertext; local
2764 uint8_t ciphertext[] = { local
2837 string ciphertext; local
2878 string ciphertext; local
2950 string ciphertext; local
3004 string ciphertext; local
3048 string ciphertext; local
3090 string ciphertext; local
[all...]

Completed in 103 milliseconds