cceed8389d 
								
							
								 
							
						 
						
							
							
								
								lavu/aes: test CBC functionality  
							
							
								
							
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								15ff5c7215 
								
							
								 
							
						 
						
							
							
								
								lavu/aes: add runtime dispatch for crypt function  
							
							
								
							
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								ec588db56f 
								
							
								 
							
						 
						
							
							
								
								lavu/aes: move AVAES to separate internal header  
							
							
								
							
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								07d4fe3a87 
								
							
								 
							
						 
						
							
							
								
								avutil: use EINVAL instead of -1 for the return code of crypto related init functions  
							
							These functions return an error typically when the key size is an
incorrect number. AVERROR(EINVAL) is more specific than -1.
Reviewed-by: Ronald S. Bultje <rsbultje@gmail.com>
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com> 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								2f9b652e8c 
								
							
								 
							
						 
						
							
							
								
								lavu: Drop deprecated context size variables  
							
							Deprecated in 10/2012. 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								fdbad24090 
								
							
								 
							
						 
						
							
							
								
								avutil/aes: Fix types  
							
							Fixes "warning: argument #2  is incompatible with prototype:"
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								52d1929000 
								
							
								 
							
						 
						
							
							
								
								avutil/aes: Add () to protect the ROT() arguments  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								0d37ca150c 
								
							
								 
							
						 
						
							
							
								
								avutil/aes: Rename crypt()  
							
							This avoids a potential conflict with the equally named function from XOPEN
It also could reduce confusion in debugger backtraces
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								fb0c9d41d6 
								
							
								 
							
						 
						
							
							
								
								avutil: remove timer.h include from internal.h  
							
							Added libavutil/timer.h include to all files with {START,STOP}_TIMER. 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								ac090fa68c 
								
							
								 
							
						 
						
							
							
								
								lavu: keep context size variables  
							
							They are essential to be able to use the utils without av_malloc()
That is for example use with malloc(), memalign(), some other
private allocation function, on the stack or others.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								9a92aea27b 
								
							
								 
							
						 
						
							
							
								
								avutil: Add functions for allocating opaque contexts for algorithms  
							
							The current API where the plain size is exposed is not of much
use - in most cases it is allocated dynamically anyway.
If allocated e.g. on the stack via an uint8_t array, there's no
guarantee that the struct's members are aligned properly (unless
the array is overallocated and the opaque pointer within it
manually aligned to some unspecified alignment).
Signed-off-by: Martin Storsjö <martin@martin.st> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								c18365402b 
								
							
								 
							
						 
						
							
							
								
								Replace Subversion revisions in comments by Git hashes.  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								d086c1203c 
								
							
								 
							
						 
						
							
							
								
								Add coverage exclusions for test code.  
							
							For some of the code e.g. doing timing measurements there is no
real point in running regression testing on it, thus it should
not be counted against coverage.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								c9e5ac3380 
								
							
								 
							
						 
						
							
							
								
								aes: Avoid illegal read and don't generate more key than we use.  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								d04d9f24a0 
								
							
								 
							
						 
						
							
							
								
								aes: allow unaligned input and output buffers  
							
							Signed-off-by: Mans Rullgard <mans@mansr.com> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								8f175810be 
								
							
								 
							
						 
						
							
							
								
								aes: fix for big endian systems  
							
							This was missed in 5d20f19 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								5d20f19be2 
								
							
								 
							
						 
						
							
							
								
								aes: fix invalid array indexing in init code  
							
							This makes the code work with clang/x86_32 and removes several warnings.
Signed-off-by: Mans Rullgard <mans@mansr.com> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								af2ea72495 
								
							
								 
							
						 
						
							
							
								
								aes: use direct assignments instead of memcpy() or loops  
							
							Signed-off-by: Mans Rullgard <mans@mansr.com> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								4bfe064460 
								
							
								 
							
						 
						
							
							
								
								aes: whitespace cosmetics  
							
							Signed-off-by: Mans Rullgard <mans@mansr.com> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								744765a9c5 
								
							
								 
							
						 
						
							
							
								
								aes: improve test program and add fate test  
							
							Signed-off-by: Mans Rullgard <mans@mansr.com> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								2912e87a6c 
								
							
								 
							
						 
						
							
							
								
								Replace FFmpeg with Libav in licence headers  
							
							Signed-off-by: Mans Rullgard <mans@mansr.com> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								c184bb44db 
								
							
								 
							
						 
						
							
							
								
								aes: fix array index out of bounds warning  
							
							Originally committed as revision 24048 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						15 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								19c039ee3d 
								
							
								 
							
						 
						
							
							
								
								Make mix function more readable.  
							
							Compiler output unchanged with gcc 4.4.
Originally committed as revision 24006 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						15 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								dd025f25da 
								
							
								 
							
						 
						
							
							
								
								Change AES code to be strict-aliasing-safe.  
							
							Makes it give correct results with e.g. gcc 4.4.
