Searched refs:key_size_bits (Results 1 - 11 of 11) sorted by relevance

/system/keymaster/
H A Dandroid_keymaster_utils.cpp45 keymaster_error_t EcKeySizeToCurve(uint32_t key_size_bits, keymaster_ec_curve_t* curve) { argument
46 switch (key_size_bits) {
70 keymaster_error_t EcCurveToKeySize(keymaster_ec_curve_t curve, uint32_t* key_size_bits) { argument
76 *key_size_bits = 224;
80 *key_size_bits = 256;
84 *key_size_bits = 384;
88 *key_size_bits = 521;
H A Dsymmetric_key.cpp41 uint32_t key_size_bits;
42 if (!key_description.GetTagValue(TAG_KEY_SIZE, &key_size_bits) ||
43 !key_size_supported(key_size_bits))
50 size_t key_data_size = key_size_bits / 8;
57 LOG_E("Error generating %d bit symmetric key", key_size_bits);
76 uint32_t key_size_bits; local
77 if (!authorizations.GetTagValue(TAG_KEY_SIZE, &key_size_bits)) {
79 key_size_bits = input_key_material.key_material_size * 8;
80 authorizations.push_back(TAG_KEY_SIZE, key_size_bits);
87 if (!key_size_supported(key_size_bits))
[all...]
H A Daes_key.h44 bool key_size_supported(size_t key_size_bits) const override {
45 return key_size_bits == 128 || key_size_bits == 192 || key_size_bits == 256;
H A Dhmac_key.h39 bool key_size_supported(size_t key_size_bits) const override {
40 return key_size_bits > 0 && key_size_bits % 8 == 00 &&
41 key_size_bits <= 2048 /* Some RFC test cases require >1024-bit keys */;
H A Dec_key_factory.cpp46 uint32_t* key_size_bits) {
49 if (!key_description.GetTagValue(TAG_KEY_SIZE, key_size_bits)) {
53 keymaster_error_t error = EcKeySizeToCurve(*key_size_bits, curve);
58 keymaster_error_t error = EcCurveToKeySize(*curve, key_size_bits);
64 *key_size_bits != tag_key_size_bits) {
65 LOG_E("Curve key size %d and specified key size %d don't match", key_size_bits,
151 uint32_t* key_size_bits) const {
152 if (!updated_description || !key_size_bits)
172 *key_size_bits = extracted_key_size_bits;
173 if (!updated_description->GetTagValue(TAG_KEY_SIZE, key_size_bits))
44 GetCurveAndSize(const AuthorizationSet& key_description, keymaster_ec_curve_t* curve, uint32_t* key_size_bits) argument
188 ChooseGroup(size_t key_size_bits) argument
[all...]
H A Dopenssl_utils.cpp25 keymaster_error_t ec_get_group_size(const EC_GROUP* group, size_t* key_size_bits) { argument
28 *key_size_bits = 224;
31 *key_size_bits = 256;
34 *key_size_bits = 384;
37 *key_size_bits = 521;
H A Dsymmetric_key.h47 virtual bool key_size_supported(size_t key_size_bits) const = 0;
H A Dopenssl_utils.h72 keymaster_error_t ec_get_group_size(const EC_GROUP* group, size_t* key_size_bits);
H A Dsoft_keymaster_context.cpp952 size_t key_size_bits;
954 ec_get_group_size(EC_KEY_get0_group(ec_key.get()), &key_size_bits);
957 hw_enforced->push_back(TAG_KEY_SIZE, key_size_bits);
/system/keymaster/include/keymaster/
H A Dec_key_factory.h56 static EC_GROUP* ChooseGroup(size_t key_size_bits);
60 keymaster_ec_curve_t* curve, uint32_t* key_size_bits);
H A Dandroid_keymaster_utils.h328 keymaster_error_t EcKeySizeToCurve(uint32_t key_size_bits, keymaster_ec_curve_t* curve);
329 keymaster_error_t EcCurveToKeySize(keymaster_ec_curve_t curve, uint32_t* key_size_bits);

Completed in 2178 milliseconds