title: Unable to decrypt using google kms typescript/node, getting emtpy results
body: <p>Any help on this would be appreciate it :). I am trying to create a firebase function to decrypt data using google kms. For some reason I am unable to decrypt data successfully, I am just getting an empty buffer as response. Here is my code </p>
  
  <pre><code>app.post('/', (req, res) =&gt; {
      var testToken =   Buffer.from("test-token").toString('base64')
      console.log("access token:" + testToken )
      client.encrypt({name, testToken })
          .then(responses =&gt; {
              const response = responses[0];
              //TRIED THIS
              //const  ciphertext = response.ciphertext
              //AND THIS
              const  ciphertext = response.ciphertext.toString('base64')
              console.log(ciphertext)
              client.decrypt({name, ciphertext})
                  .then(responses2 =&gt; {
                      console.log(responses2);
                      console.log(Buffer.from(responses2[0].plaintext, 'base64').toString("utf8"))
                      return res.status(200).send({"status": "succes"})
                  })
                  .catch(err =&gt; {
                      console.log(err);
                      return res.status(400).send({"status": "error"})
                  });
          })
          .catch(err =&gt; {
              console.log(err);
              return res.status(400).send({"status": "error"})
          });
  
  });
  </code></pre>
  
  <p>Here are the logs that I am printing</p>
  
  <pre><code>info: access token:dGVzdC10b2tlbg==
  info: CiQAoYg0TZ0KIurHuDKRxNt5tBm+bWv94gjCRqJbzi/d8ZGk7k8SIQBZ//kUwUOpsnFquNYyxrd5w6YmUMlGupghjUsjf94G9g==
  info: [ { plaintext: &lt;Buffer &gt; }, undefined, undefined ]
  </code></pre>
  
  <p>I would like to make this work without the need of any temp files. 
  Thanks in advance!</p>