/external/chromium_org/crypto/ |
ec_signature_creator_openssl.cc | 38 size_t sig_len = 0; local 42 !EVP_DigestSignFinal(ctx.get(), NULL, &sig_len)) { 46 signature->resize(sig_len); 47 if (!EVP_DigestSignFinal(ctx.get(), &signature->front(), &sig_len)) 53 signature->resize(sig_len);
|
/external/chromium_org/third_party/boringssl/src/crypto/evp/ |
example_sign.c | 105 size_t sig_len = 0; local 115 sig = malloc(sig_len); 123 if (EVP_DigestSignFinal(&md_ctx, NULL, &sig_len) != 1) { 127 if (sig_len != RSA_size(rsa)) { 128 fprintf(stderr, "sig_len mismatch\n"); 132 sig = malloc(sig_len); 136 if (EVP_DigestSignFinal(&md_ctx, sig, &sig_len) != 1) {
|
sign.c | 84 size_t sig_len = EVP_PKEY_size(pkey); local 103 EVP_PKEY_sign(pkctx, sig, &sig_len, m, m_len) <= 0) { 106 *out_sig_len = sig_len; 129 int EVP_VerifyFinal(EVP_MD_CTX *ctx, const uint8_t *sig, size_t sig_len, 156 ret = EVP_PKEY_verify(pkctx, sig, sig_len, m, m_len);
|
/external/chromium_org/net/quic/test_tools/ |
crypto_test_utils_openssl.cc | 48 size_t sig_len; variable 49 if (!EVP_DigestSignFinal(md_ctx.get(), NULL, &sig_len)) { 53 scoped_ptr<uint8[]> der_sig(new uint8[sig_len]); 54 if (!EVP_DigestSignFinal(md_ctx.get(), der_sig.get(), &sig_len)) { 60 d2i_ECDSA_SIG(NULL, const_cast<const uint8**>(&derp), sig_len));
|
/external/chromium_org/third_party/boringssl/src/crypto/ecdsa/ |
ecdsa_test.c | 75 unsigned int sig_len, degree, r_len, s_len, bn_len, buf_len; local 153 sig_len = ECDSA_size(eckey); 154 signature = OPENSSL_malloc(sig_len); 158 if (!ECDSA_sign(0, digest, 20, signature, &sig_len, eckey)) { 165 if (ECDSA_verify(0, digest, 20, signature, sig_len, eckey) != 1) { 172 if (ECDSA_verify(0, digest, 20, signature, sig_len, wrong_eckey) == 1) { 179 if (ECDSA_verify(0, wrong_digest, 20, signature, sig_len, eckey) == 1) { 186 if (ECDSA_verify(0, digest, 20, signature, sig_len - 1, eckey) == 1) { 197 ecdsa_sig = d2i_ECDSA_SIG(NULL, &sig_ptr, sig_len); 232 sig_len = i2d_ECDSA_SIG(ecdsa_sig, &sig_ptr2) [all...] |
/external/chromium_org/third_party/boringssl/src/tool/ |
speed.cc | 138 unsigned sig_len; local 141 [key, &sig, &fake_sha256_hash, &sig_len]() -> bool { 143 sig.get(), &sig_len, key); 152 [key, &fake_sha256_hash, &sig, sig_len]() -> bool { 154 sizeof(fake_sha256_hash), sig.get(), sig_len, key);
|
/external/openssl/crypto/ecdsa/ |
ecdsatest.c | 296 unsigned int sig_len, degree, r_len, s_len, bn_len, buf_len; local 387 sig_len = ECDSA_size(eckey); 388 if ((signature = OPENSSL_malloc(sig_len)) == NULL) 390 if (!ECDSA_sign(0, digest, 20, signature, &sig_len, eckey)) 398 if (ECDSA_verify(0, digest, 20, signature, sig_len, eckey) != 1) 406 if (ECDSA_verify(0, digest, 20, signature, sig_len, 415 if (ECDSA_verify(0, wrong_digest, 20, signature, sig_len, 424 if (ECDSA_verify(0, digest, 20, signature, sig_len - 1, 437 if ((ecdsa_sig = d2i_ECDSA_SIG(NULL, &sig_ptr, sig_len)) == NULL) 470 sig_len = i2d_ECDSA_SIG(ecdsa_sig, &sig_ptr2) [all...] |
/hardware/qcom/keymaster/ |
keymaster_qcom.h | 173 * sig_len : Signed data length 179 size_t sig_len; member in struct:keymaster_sign_data_resp
|
/external/chromium_org/third_party/boringssl/src/ssl/ |
s3_clnt.c | 2569 size_t sig_len; local [all...] |
/external/openssl/ssl/ |
s3_clnt.c | 3638 size_t sig_len; local [all...] |