mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 10:52:44 +00:00 
			
		
		
		
	 615be9eb7c
			
		
	
	
		615be9eb7c
		
	
	
	
	
		
			
			Just some boilerplate code to get started :^) This adds both the SubtleCrypto constructor to the window object, as well as the crypto.subtle instance attribute.
		
			
				
	
	
		
			7 lines
		
	
	
	
		
			221 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			7 lines
		
	
	
	
		
			221 B
		
	
	
	
		
			Text
		
	
	
	
	
	
| [Exposed=(Window,Worker)]
 | |
| interface Crypto {
 | |
|   [SecureContext] readonly attribute SubtleCrypto subtle;
 | |
| 
 | |
|   // FIXME: the argument and the return value should be of type ArrayBufferView
 | |
|   any getRandomValues(any array);
 | |
| };
 |