forked from mirrors/linux
		
	crypto: echainiv - Remove AEAD compatibility code
Now that we no longer have any legacy AEAD implementations the compatibility code path can no longer be triggered. This patch removes it. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
		
							parent
							
								
									92932d03c2
								
							
						
					
					
						commit
						66008d4230
					
				
					 1 changed files with 0 additions and 4 deletions
				
			
		| 
						 | 
					@ -247,9 +247,6 @@ static int echainiv_aead_create(struct crypto_template *tmpl,
 | 
				
			||||||
	spawn = aead_instance_ctx(inst);
 | 
						spawn = aead_instance_ctx(inst);
 | 
				
			||||||
	alg = crypto_spawn_aead_alg(spawn);
 | 
						alg = crypto_spawn_aead_alg(spawn);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if (alg->base.cra_aead.encrypt)
 | 
					 | 
				
			||||||
		goto done;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	err = -EINVAL;
 | 
						err = -EINVAL;
 | 
				
			||||||
	if (inst->alg.ivsize & (sizeof(u32) - 1) ||
 | 
						if (inst->alg.ivsize & (sizeof(u32) - 1) ||
 | 
				
			||||||
	    inst->alg.ivsize > MAX_IV_SIZE)
 | 
						    inst->alg.ivsize > MAX_IV_SIZE)
 | 
				
			||||||
| 
						 | 
					@ -267,7 +264,6 @@ static int echainiv_aead_create(struct crypto_template *tmpl,
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	inst->free = aead_geniv_free;
 | 
						inst->free = aead_geniv_free;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
done:
 | 
					 | 
				
			||||||
	err = aead_register_instance(tmpl, inst);
 | 
						err = aead_register_instance(tmpl, inst);
 | 
				
			||||||
	if (err)
 | 
						if (err)
 | 
				
			||||||
		goto free_inst;
 | 
							goto free_inst;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue