/external/openssl/crypto/rsa/ |
rsa_locl.h | 3 const unsigned char *sigbuf, size_t siglen,
|
rsa_saos.c | 68 unsigned char *sigret, unsigned int *siglen, RSA *rsa) 97 *siglen=i; 106 unsigned int m_len, unsigned char *sigbuf, unsigned int siglen, 114 if (siglen != (unsigned int)RSA_size(rsa)) 120 s=(unsigned char *)OPENSSL_malloc((unsigned int)siglen); 126 i=RSA_public_decrypt((int)siglen,sigbuf,s,rsa,RSA_PKCS1_PADDING); 145 OPENSSL_cleanse(s,(unsigned int)siglen);
|
rsa_sign.c | 71 unsigned char *sigret, unsigned int *siglen, RSA *rsa) 91 sigret, siglen, rsa); 145 *siglen=i; 157 const unsigned char *sigbuf, size_t siglen, 173 if (siglen != (unsigned int)RSA_size(rsa)) 181 i = RSA_public_decrypt((int)siglen, 189 s=(unsigned char *)OPENSSL_malloc((unsigned int)siglen); 199 i=RSA_public_decrypt((int)siglen,sigbuf,s,rsa,RSA_PKCS1_PADDING); 300 OPENSSL_cleanse(s,(unsigned int)siglen); 307 const unsigned char *sigbuf, unsigned int siglen, [all...] |
rsa_pmeth.c | 185 static int pkey_rsa_sign(EVP_PKEY_CTX *ctx, unsigned char *sig, size_t *siglen, 219 *siglen = slen; 221 *siglen = 0; 277 *siglen = ret; 284 const unsigned char *sig, size_t siglen) 295 ret = RSA_public_decrypt(siglen, sig, 322 sig, siglen, ctx->pkey->pkey.rsa); 331 ret = RSA_public_decrypt(siglen, sig, rout, ctx->pkey->pkey.rsa, 340 const unsigned char *sig, size_t siglen, 366 sig, siglen); [all...] |
/external/dropbear/libtomcrypt/src/pk/rsa/ |
rsa_verify_hash.c | 23 @param siglen The length of the signature data (octets) 33 int rsa_verify_hash_ex(const unsigned char *sig, unsigned long siglen, 70 if (modulus_bytelen != siglen) { 75 tmpbuf = XMALLOC(siglen); 81 x = siglen; 82 if ((err = ltc_mp.rsa_me(sig, siglen, tmpbuf, &x, PK_PUBLIC, key)) != CRYPT_OK) { 88 if (x != siglen) { 134 LTC_SET_ASN1(siginfo, 1, LTC_ASN1_OCTET_STRING, tmpbuf, siglen); 157 zeromem(tmpbuf, siglen);
|
/external/openssl/crypto/evp/ |
m_sigver.c | 131 int EVP_DigestSignFinal(EVP_MD_CTX *ctx, unsigned char *sigret, size_t *siglen) 148 sigret, siglen, &tmp_ctx); 154 if (EVP_PKEY_sign(ctx->pctx, sigret, siglen, md, mdlen) <= 0) 161 if (ctx->pctx->pmeth->signctx(ctx->pctx, sigret, siglen, ctx) <= 0) 167 if (s < 0 || EVP_PKEY_sign(ctx->pctx, sigret, siglen, NULL, s) <= 0) 174 int EVP_DigestVerifyFinal(EVP_MD_CTX *ctx, unsigned char *sig, size_t siglen) 192 sig, siglen, &tmp_ctx); 199 return EVP_PKEY_verify(ctx->pctx, sig, siglen, md, mdlen);
|
p_sign.c | 78 int EVP_SignFinal(EVP_MD_CTX *ctx, unsigned char *sigret, unsigned int *siglen, 87 *siglen=0; 108 *siglen = sltmp; 136 return(ctx->digest->sign(ctx->digest->type,m,m_len,sigret,siglen,
|
pmeth_fn.c | 101 unsigned char *sig, size_t *siglen, 115 M_check_autoarg(ctx, sig, siglen, EVP_F_EVP_PKEY_SIGN) 116 return ctx->pmeth->sign(ctx, sig, siglen, tbs, tbslen); 138 const unsigned char *sig, size_t siglen, 152 return ctx->pmeth->verify(ctx, sig, siglen, tbs, tbslen); 175 const unsigned char *sig, size_t siglen) 189 return ctx->pmeth->verify_recover(ctx, rout, routlen, sig, siglen);
|
p_verify.c | 66 unsigned int siglen, EVP_PKEY *pkey) 91 i = EVP_PKEY_verify(pkctx, sigbuf, siglen, m, m_len); 119 sigbuf,siglen,pkey->pkey.ptr));
|
/system/core/adb/ |
adb_auth.h | 39 static inline int adb_auth_verify(void *token, void *sig, int siglen) { return 0; } 49 int adb_auth_verify(void *token, void *sig, int siglen);
|
adb_auth_client.c | 138 int adb_auth_verify(void *token, void *sig, int siglen) 145 if (siglen != RSANUMBYTES) 152 ret = RSA_verify(&key->key, sig, siglen, token);
|
/external/openssl/crypto/dsa/ |
dsa_asn1.c | 154 unsigned int *siglen, DSA *dsa) 161 *siglen=0; 164 *siglen=i2d_DSA_SIG(s,&sig); 176 const unsigned char *sigbuf, int siglen, DSA *dsa) 183 if (d2i_DSA_SIG(&s,&sigbuf,siglen) == NULL) goto err;
|
dsa_pmeth.c | 120 static int pkey_dsa_sign(EVP_PKEY_CTX *ctx, unsigned char *sig, size_t *siglen, 137 *siglen = sltmp; 142 const unsigned char *sig, size_t siglen, 154 ret = DSA_verify(type, tbs, tbslen, sig, siglen, dsa);
|
/external/openssl/crypto/ecdsa/ |
ecs_sign.c | 77 *sig, unsigned int *siglen, EC_KEY *eckey) 79 return ECDSA_sign_ex(type, dgst, dlen, sig, siglen, NULL, NULL, eckey); 83 *sig, unsigned int *siglen, const BIGNUM *kinv, const BIGNUM *r, 91 *siglen=0; 94 *siglen = i2d_ECDSA_SIG(s, &sig);
|
ecdsa.h | 186 * \param siglen pointer to the length of the returned signature 191 unsigned char *sig, unsigned int *siglen, EC_KEY *eckey); 200 * \param siglen pointer to the length of the returned signature 208 unsigned char *sig, unsigned int *siglen, const BIGNUM *kinv, 217 * \param siglen length of the DER encoded signature 223 const unsigned char *sig, int siglen, EC_KEY *eckey);
|
/external/dropbear/libtomcrypt/src/pk/dsa/ |
dsa_verify_hash.c | 87 @param siglen The length of the signature (octets) 94 int dsa_verify_hash(const unsigned char *sig, unsigned long siglen, 106 if ((err = der_decode_sequence_multi(sig, siglen,
|
/external/openssl/crypto/ec/ |
ec_pmeth.c | 119 static int pkey_ec_sign(EVP_PKEY_CTX *ctx, unsigned char *sig, size_t *siglen, 129 *siglen = ECDSA_size(ec); 132 else if(*siglen < (size_t)ECDSA_size(ec)) 148 *siglen = (size_t)sltmp; 153 const unsigned char *sig, size_t siglen, 165 ret = ECDSA_verify(type, tbs, tbslen, sig, siglen, ec);
|
/external/openssh/ |
schnorr.h | 48 u_char **sig, u_int *siglen); 57 const u_char *sig, u_int siglen);
|
ssh-rsa.c | 211 u_char *sigbuf, u_int siglen, RSA *rsa) 238 if (siglen == 0 || siglen > rsasize) { 239 error("bad siglen"); 243 if ((len = RSA_public_decrypt(siglen, sigbuf, decrypted, rsa,
|
schnorr.c | 215 * On success, 0 is returned and *siglen bytes of signature are returned in 221 u_char **sig, u_int *siglen) 235 *siglen = buffer_len(&b); 236 *sig = xmalloc(*siglen); 237 memcpy(*sig, buffer_ptr(&b), *siglen); 350 * Verify Schnorr signature 'sig' of length 'siglen' against public exponent 360 const u_char *sig, u_int siglen) 376 buffer_append(&b, sig, siglen); 586 u_int siglen; local 597 &sig, &siglen)) [all...] |
/external/openssl/apps/ |
dgst.c | 78 EVP_PKEY *key, unsigned char *sigin, int siglen, 123 int siglen = 0; local 472 siglen = EVP_PKEY_size(sigkey); 473 sigbuf = OPENSSL_malloc(siglen); 480 siglen = BIO_read(sigbio, sigbuf, siglen); 482 if(siglen <= 0) { 502 siglen,NULL,NULL,"stdin",bmd); 531 siglen,sig_name,md_name, argv[i],bmd); 559 EVP_PKEY *key, unsigned char *sigin, int siglen, [all...] |
/external/dropbear/libtomcrypt/src/pk/pkcs1/ |
pkcs_1_pss_decode.c | 25 @param siglen The length of the signature data (octets) 33 const unsigned char *sig, unsigned long siglen, 58 (modulus_len < hLen + saltlen + 2) || (siglen != modulus_len)) { 84 if (sig[siglen-1] != 0xBC) {
|
/external/openssl/include/openssl/ |
ecdsa.h | 186 * \param siglen pointer to the length of the returned signature 191 unsigned char *sig, unsigned int *siglen, EC_KEY *eckey); 200 * \param siglen pointer to the length of the returned signature 208 unsigned char *sig, unsigned int *siglen, const BIGNUM *kinv, 217 * \param siglen length of the DER encoded signature 223 const unsigned char *sig, int siglen, EC_KEY *eckey);
|
/external/openssl/crypto/pem/ |
pem_sign.c | 78 int PEM_SignFinal(EVP_MD_CTX *ctx, unsigned char *sigret, unsigned int *siglen, 95 *siglen=i;
|
/external/dropbear/libtomcrypt/src/pk/ecc/ |
ecc_verify_hash.c | 39 @param siglen The length of the signature (octets) 46 int ecc_verify_hash(const unsigned char *sig, unsigned long siglen, 83 if ((err = der_decode_sequence_multi(sig, siglen,
|