mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 12:52:44 +00:00 
			
		
		
		
	 4daf07e69f
			
		
	
	
		4daf07e69f
		
	
	
	
	
		
			
			This is a simple implementation of SubtleCrypto.digest() using LibCrypto under the hood, so it supports all the required hash functions: SHA-1, SHA-256, SHA-384, SHA-512. Two FIXMEs remain: doing the hashing "in parallel", and supporting an object argument instead of a plain string.
		
			
				
	
	
		
			5 lines
		
	
	
	
		
			217 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			5 lines
		
	
	
	
		
			217 B
		
	
	
	
		
			Text
		
	
	
	
	
	
| [SecureContext,Exposed=(Window,Worker)]
 | |
| interface SubtleCrypto {
 | |
|     // FIXME: Add support for AlgorithmIdentifier ("typedef (object or DOMString)")
 | |
|     Promise<any> digest(DOMString algorithm, BufferSource data);
 | |
| };
 |