mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 02:30:34 +02:00 
			
		
		
		
	crypto: tcrypt - add xts(serpent) tests
Signed-off-by: Jussi Kivilinna <jussi.kivilinna@mbnet.fi> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
		
							parent
							
								
									18be20b944
								
							
						
					
					
						commit
						5209c07ac3
					
				
					 2 changed files with 10 additions and 0 deletions
				
			
		| 
						 | 
					@ -998,6 +998,7 @@ static int do_test(int m)
 | 
				
			||||||
		ret += tcrypt_test("cbc(serpent)");
 | 
							ret += tcrypt_test("cbc(serpent)");
 | 
				
			||||||
		ret += tcrypt_test("ctr(serpent)");
 | 
							ret += tcrypt_test("ctr(serpent)");
 | 
				
			||||||
		ret += tcrypt_test("lrw(serpent)");
 | 
							ret += tcrypt_test("lrw(serpent)");
 | 
				
			||||||
 | 
							ret += tcrypt_test("xts(serpent)");
 | 
				
			||||||
		break;
 | 
							break;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	case 10:
 | 
						case 10:
 | 
				
			||||||
| 
						 | 
					@ -1315,6 +1316,10 @@ static int do_test(int m)
 | 
				
			||||||
				  speed_template_32_48);
 | 
									  speed_template_32_48);
 | 
				
			||||||
		test_cipher_speed("lrw(serpent)", DECRYPT, sec, NULL, 0,
 | 
							test_cipher_speed("lrw(serpent)", DECRYPT, sec, NULL, 0,
 | 
				
			||||||
				  speed_template_32_48);
 | 
									  speed_template_32_48);
 | 
				
			||||||
 | 
							test_cipher_speed("xts(serpent)", ENCRYPT, sec, NULL, 0,
 | 
				
			||||||
 | 
									  speed_template_32_64);
 | 
				
			||||||
 | 
							test_cipher_speed("xts(serpent)", DECRYPT, sec, NULL, 0,
 | 
				
			||||||
 | 
									  speed_template_32_64);
 | 
				
			||||||
		break;
 | 
							break;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	case 300:
 | 
						case 300:
 | 
				
			||||||
| 
						 | 
					@ -1535,6 +1540,10 @@ static int do_test(int m)
 | 
				
			||||||
				   speed_template_32_48);
 | 
									   speed_template_32_48);
 | 
				
			||||||
		test_acipher_speed("lrw(serpent)", DECRYPT, sec, NULL, 0,
 | 
							test_acipher_speed("lrw(serpent)", DECRYPT, sec, NULL, 0,
 | 
				
			||||||
				   speed_template_32_48);
 | 
									   speed_template_32_48);
 | 
				
			||||||
 | 
							test_acipher_speed("xts(serpent)", ENCRYPT, sec, NULL, 0,
 | 
				
			||||||
 | 
									   speed_template_32_64);
 | 
				
			||||||
 | 
							test_acipher_speed("xts(serpent)", DECRYPT, sec, NULL, 0,
 | 
				
			||||||
 | 
									   speed_template_32_64);
 | 
				
			||||||
		break;
 | 
							break;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	case 1000:
 | 
						case 1000:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -53,6 +53,7 @@ static u8 speed_template_16_24_32[] = {16, 24, 32, 0};
 | 
				
			||||||
static u8 speed_template_32_40_48[] = {32, 40, 48, 0};
 | 
					static u8 speed_template_32_40_48[] = {32, 40, 48, 0};
 | 
				
			||||||
static u8 speed_template_32_48[] = {32, 48, 0};
 | 
					static u8 speed_template_32_48[] = {32, 48, 0};
 | 
				
			||||||
static u8 speed_template_32_48_64[] = {32, 48, 64, 0};
 | 
					static u8 speed_template_32_48_64[] = {32, 48, 64, 0};
 | 
				
			||||||
 | 
					static u8 speed_template_32_64[] = {32, 64, 0};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/*
 | 
					/*
 | 
				
			||||||
 * Digest speed tests
 | 
					 * Digest speed tests
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue