mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 14:52:43 +00:00 
			
		
		
		
	 f783af05ed
			
		
	
	
		f783af05ed
		
	
	
	
	
		
			
			The algorithm comparison in digest() is done using a StringView to avoid complex error handling and promise rejection.
		
			
				
	
	
		
			5 lines
		
	
	
	
		
			233 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			5 lines
		
	
	
	
		
			233 B
		
	
	
	
		
			Text
		
	
	
	
	
	
| [SecureContext,Exposed=(Window,Worker), UseNewAKString]
 | |
| interface SubtleCrypto {
 | |
|     // FIXME: Add support for AlgorithmIdentifier ("typedef (object or DOMString)")
 | |
|     Promise<any> digest(DOMString algorithm, BufferSource data);
 | |
| };
 |