Lines Matching refs:key
101 ALOGE("private or public key size was too big");
105 /* int type + int size + private key data + int size + public key data */
111 ALOGE("could not allocate memory for key blob");
119 /* Write key type to allocated buffer */
124 /* Write public key to allocated buffer */
133 /* Write private key to allocated buffer */
154 ALOGE("supplied key blob was NULL");
162 ALOGE("key blob appears to be truncated");
167 ALOGE("cannot read key; it was not made by this keymaster");
187 ALOGE("public key length encoding error: size=%ld, end=%d", publicLen, end - p);
194 ALOGE("private key truncated");
201 ALOGE("private key length encoding error: size=%ld, end=%d", privateLen, end - p);
215 ALOGW("Unsupported key type %d", key_type);
269 const uint8_t* key, const size_t key_length,
273 if (key == NULL) {
274 ALOGW("input key == NULL");
277 ALOGW("output key blob or length == NULL");
281 Unique_PKCS8_PRIV_KEY_INFO pkcs8(d2i_PKCS8_PRIV_KEY_INFO(NULL, &key, key_length));
307 ALOGW("output public key buffer == NULL");
322 UniquePtr<uint8_t> key(static_cast<uint8_t*>(malloc(len)));
323 if (key.get() == NULL) {
324 ALOGE("Could not allocate memory for public key data");
328 unsigned char* tmp = reinterpret_cast<unsigned char*>(key.get());
336 *x509_data = key.release();