mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	* ext/digest/digest.c (rb_digest_base_alloc,
rb_digest_base_equal): Simplify the equality check and just compare resulted digests since state-level equality should not be significant. * ext/digest/digest.h: Ditto. * ext/digest/*/*.[ch]: Ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11131 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
		
							parent
							
								
									76f721470b
								
							
						
					
					
						commit
						945a76d97b
					
				
					 21 changed files with 23 additions and 118 deletions
				
			
		| 
						 | 
				
			
			@ -18,7 +18,6 @@
 | 
			
		|||
typedef void (*hash_init_func_t)(void *);
 | 
			
		||||
typedef void (*hash_update_func_t)(void *, unsigned char *, size_t);
 | 
			
		||||
typedef void (*hash_finish_func_t)(void *, unsigned char *);
 | 
			
		||||
typedef int (*hash_equal_func_t)(void *, void *);
 | 
			
		||||
 | 
			
		||||
typedef struct {
 | 
			
		||||
    size_t digest_len;
 | 
			
		||||
| 
						 | 
				
			
			@ -26,5 +25,4 @@ typedef struct {
 | 
			
		|||
    hash_init_func_t init_func;
 | 
			
		||||
    hash_update_func_t update_func;
 | 
			
		||||
    hash_finish_func_t finish_func;
 | 
			
		||||
    hash_equal_func_t equal_func;
 | 
			
		||||
} algo_t;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue