Simplify password check in pem_read_buffer()

This commit is contained in:
Manuel Pégourié-Gonnard 2013-07-09 16:35:23 +02:00
parent 791eed3f33
commit 7d4e5b739e
2 changed files with 8 additions and 16 deletions

View file

@ -84,8 +84,9 @@ void pem_init( pem_context *ctx );
* POLARSSL_ERR_PEM_NO_HEADER_FOOTER_PRESENT, use_len is
* the length to skip)
*
* \note Checks password correctness by verifying if the decrypted
* text looks like a RSAPrivateKey or ECPrivateKey structure
* \note Attempts to check password correctness by verifying if
* the decrypted text starts with an ASN.1 sequence of
* appropriate length
*
* \return 0 on success, ior a specific PEM error code
*/