mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
crypto: clarify name of WEAK_KEY request flag
CRYPTO_TFM_REQ_WEAK_KEY confuses newcomers to the crypto API because it sounds like it is requesting a weak key. Actually, it is requesting that weak keys be forbidden (for algorithms that have the notion of "weak keys"; currently only DES and XTS do). Also it is only one letter away from CRYPTO_TFM_RES_WEAK_KEY, with which it can be easily confused. (This in fact happened in the UX500 driver, though just in some debugging messages.) Therefore, make the intent clear by renaming it to CRYPTO_TFM_REQ_FORBID_WEAK_KEYS. Signed-off-by: Eric Biggers <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
This commit is contained in:
parent
37ebffff65
commit
231baecdef
25 changed files with 55 additions and 49 deletions
|
|
@ -50,7 +50,7 @@ struct hash_testvec {
|
|||
* @ctext: Pointer to ciphertext
|
||||
* @len: Length of @ptext and @ctext in bytes
|
||||
* @fail: If set to one, the test need to fail
|
||||
* @wk: Does the test need CRYPTO_TFM_REQ_WEAK_KEY
|
||||
* @wk: Does the test need CRYPTO_TFM_REQ_FORBID_WEAK_KEYS?
|
||||
* ( e.g. test needs to fail due to a weak key )
|
||||
* @np: numbers of SG to distribute data in (from 1 to MAX_TAP)
|
||||
* @tap: How to distribute data in @np SGs
|
||||
|
|
@ -91,7 +91,7 @@ struct cipher_testvec {
|
|||
* @anp: Numbers of SG to distribute assoc data in
|
||||
* @fail: setkey() failure expected?
|
||||
* @novrfy: Decryption verification failure expected?
|
||||
* @wk: Does the test need CRYPTO_TFM_REQ_WEAK_KEY?
|
||||
* @wk: Does the test need CRYPTO_TFM_REQ_FORBID_WEAK_KEYS?
|
||||
* (e.g. setkey() needs to fail due to a weak key)
|
||||
* @klen: Length of @key in bytes
|
||||
* @plen: Length of @ptext in bytes
|
||||
|
|
|
|||
Loading…
Reference in a new issue