mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-08-26 11:12:19 +08:00
Merge pull request #2429 from iislucas/iislucas-webcrypto
Added initial webcrypto
This commit is contained in:
Vendored
+13
@@ -0,0 +1,13 @@
|
||||
// Type definitions for WebCrypto
|
||||
// Project: http://www.w3.org/TR/WebCryptoAPI/
|
||||
// Definitions by: Lucas Dixon <https://github.com/iislucas/>
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
|
||||
declare module crypto {
|
||||
|
||||
// A cryptographically strong pseudo-random number generator seeded with
|
||||
// truly random values. The buffer passed in is modified, and a reference to
|
||||
// argument is returned for convenience.
|
||||
function getRandomValues(array: ArrayBufferView) : ArrayBufferView
|
||||
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
# WebCrypto Definition Notes
|
||||
|
||||
## The WebCrypto specification
|
||||
|
||||
The WebCrypto specification is for performing basic cryptographic operations in
|
||||
web applications, such as hashing, signature generation and verification, and
|
||||
encryption and decryption. The API is also for applications to generate and/or
|
||||
manage the keying material necessary to perform these operations. Uses for this
|
||||
API range from user or service authentication, document or code signing, and the confidentiality and integrity of communications.
|
||||
|
||||
The latest version of the specification can be found at: http://www.w3.org/TR/WebCryptoAPI/
|
||||
|
||||
## Adding the reference to your project
|
||||
|
||||
```
|
||||
/// <reference path="WebCrypto.d.ts" />
|
||||
```
|
||||
Reference in New Issue
Block a user