Lines Matching refs:key_size_bits
41 uint32_t key_size_bits; in GenerateKey() local
42 if (!key_description.GetTagValue(TAG_KEY_SIZE, &key_size_bits) || in GenerateKey()
43 !key_size_supported(key_size_bits)) in GenerateKey()
50 size_t key_data_size = key_size_bits / 8; in GenerateKey()
57 LOG_E("Error generating %d bit symmetric key", key_size_bits); in GenerateKey()
76 uint32_t key_size_bits; in ImportKey() local
77 if (!authorizations.GetTagValue(TAG_KEY_SIZE, &key_size_bits)) { in ImportKey()
79 key_size_bits = input_key_material.key_material_size * 8; in ImportKey()
80 authorizations.push_back(TAG_KEY_SIZE, key_size_bits); in ImportKey()
87 if (!key_size_supported(key_size_bits)) in ImportKey()
93 if (key_size_bits != input_key_material.key_material_size * 8) { in ImportKey()
94 LOG_E("Expected %d-bit key data but got %d bits", key_size_bits, in ImportKey()