Privacy/Features/DOMCryptAPISpec/Latest: Difference between revisions

Jump to navigation Jump to search
Line 92: Line 92:


     // encrypt a plainText
     // encrypt a plainText
     encrypt: function ( plainText, function callback (cipherMessageObject) ) {  } ) {  },
     encrypt: function ( plainText, publicKey, function callback (cipherMessageObject) ) {  } ) {  },


     // decrypt a cipherMessage
     // decrypt a cipherMessage
Line 121: Line 121:
      
      
     // encrypt some data
     // encrypt some data
     encrypt: function (plainText, key, function callback( cipherText ){ }) {  },
     encrypt: function (plainText, key, function callback( cipherText ) { }) {  },
      
      
     // decrypt some data
     // decrypt some data
Line 128: Line 128:


   hash: {
   hash: {
     SHA256: function (function callback (hash){}) {  }
     SHA256: function (function callback (hash) {}) {  }
  },
 
  hmac: {
    get algorithm() { },
 
    set algorithm(algorithm){ },
 
    createHMAC: function (plaintext, key, function callback( mac ){ }) {  },
 
    verifyHMAC: function(plaintext, key, receivedMac, function callback( booleanVerified ){ }) { }
   }
   }
  }
  }
564

edits

Navigation menu