Searched refs:cipher (Results 1 – 9 of 9) sorted by relevance
| /system/ulib/crypto/ |
| A D | cipher.cpp | 44 switch (cipher) { in GetCipher() 54 xprintf("invalid cipher = %u\n", cipher); in GetCipher() 70 const EVP_CIPHER* cipher; in GetKeyLen() local 74 *out = cipher->key_len; in GetKeyLen() 86 const EVP_CIPHER* cipher; in GetIVLen() local 90 *out = cipher->iv_len; in GetIVLen() 102 const EVP_CIPHER* cipher; in GetBlockSize() local 106 *out = cipher->block_size; in GetBlockSize() 122 const EVP_CIPHER* cipher; in Init() local 126 if (key.len() != cipher->key_len || iv.len() != cipher->iv_len) { in Init() [all …]
|
| A D | rules.mk | 14 $(LOCAL_DIR)/cipher.cpp \
|
| /system/utest/crypto/ |
| A D | cipher.cpp | 55 Cipher cipher; in TestInitEncrypt_Uninitialized() local 62 bool TestInitEncrypt(Cipher::Algorithm cipher) { in TestInitEncrypt() argument 67 ASSERT_OK(GenerateKeyMaterial(cipher, &key, &iv)); in TestInitEncrypt() 83 EXPECT_OK(encrypt.InitEncrypt(cipher, key, iv)); in TestInitEncrypt() 99 bool TestInitDecrypt(Cipher::Algorithm cipher) { in TestInitDecrypt() argument 120 EXPECT_OK(decrypt.InitDecrypt(cipher, key, iv)); in TestInitDecrypt() 127 bool TestEncryptStream(Cipher::Algorithm cipher) { in DEFINE_EACH() 139 ASSERT_OK(encrypt.InitEncrypt(cipher, key, iv)); in DEFINE_EACH() 200 bool TestDecryptStream(Cipher::Algorithm cipher) { in DEFINE_EACH() 210 ASSERT_OK(encrypt.InitEncrypt(cipher, key, iv)); in DEFINE_EACH() [all …]
|
| A D | utils.cpp | 76 zx_status_t GenerateKeyMaterial(Cipher::Algorithm cipher, Secret* key, Bytes* iv) { in GenerateKeyMaterial() argument 81 if ((rc = Cipher::GetKeyLen(cipher, &key_len)) != ZX_OK || in GenerateKeyMaterial() 87 if ((rc = Cipher::GetIVLen(cipher, &iv_len)) != ZX_OK || in GenerateKeyMaterial() 96 zx_status_t GenerateKeyMaterial(AEAD::Algorithm cipher, Secret* key, Bytes* iv) { in GenerateKeyMaterial() argument 101 if ((rc = AEAD::GetKeyLen(cipher, &key_len)) != ZX_OK || in GenerateKeyMaterial() 107 if ((rc = AEAD::GetIVLen(cipher, &iv_len)) != ZX_OK || in GenerateKeyMaterial()
|
| A D | rules.mk | 18 $(LOCAL_DIR)/cipher.cpp \
|
| A D | utils.h | 70 zx_status_t GenerateKeyMaterial(Cipher::Algorithm cipher, Secret* key, Bytes* iv);
|
| /system/ulib/crypto/include/crypto/ |
| A D | cipher.h | 44 static zx_status_t GetKeyLen(Algorithm cipher, size_t* out); 48 static zx_status_t GetIVLen(Algorithm cipher, size_t* out); 52 static zx_status_t GetBlockSize(Algorithm cipher, size_t* out);
|
| /system/ulib/zxcrypt/include/zxcrypt/ |
| A D | volume.h | 101 zx_status_t Bind(crypto::Cipher::Direction direction, crypto::Cipher* cipher) const;
|
| /system/ulib/zxcrypt/ |
| A D | volume.cpp | 318 zx_status_t Volume::Bind(crypto::Cipher::Direction direction, crypto::Cipher* cipher) const { in Bind() 322 if (!cipher) { in Bind() 323 xprintf("bad parameter(s): cipher=%p\n", cipher); in Bind() 330 if ((rc = cipher->Init(cipher_, direction, data_key_, data_iv_, block_.len())) != ZX_OK) { in Bind()
|
Completed in 14 milliseconds