Lines Matching full:persistent

41  * @brief Extracts the public key from the specified persistent key id.
64 LOG_ERR("Failed to open persistent key #%d", key_id); in crp_get_pub_key()
68 /* Export the persistent key's public key part. */ in crp_get_pub_key()
85 LOG_ERR("Failed to close persistent key."); in crp_get_pub_key()
97 * @brief Stores a new persistent secp256r1 key (usage: ecdsa-with-SHA256)
100 * This function will store a new persistent secp256r1 key in internal trusted
102 * identifier (key_id) associated with this persistent key. Only the 32-byte
135 /* Import the private key, creating the persistent key on success */ in crp_imp_key_secp256r1()
149 LOG_ERR("Failed to close persistent key."); in crp_imp_key_secp256r1()
163 LOG_ERR("Failed to open persistent key #%d", key_id); in crp_imp_key_secp256r1()
200 LOG_ERR("Failed to close persistent key."); in crp_imp_key_secp256r1()
213 * @brief Generates a new permanent, persistent prime256v1 (ecdsa-with-SHA256)
218 * identifier (key_id) associated with this persistent key.
247 /* Generate the private key, creating the persistent key on success */ in crp_gen_key_secp256r1()
261 LOG_ERR("Failed to close persistent key."); in crp_gen_key_secp256r1()
275 LOG_ERR("Failed to open persistent key #%d", key_id); in crp_gen_key_secp256r1()
306 LOG_ERR("Failed to close persistent key."); in crp_gen_key_secp256r1()
394 /* Generate persistent prime256v1 (ecdsa-with-SHA256) key w/ID #1. */ in crp_generate_csr()
403 LOG_ERR("Failed to create persistent key #%d", key_slot); in crp_generate_csr()
422 /* Generate persistent prime256v1 (ecdsa-with-SHA256) key w/ID #1. */ in crp_generate_csr()
430 LOG_ERR("Failed to create persistent key #%d", key_slot); in crp_generate_csr()
439 LOG_ERR("Failed to open persistent key #%d", key_slot); in crp_generate_csr()
520 LOG_ERR("Failed to close persistent key."); in crp_generate_csr()
591 * @brief Signs the supplied hash using the specified persistent key.
616 LOG_ERR("Failed to open persistent key #%d", key_id); in crp_sign_hash()
628 LOG_ERR("Failed to sign hash w/persistent key #%d", key_id); in crp_sign_hash()
645 LOG_ERR("Failed to close persistent key."); in crp_sign_hash()
659 * @param key_id The identifier for the persistent key.
680 LOG_ERR("Failed to open persistent key #%d", key_id); in crp_verify_sign()
704 LOG_ERR("Failed to close persistent key."); in crp_verify_sign()
715 * @brief Destroys the specified persistent key.
717 * @param key_id The identifier for the persistent key.
729 LOG_ERR("Failed to open persistent key #%d", key_id); in crp_dest_key()
733 /* Destroy the persistent key */ in crp_dest_key()
738 LOG_ERR("Failed to destroy a persistent key"); in crp_dest_key()
742 LOG_INF("Destroyed persistent key #%d", (uint32_t)key_id); in crp_dest_key()
825 /* Generate persistent secp256r1 key w/ID #1. */ in crp_test()