diff --git a/webcrypto/WebCrypto.d.ts b/webcrypto/WebCrypto.d.ts new file mode 100644 index 000000000..069f0ca25 --- /dev/null +++ b/webcrypto/WebCrypto.d.ts @@ -0,0 +1,13 @@ +// Type definitions for WebCrypto +// Project: http://www.w3.org/TR/WebCryptoAPI/ +// Definitions by: Lucas Dixon +// 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 + +} diff --git a/webcrypto/readme.md b/webcrypto/readme.md new file mode 100644 index 000000000..420dc479f --- /dev/null +++ b/webcrypto/readme.md @@ -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 + +``` +/// +```