Merge pull request #2429 from iislucas/iislucas-webcrypto

Added initial webcrypto
This commit is contained in:
Basarat Ali Syed
2014-07-06 10:51:35 +10:00
2 changed files with 30 additions and 0 deletions
+13
View File
@@ -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
}
+17
View File
@@ -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" />
```