Fix documentation in keymaster_context
Change-Id: Ic42906e1a701bf33d4d91b37d6b63188eb0d93cc
diff --git a/include/keymaster/keymaster_context.h b/include/keymaster/keymaster_context.h
index 104e874..1f28efd 100644
--- a/include/keymaster/keymaster_context.h
+++ b/include/keymaster/keymaster_context.h
@@ -161,15 +161,14 @@
/**
* Return the attestation signing key of the specified algorithm (KM_ALGORITHM_RSA or
- * KM_ALGORITHM_EC). Caller does not acquire ownership and should not delete.
+ * KM_ALGORITHM_EC). Caller acquires ownership and should free using EVP_PKEY_free.
*/
virtual EVP_PKEY* AttestationKey(keymaster_algorithm_t algorithm,
keymaster_error_t* error) const = 0;
/**
* Return the certificate chain of the attestation signing key of the specified algorithm
- * (KM_ALGORITHM_RSA or KM_ALGORITHM_EC). Caller does not acquire ownership and should not
- * delete.
+ * (KM_ALGORITHM_RSA or KM_ALGORITHM_EC). Caller acquires ownership and should free.
*/
virtual keymaster_cert_chain_t* AttestationChain(keymaster_algorithm_t algorithm,
keymaster_error_t* error) const = 0;