For unknown reasons the generate asm code also changes
on e.g. gcc 4.3, making the code a bit larger but also
a bit faster.
Originally committed as revision 23896 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						15 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								2ad4a3bc78 
								
							
								 
							
						 
						
							
							
								
								Pass subshift an argument of the proper type.  
							
							No changes in generated code.
Originally committed as revision 23856 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						15 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								17c78b087a 
								
							
								 
							
						 
						
							
							
								
								Use a consistent type for multbl array function parameters.  
							
							Originally committed as revision 23855 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						15 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								64bde1974b 
								
							
								 
							
						 
						
							
							
								
								cosmetics: Rename prn variable to prng (Pseudo Random Number Generator).  
							
							Originally committed as revision 18422 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						16 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								294eaa2643 
								
							
								 
							
						 
						
							
							
								
								Replace random() usage in test programs by av_lfg_*().  
							
							Originally committed as revision 18070 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						16 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								b56e34c5e9 
								
							
								 
							
						 
						
							
							
								
								Make AES test program compile again: Setting the av_log_level variable  
							
							needs to be replaced by a call to av_log_set_level().
Originally committed as revision 18055 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						16 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								7b484a7a17 
								
							
								 
							
						 
						
							
							
								
								Add "const" to AES function arguments where possible without generating  
							
							more warnings.
Originally committed as revision 16847 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						16 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								b250f9c66d 
								
							
								 
							
						 
						
							
							
								
								Change semantic of CONFIG_*, HAVE_* and ARCH_*.  
							
							They are now always defined to either 0 or 1.
Originally committed as revision 16590 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						17 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								43bfaa8920 
								
							
								 
							
						 
						
							
							
								
								Fix test program compilation, random() needs to be undefined.  
							
							Originally committed as revision 11470 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						18 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								f8a80fd69d 
								
							
								 
							
						 
						
							
							
								
								main() --> main(void)  
							
							Originally committed as revision 11079 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						18 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								ef0d7a0d4f 
								
							
								 
							
						 
						
							
							
								
								Document aes init code writing on purpose beyond round_key array into state array.  
							
							Originally committed as revision 9734 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						18 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								2eb697a455 
								
							
								 
							
						 
						
							
							
								
								Move comment to a slightly better place.  
							
							Originally committed as revision 9462 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						18 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								79d4c96a1a 
								
							
								 
							
						 
						
							
							
								
								correct last element inited check  
							
							Originally committed as revision 9018 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						18 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								57d7b036ea 
								
							
								 
							
						 
						
							
							
								
								make key parameter const  
							
							Originally committed as revision 7935 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						18 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								ca2560dff6 
								
							
								 
							
						 
						
							
							
								
								10l (aes_crypt -> av_aes_crypt)  
							
							Originally committed as revision 7559 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						19 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								97f6d1545e 
								
							
								 
							
						 
						
							
							
								
								fix CONFIG_SMALL again  
							
							Originally committed as revision 7554 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						19 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								5d1b539348 
								
							
								 
							
						 
						
							
							
								
								30byte smaller object file  
							
							Originally committed as revision 7553 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						19 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								97e3458c46 
								
							
								 
							
						 
						
							
							
								
								cbc support  
							
							Originally committed as revision 7550 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						19 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								2d3475ae6a 
								
							
								 
							
						 
						
							
							
								
								avoid memcpy()  
							
							Originally committed as revision 7549 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						19 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								7465619af8 
								
							
								 
							
						 
						
							
							
								
								give crypt a src and dst  
							
							same speed, 100bytes larger object file
Originally committed as revision 7548 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						19 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								b0642c7409 
								
							
								 
							
						 
						
							
							
								
								change subshift a little, this reduces the object size a litlle  
							
							Originally committed as revision 7546 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						19 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								298dd6b7c8 
								
							
								 
							
						 
						
							
							
								
								use 2 state arrays so that fewer temporary variables are needed  
							
							Originally committed as revision 7545 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						19 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								cc6b4da83a 
								
							
								 
							
						 
						
							
							
								
								remove useless parameter  
							
							Originally committed as revision 7544 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						19 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								14bc38498a 
								
							
								 
							
						 
						
							
							
								
								unused variable  
							
							Originally committed as revision 7543 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						19 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								1aa72a703c 
								
							
								 
							
						 
						
							
							
								
								merge shift into mix  
							
							this need -fno-strict-aliasing to work (needs to be fixed of course)
Originally committed as revision 7534 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						19 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								1f83576b48 
								
							
								 
							
						 
						
							
							
								
								make aes_en/decrypt() static until we decided on the public API  
							
							Originally committed as revision 7533 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						19 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								0d80bd2f56 
								
							
								 
							
						 
						
							
							
								
								move #include log.h into the selftesting code where it belongs  
							
							Originally committed as revision 7529 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						19 years ago