Use vector_as_array() consistently throughout WebCrypto code.
commitaab7aa9fb1703f5f36737dc05c3365a6c346a554
authoreroman <eroman@chromium.org>
Thu, 5 Mar 2015 18:12:24 +0000 (5 10:12 -0800)
committerCommit bot <commit-bot@chromium.org>
Thu, 5 Mar 2015 18:13:24 +0000 (5 18:13 +0000)
tree2d01aefdb3f987d07e74a3a2ebac08f8ea784e09
parent1b292c8b201c2777fc206c5ecf5049f77241f30a
Use vector_as_array() consistently throughout WebCrypto code.

In some cases this simplifies code by not explicitly handling the empty case.

Before the code was inconsistently using either:
  * vector_as_array()
  * ternery operator
  * &v[0]
  * v->front().

Once we have C++11 library support these will simply become v.data().

BUG=None

Review URL: https://codereview.chromium.org/974183006

Cr-Commit-Position: refs/heads/master@{#319285}
content/child/webcrypto/crypto_data.cc
content/child/webcrypto/openssl/aes_ctr_openssl.cc
content/child/webcrypto/openssl/ec_algorithm_openssl.cc
content/child/webcrypto/openssl/ecdh_openssl.cc
content/child/webcrypto/openssl/ecdsa_openssl.cc
content/child/webcrypto/openssl/hkdf_openssl.cc
content/child/webcrypto/openssl/pbkdf2_openssl.cc
content/child/webcrypto/openssl/rsa_sign_openssl.cc
content/child/webcrypto/test/sha_unittest.cc