OSDN Git Service

crypto: doc - Fixed bugs, added example usage of calc_hash().
authorKamil Konieczny <k.konieczny@partner.samsung.com>
Fri, 12 May 2017 15:38:02 +0000 (17:38 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Mon, 19 Jun 2017 06:11:56 +0000 (14:11 +0800)
commitea644b8ca44b9fcbb41c58e1d51a0c8cdad0a61b
treec69f5a196dfd6a1d6c90ec0b254ddc870343aaa8
parent8270f5d799c946d7636ef317eff990830d2fe89f
crypto: doc - Fixed bugs, added example usage of calc_hash().

- Fixed bugs in example for shash and rng (added missing "*" and " *").
- Corrected pr_info() in calc_hash().
- Added example usage of calc_hash().
- No need for negate PTR_ERR to get error code, as crypto_alloc_rng
  already returns negative values like ERR_PTR(-ENOMEM). Fixed.

Signed-off-by: Kamil Konieczny <k.konieczny@partner.samsung.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Documentation/crypto/api-samples.rst