/freebsd-9.3-release/crypto/openssl/crypto/rsa/ |
H A D | rsa_saos.c | 68 unsigned char *sigret, unsigned int *siglen, 97 *siglen = i; 107 unsigned int siglen, RSA *rsa) 114 if (siglen != (unsigned int)RSA_size(rsa)) { 120 s = (unsigned char *)OPENSSL_malloc((unsigned int)siglen); 125 i = RSA_public_decrypt((int)siglen, sigbuf, s, rsa, RSA_PKCS1_PADDING); 144 OPENSSL_cleanse(s, (unsigned int)siglen); 66 RSA_sign_ASN1_OCTET_STRING(int type, const unsigned char *m, unsigned int m_len, unsigned char *sigret, unsigned int *siglen, RSA *rsa) argument 104 RSA_verify_ASN1_OCTET_STRING(int dtype, const unsigned char *m, unsigned int m_len, unsigned char *sigbuf, unsigned int siglen, RSA *rsa) argument
|
H A D | rsa_sign.c | 70 unsigned char *sigret, unsigned int *siglen, RSA *rsa) 80 return rsa->meth->rsa_sign(type, m, m_len, sigret, siglen, rsa); 143 *siglen = i; 173 unsigned char *sigbuf, unsigned int siglen, RSA *rsa) 179 if (siglen != (unsigned int)RSA_size(rsa)) { 185 return rsa->meth->rsa_verify(dtype, m, m_len, sigbuf, siglen, rsa); 188 s = (unsigned char *)OPENSSL_malloc((unsigned int)siglen); 206 i = rsa->meth->rsa_pub_dec((int)siglen, sigbuf, s, rsa, 209 i = RSA_public_decrypt((int)siglen, sigbuf, s, rsa, RSA_PKCS1_PADDING); 276 OPENSSL_cleanse(s, (unsigned int)siglen); 69 RSA_sign(int type, const unsigned char *m, unsigned int m_len, unsigned char *sigret, unsigned int *siglen, RSA *rsa) argument 172 RSA_verify(int dtype, const unsigned char *m, unsigned int m_len, unsigned char *sigbuf, unsigned int siglen, RSA *rsa) argument [all...] |
H A D | rsa.h | 139 unsigned char *sigret, unsigned int *siglen, 143 unsigned int siglen, const RSA *rsa); 355 unsigned char *sigret, unsigned int *siglen, RSA *rsa); 357 unsigned char *sigbuf, unsigned int siglen, RSA *rsa); 365 unsigned char *sigret, unsigned int *siglen, 369 unsigned int siglen, RSA *rsa);
|
/freebsd-9.3-release/crypto/openssl/crypto/ecdsa/ |
H A D | ecs_sign.c | 78 *sig, unsigned int *siglen, EC_KEY *eckey) 80 return ECDSA_sign_ex(type, dgst, dlen, sig, siglen, NULL, NULL, eckey); 84 *sig, unsigned int *siglen, const BIGNUM *kinv, 91 *siglen = 0; 94 *siglen = i2d_ECDSA_SIG(s, &sig); 77 ECDSA_sign(int type, const unsigned char *dgst, int dlen, unsigned char *sig, unsigned int *siglen, EC_KEY *eckey) argument 83 ECDSA_sign_ex(int type, const unsigned char *dgst, int dlen, unsigned char *sig, unsigned int *siglen, const BIGNUM *kinv, const BIGNUM *r, EC_KEY *eckey) argument
|
H A D | ecdsa.h | 198 * \param siglen pointer to the length of the returned signature 203 unsigned char *sig, unsigned int *siglen, EC_KEY *eckey); 212 * \param siglen pointer to the length of the returned signature 220 unsigned char *sig, unsigned int *siglen, 230 * \param siglen length of the DER encoded signature 235 const unsigned char *sig, int siglen, EC_KEY *eckey);
|
/freebsd-9.3-release/sys/amd64/amd64/ |
H A D | bios.c | 59 * (siglen) number of bytes in the signature. 68 bios_sigsearch(u_int32_t start, u_char *sig, int siglen, int paralen, int sigofs) argument 85 while ((sp + sigofs + siglen) < end) { 88 if (!bcmp(sp + sigofs, sig, siglen)) {
|
/freebsd-9.3-release/contrib/bind9/lib/dns/rdata/any_255/ |
H A D | tsig_250.h | 30 isc_uint16_t siglen; member in struct:dns_rdata_any_tsig
|
/freebsd-9.3-release/contrib/bind9/lib/dns/rdata/generic/ |
H A D | rrsig_46.h | 36 isc_uint16_t siglen; member in struct:dns_rdata_rrsig
|
H A D | sig_24.h | 37 isc_uint16_t siglen; member in struct:dns_rdata_sig_t
|
/freebsd-9.3-release/crypto/openssl/crypto/evp/ |
H A D | p_sign.c | 78 unsigned int *siglen, EVP_PKEY *pkey) 85 *siglen = 0; 110 NULL, -1, sigret, siglen, &sctmp); 113 i = ctx->digest->sign(ctx->digest->type, m, m_len, sigret, siglen, 77 EVP_SignFinal(EVP_MD_CTX *ctx, unsigned char *sigret, unsigned int *siglen, EVP_PKEY *pkey) argument
|
H A D | p_verify.c | 66 unsigned int siglen, EVP_PKEY *pkey) 98 NULL, -1, sigbuf, siglen, &sctmp); 102 sigbuf, siglen, pkey->pkey.ptr); 65 EVP_VerifyFinal(EVP_MD_CTX *ctx, const unsigned char *sigbuf, unsigned int siglen, EVP_PKEY *pkey) argument
|
/freebsd-9.3-release/crypto/openssl/crypto/pem/ |
H A D | pem_sign.c | 78 unsigned int *siglen, EVP_PKEY *pkey) 94 *siglen = i; 77 PEM_SignFinal(EVP_MD_CTX *ctx, unsigned char *sigret, unsigned int *siglen, EVP_PKEY *pkey) argument
|
/freebsd-9.3-release/crypto/openssl/crypto/dsa/ |
H A D | dsa_asn1.c | 151 unsigned char *sig, unsigned int *siglen, DSA *dsa) 163 *siglen = 0; 166 *siglen = i2d_DSA_SIG(s, &sig); 199 const unsigned char *sigbuf, int siglen, DSA *dsa) 217 if (d2i_DSA_SIG(&s, &p, siglen) == NULL) 221 if (derlen != siglen || memcmp(sigbuf, der, derlen))
|
H A D | dsatest.c | 150 unsigned int siglen; local 213 DSA_sign(0, str1, 20, sig, &siglen, dsa); 214 if (DSA_verify(0, str1, 20, sig, siglen, dsa) == 1) 219 DSA_sign(0, str1, 20, sig, &siglen, dsa); 220 if (DSA_verify(0, str1, 20, sig, siglen, dsa) == 1)
|
/freebsd-9.3-release/crypto/openssl/fips/dsa/ |
H A D | fips_dsa_sign.c | 187 unsigned char *sig, unsigned int *siglen, 198 *siglen = 0; 201 *siglen = FIPS_dsa_sig_encode(sig, s); 203 if (*siglen < 0) 209 const unsigned char *sigbuf, unsigned int siglen, 221 if (!FIPS_dsa_sig_decode(s, sigbuf, siglen)) 186 fips_dsa_sign(int type, const unsigned char *x, int y, unsigned char *sig, unsigned int *siglen, EVP_MD_SVCTX * sv) argument 208 fips_dsa_verify(int type, const unsigned char *x, int y, const unsigned char *sigbuf, unsigned int siglen, EVP_MD_SVCTX * sv) argument
|
/freebsd-9.3-release/contrib/bind9/lib/dns/ |
H A D | opensslecdsa_link.c | 131 unsigned int dgstlen, siglen; local 141 siglen = DNS_SIG_ECDSA256SIZE; 143 siglen = DNS_SIG_ECDSA384SIZE; 146 if (r.length < siglen) 159 BN_bn2bin_fixed(ecdsasig->r, r.base, siglen / 2); 160 isc_region_consume(&r, siglen / 2); 161 BN_bn2bin_fixed(ecdsasig->s, r.base, siglen / 2); 162 isc_region_consume(&r, siglen / 2); 164 isc_buffer_add(sig, siglen); 183 unsigned int dgstlen, siglen; local [all...] |
H A D | tsig.c | 968 isc_buffer_putuint16(&databuf, querytsig.siglen); 970 querytsig.siglen) { 975 querytsig.siglen); 1086 if (response && bytes < querytsig.siglen) 1087 bytes = querytsig.siglen; 1090 tsig.siglen = bytes; 1092 tsig.siglen = isc_buffer_usedlength(&sigbuf); 1094 tsig.siglen = 0; 1186 unsigned int siglen; local 1312 ret = dst_key_sigsize(key, &siglen); [all...] |
/freebsd-9.3-release/crypto/openssl/apps/ |
H A D | dgst.c | 78 EVP_PKEY *key, unsigned char *sigin, int siglen, const char *title, 104 int siglen = 0; local 359 siglen = EVP_PKEY_size(sigkey); 360 sigbuf = OPENSSL_malloc(siglen); 366 siglen = BIO_read(sigbio, sigbuf, siglen); 368 if (siglen <= 0) { 399 siglen, "", "(stdin)", bmd, hmac_key, non_fips_allow); 421 siglen, tmp, argv[i], bmd, hmac_key, non_fips_allow); 449 EVP_PKEY *key, unsigned char *sigin, int siglen, cons 448 do_fp(BIO *out, unsigned char *buf, BIO *bp, int sep, int binout, EVP_PKEY *key, unsigned char *sigin, int siglen, const char *title, const char *file, BIO *bmd, const char *hmac_key, int non_fips_allow) argument [all...] |
/freebsd-9.3-release/crypto/openssl/fips/rsa/ |
H A D | fips_rsa_sign.c | 194 unsigned char *sigret, unsigned int *siglen, 211 ret = rsa->meth->rsa_sign(type, md, m_len, sigret, siglen, rsa); 260 *siglen = j; 278 *siglen = j; 289 unsigned char *sigbuf, unsigned int siglen, 301 if (siglen != (unsigned int)RSA_size(sv->key)) { 309 return rsa->meth->rsa_verify(dtype, dig, diglen, sigbuf, siglen, rsa); 312 s = OPENSSL_malloc((unsigned int)siglen); 325 i = rsa->meth->rsa_pub_dec((int)siglen, sigbuf, s, rsa, rsa_pad_mode); 389 OPENSSL_cleanse(s, siglen); 193 fips_rsa_sign(int type, const unsigned char *x, unsigned int y, unsigned char *sigret, unsigned int *siglen, EVP_MD_SVCTX * sv) argument 287 fips_rsa_verify(int dtype, const unsigned char *x, unsigned int y, unsigned char *sigbuf, unsigned int siglen, EVP_MD_SVCTX * sv) argument [all...] |
H A D | fips_rsastest.c | 308 int i, siglen; local 315 siglen = RSA_size(rsa); 316 sigbuf = OPENSSL_malloc(siglen); 331 if (!EVP_SignFinal(&ctx, sigbuf, (unsigned int *)&siglen, &pk)) 338 for (i = 0; i < siglen; i++)
|
/freebsd-9.3-release/contrib/bind9/lib/lwres/ |
H A D | lwres_grbn.c | 136 payload_length += 2 + req->siglen[x]; 188 datalen = req->siglen[x]; 298 grbn->siglen = NULL; 329 grbn->siglen = CTXMALLOC(sizeof(lwres_uint16_t) * nsigs); 330 if (grbn->siglen == NULL) { 357 ret = lwres_data_parse(b, &grbn->sigs[x], &grbn->siglen[x]); 379 if (grbn->siglen != NULL) 380 CTXFREE(grbn->siglen, sizeof(lwres_uint16_t) * nsigs); 421 CTXFREE(grbn->siglen, sizeof(lwres_uint16_t) * grbn->nsigs);
|
/freebsd-9.3-release/crypto/openssh/ |
H A D | schnorr.c | 220 * On success, 0 is returned and *siglen bytes of signature are returned in 226 u_char **sig, u_int *siglen) 240 *siglen = buffer_len(&b); 241 *sig = xmalloc(*siglen); 242 memcpy(*sig, buffer_ptr(&b), *siglen); 355 * Verify Schnorr signature 'sig' of length 'siglen' against public exponent 365 const u_char *sig, u_int siglen) 381 buffer_append(&b, sig, siglen); 583 u_int siglen; local 594 &sig, &siglen)) 224 schnorr_sign_buf(const BIGNUM *grp_p, const BIGNUM *grp_q, const BIGNUM *grp_g, const BIGNUM *x, const BIGNUM *g_x, const u_char *id, u_int idlen, u_char **sig, u_int *siglen) argument 362 schnorr_verify_buf(const BIGNUM *grp_p, const BIGNUM *grp_q, const BIGNUM *grp_g, const BIGNUM *g_x, const u_char *id, u_int idlen, const u_char *sig, u_int siglen) argument [all...] |
H A D | ssh-rsa.c | 208 u_char *sigbuf, u_int siglen, RSA *rsa) 230 if (siglen == 0 || siglen > rsasize) { 231 error("bad siglen"); 235 if ((len = RSA_public_decrypt(siglen, sigbuf, decrypted, rsa, 207 openssh_RSA_verify(int hash_alg, u_char *hash, u_int hashlen, u_char *sigbuf, u_int siglen, RSA *rsa) argument
|
/freebsd-9.3-release/contrib/libucl/src/ |
H A D | ucl_util.c | 547 const unsigned char *sig, size_t siglen, struct ucl_parser *parser) 576 if (EVP_PKEY_verify (key_ctx, sig, siglen, dig, diglen) == 1) { 621 size_t siglen = 0; local 624 if (!ucl_fetch_url (urlbuf, &sigbuf, &siglen, &parser->err, true)) { 627 if (!ucl_sig_check (buf, buflen, sigbuf, siglen, parser)) { 631 if (siglen > 0) { 632 munmap (sigbuf, siglen); 636 if (siglen > 0) { 637 munmap (sigbuf, siglen); 698 size_t siglen local 546 ucl_sig_check(const unsigned char *data, size_t datalen, const unsigned char *sig, size_t siglen, struct ucl_parser *parser) argument [all...] |
/freebsd-9.3-release/sys/amd64/include/pc/ |
H A D | bios.h | 107 uint32_t bios_sigsearch(uint32_t start, u_char *sig, int siglen, int paralen,
|