Searched refs:key_usage (Results 1 – 2 of 2) sorted by relevance
/system/keymaster/km_openssl/ |
D | certificate_utils.cpp | 181 ASN1_BIT_STRING_Ptr key_usage(ASN1_BIT_STRING_new()); in make_key_usage_extension() local 182 if (!key_usage) return KM_ERROR_MEMORY_ALLOCATION_FAILED; in make_key_usage_extension() 185 if (!ASN1_BIT_STRING_set_bit(key_usage.get(), i, 0)) { in make_key_usage_extension() 191 if (!ASN1_BIT_STRING_set_bit(key_usage.get(), kDigitalSignatureKeyUsageBit, 1)) { in make_key_usage_extension() 197 if (!ASN1_BIT_STRING_set_bit(key_usage.get(), kKeyEnciphermentKeyUsageBit, 1) || in make_key_usage_extension() 198 !ASN1_BIT_STRING_set_bit(key_usage.get(), kDataEnciphermentKeyUsageBit, 1)) { in make_key_usage_extension() 204 if (!ASN1_BIT_STRING_set_bit(key_usage.get(), kKeyAgreementKeyUsageBit, 1)) { in make_key_usage_extension() 210 int len = i2d_ASN1_BIT_STRING(key_usage.get(), nullptr); in make_key_usage_extension() 219 len = i2d_ASN1_BIT_STRING(key_usage.get(), &p); in make_key_usage_extension()
|
/system/security/keystore2/src/crypto/ |
D | certificate_utils.cpp | 140 ASN1_BIT_STRING_Ptr key_usage(ASN1_BIT_STRING_new()); in makeKeyUsageExtension() local 141 if (!key_usage) { in makeKeyUsageExtension() 146 if (!ASN1_BIT_STRING_set_bit(key_usage.get(), i, 0)) { in makeKeyUsageExtension() 152 if (!ASN1_BIT_STRING_set_bit(key_usage.get(), kDigitalSignatureKeyUsageBit, 1)) { in makeKeyUsageExtension() 158 if (!ASN1_BIT_STRING_set_bit(key_usage.get(), kKeyEnciphermentKeyUsageBit, 1) || in makeKeyUsageExtension() 159 !ASN1_BIT_STRING_set_bit(key_usage.get(), kDataEnciphermentKeyUsageBit, 1)) { in makeKeyUsageExtension() 165 if (!ASN1_BIT_STRING_set_bit(key_usage.get(), kKeyCertSignBit, 1)) { in makeKeyUsageExtension() 170 return key_usage; in makeKeyUsageExtension()
|