Loading crypto/testmgr.c +6 −8 Original line number Original line Diff line number Diff line Loading @@ -961,16 +961,15 @@ static int __test_skcipher(struct crypto_ablkcipher *tfm, int enc, j = 0; j = 0; for (i = 0; i < tcount; i++) { for (i = 0; i < tcount; i++) { if (template[i].np && !template[i].also_non_np) continue; if (template[i].iv) if (template[i].iv) memcpy(iv, template[i].iv, MAX_IVLEN); memcpy(iv, template[i].iv, MAX_IVLEN); else else memset(iv, 0, MAX_IVLEN); memset(iv, 0, MAX_IVLEN); if (template[i].np && !template[i].also_non_np) continue; j++; j++; ret = -EINVAL; ret = -EINVAL; if (WARN_ON(align_offset + template[i].ilen > PAGE_SIZE)) if (WARN_ON(align_offset + template[i].ilen > PAGE_SIZE)) goto out; goto out; Loading Loading @@ -1038,16 +1037,15 @@ static int __test_skcipher(struct crypto_ablkcipher *tfm, int enc, if (align_offset != 0) if (align_offset != 0) break; break; if (!template[i].np) continue; if (template[i].iv) if (template[i].iv) memcpy(iv, template[i].iv, MAX_IVLEN); memcpy(iv, template[i].iv, MAX_IVLEN); else else memset(iv, 0, MAX_IVLEN); memset(iv, 0, MAX_IVLEN); if (!template[i].np) continue; j++; j++; crypto_ablkcipher_clear_flags(tfm, ~0); crypto_ablkcipher_clear_flags(tfm, ~0); if (template[i].wk) if (template[i].wk) crypto_ablkcipher_set_flags(tfm, CRYPTO_TFM_REQ_WEAK_KEY); crypto_ablkcipher_set_flags(tfm, CRYPTO_TFM_REQ_WEAK_KEY); Loading Loading
crypto/testmgr.c +6 −8 Original line number Original line Diff line number Diff line Loading @@ -961,16 +961,15 @@ static int __test_skcipher(struct crypto_ablkcipher *tfm, int enc, j = 0; j = 0; for (i = 0; i < tcount; i++) { for (i = 0; i < tcount; i++) { if (template[i].np && !template[i].also_non_np) continue; if (template[i].iv) if (template[i].iv) memcpy(iv, template[i].iv, MAX_IVLEN); memcpy(iv, template[i].iv, MAX_IVLEN); else else memset(iv, 0, MAX_IVLEN); memset(iv, 0, MAX_IVLEN); if (template[i].np && !template[i].also_non_np) continue; j++; j++; ret = -EINVAL; ret = -EINVAL; if (WARN_ON(align_offset + template[i].ilen > PAGE_SIZE)) if (WARN_ON(align_offset + template[i].ilen > PAGE_SIZE)) goto out; goto out; Loading Loading @@ -1038,16 +1037,15 @@ static int __test_skcipher(struct crypto_ablkcipher *tfm, int enc, if (align_offset != 0) if (align_offset != 0) break; break; if (!template[i].np) continue; if (template[i].iv) if (template[i].iv) memcpy(iv, template[i].iv, MAX_IVLEN); memcpy(iv, template[i].iv, MAX_IVLEN); else else memset(iv, 0, MAX_IVLEN); memset(iv, 0, MAX_IVLEN); if (!template[i].np) continue; j++; j++; crypto_ablkcipher_clear_flags(tfm, ~0); crypto_ablkcipher_clear_flags(tfm, ~0); if (template[i].wk) if (template[i].wk) crypto_ablkcipher_set_flags(tfm, CRYPTO_TFM_REQ_WEAK_KEY); crypto_ablkcipher_set_flags(tfm, CRYPTO_TFM_REQ_WEAK_KEY); Loading