Home
last modified time | relevance | path

Searched refs:klen (Results 1 – 25 of 33) sorted by relevance

12

/external/rust/crates/quiche/deps/boringssl/src/crypto/pem/
Dpem_pk8.c69 char *kstr, int klen, pem_password_cb *cb, void *u);
72 char *kstr, int klen, pem_password_cb *cb, void *u);
82 char *kstr, int klen, in PEM_write_bio_PKCS8PrivateKey_nid() argument
85 return do_pk8pkey(bp, x, 0, nid, NULL, kstr, klen, cb, u); in PEM_write_bio_PKCS8PrivateKey_nid()
89 char *kstr, int klen, in PEM_write_bio_PKCS8PrivateKey() argument
92 return do_pk8pkey(bp, x, 0, -1, enc, kstr, klen, cb, u); in PEM_write_bio_PKCS8PrivateKey()
96 char *kstr, int klen, in i2d_PKCS8PrivateKey_bio() argument
99 return do_pk8pkey(bp, x, 1, -1, enc, kstr, klen, cb, u); in i2d_PKCS8PrivateKey_bio()
103 char *kstr, int klen, in i2d_PKCS8PrivateKey_nid_bio() argument
106 return do_pk8pkey(bp, x, 1, nid, NULL, kstr, klen, cb, u); in i2d_PKCS8PrivateKey_nid_bio()
[all …]
Dpem_pkey.c99 int klen; in PEM_read_bio_PrivateKey() local
105 klen = 0; in PEM_read_bio_PrivateKey()
108 klen = cb(psbuf, PEM_BUFSIZE, 0, u); in PEM_read_bio_PrivateKey()
109 if (klen <= 0) { in PEM_read_bio_PrivateKey()
114 p8inf = PKCS8_decrypt(p8, psbuf, klen); in PEM_read_bio_PrivateKey()
116 OPENSSL_cleanse(psbuf, klen); in PEM_read_bio_PrivateKey()
147 unsigned char *kstr, int klen, in PEM_write_bio_PrivateKey() argument
150 return PEM_write_bio_PKCS8PrivateKey(bp, x, enc, (char *)kstr, klen, cb, u); in PEM_write_bio_PrivateKey()
168 unsigned char *kstr, int klen, in PEM_write_PrivateKey() argument
176 int ret = PEM_write_bio_PrivateKey(b, x, enc, kstr, klen, cb, u); in PEM_write_PrivateKey()
Dpem_lib.c258 int klen, pem_password_cb *callback, void *u) in PEM_ASN1_write() argument
265 int ret = PEM_ASN1_write_bio(i2d, name, b, x, enc, kstr, klen, callback, u); in PEM_ASN1_write()
273 int klen, pem_password_cb *callback, void *u) in PEM_ASN1_write_bio() argument
312 klen = 0; in PEM_ASN1_write_bio()
315 klen = (*callback) (buf, PEM_BUFSIZE, 1, u); in PEM_ASN1_write_bio()
316 if (klen <= 0) { in PEM_ASN1_write_bio()
329 if (!EVP_BytesToKey(enc, EVP_md5(), iv, kstr, klen, 1, key, NULL)) in PEM_ASN1_write_bio()
372 int i = 0, j, o, klen; in PEM_do_header() local
383 klen = 0; in PEM_do_header()
386 klen = callback(buf, PEM_BUFSIZE, 0, u); in PEM_do_header()
[all …]
Dpem_info.c278 unsigned char *kstr, int klen, in PEM_X509_INFO_write_bio() argument
340 enc, kstr, klen, cb, u) <= 0) in PEM_X509_INFO_write_bio()
/external/boringssl/src/crypto/pem/
Dpem_pk8.c69 char *kstr, int klen, pem_password_cb *cb, void *u);
72 char *kstr, int klen, pem_password_cb *cb, void *u);
82 char *kstr, int klen, in PEM_write_bio_PKCS8PrivateKey_nid() argument
85 return do_pk8pkey(bp, x, 0, nid, NULL, kstr, klen, cb, u); in PEM_write_bio_PKCS8PrivateKey_nid()
89 char *kstr, int klen, in PEM_write_bio_PKCS8PrivateKey() argument
92 return do_pk8pkey(bp, x, 0, -1, enc, kstr, klen, cb, u); in PEM_write_bio_PKCS8PrivateKey()
96 char *kstr, int klen, in i2d_PKCS8PrivateKey_bio() argument
99 return do_pk8pkey(bp, x, 1, -1, enc, kstr, klen, cb, u); in i2d_PKCS8PrivateKey_bio()
103 char *kstr, int klen, in i2d_PKCS8PrivateKey_nid_bio() argument
106 return do_pk8pkey(bp, x, 1, nid, NULL, kstr, klen, cb, u); in i2d_PKCS8PrivateKey_nid_bio()
[all …]
Dpem_pkey.c99 int klen; in PEM_read_bio_PrivateKey() local
105 klen = 0; in PEM_read_bio_PrivateKey()
108 klen = cb(psbuf, PEM_BUFSIZE, 0, u); in PEM_read_bio_PrivateKey()
109 if (klen <= 0) { in PEM_read_bio_PrivateKey()
114 p8inf = PKCS8_decrypt(p8, psbuf, klen); in PEM_read_bio_PrivateKey()
116 OPENSSL_cleanse(psbuf, klen); in PEM_read_bio_PrivateKey()
147 unsigned char *kstr, int klen, in PEM_write_bio_PrivateKey() argument
150 return PEM_write_bio_PKCS8PrivateKey(bp, x, enc, (char *)kstr, klen, cb, u); in PEM_write_bio_PrivateKey()
168 unsigned char *kstr, int klen, in PEM_write_PrivateKey() argument
176 int ret = PEM_write_bio_PrivateKey(b, x, enc, kstr, klen, cb, u); in PEM_write_PrivateKey()
Dpem_lib.c258 int klen, pem_password_cb *callback, void *u) in PEM_ASN1_write() argument
265 int ret = PEM_ASN1_write_bio(i2d, name, b, x, enc, kstr, klen, callback, u); in PEM_ASN1_write()
273 int klen, pem_password_cb *callback, void *u) in PEM_ASN1_write_bio() argument
312 klen = 0; in PEM_ASN1_write_bio()
315 klen = (*callback) (buf, PEM_BUFSIZE, 1, u); in PEM_ASN1_write_bio()
316 if (klen <= 0) { in PEM_ASN1_write_bio()
329 if (!EVP_BytesToKey(enc, EVP_md5(), iv, kstr, klen, 1, key, NULL)) in PEM_ASN1_write_bio()
372 int i = 0, j, o, klen; in PEM_do_header() local
383 klen = 0; in PEM_do_header()
386 klen = callback(buf, PEM_BUFSIZE, 0, u); in PEM_do_header()
[all …]
Dpem_info.c278 unsigned char *kstr, int klen, in PEM_X509_INFO_write_bio() argument
340 enc, kstr, klen, cb, u) <= 0) in PEM_X509_INFO_write_bio()
/external/llvm/test/Transforms/IndVarSimplify/
Dexit_value_test3.ll16 %klen.0 = phi i32 [ %len, %entry ], [ %sub, %while.cond ]
17 %cmp = icmp ugt i32 %klen.0, 11
18 %sub = add i32 %klen.0, -12
22 %klen.0.lcssa = phi i32 [ %klen.0, %while.cond ]
23 ret i32 %klen.0.lcssa
/external/llvm-project/llvm/test/Transforms/IndVarSimplify/
Dexit_value_test3.ll16 %klen.0 = phi i32 [ %len, %entry ], [ %sub, %while.cond ]
17 %cmp = icmp ugt i32 %klen.0, 11
18 %sub = add i32 %klen.0, -12
22 %klen.0.lcssa = phi i32 [ %klen.0, %while.cond ]
23 ret i32 %klen.0.lcssa
/external/rust/crates/quiche/deps/boringssl/src/include/openssl/
Dpem.h160 FILE *fp, type *x, const EVP_CIPHER *enc, unsigned char *kstr, int klen, \
162 return PEM_ASN1_write(pem_write_##name##_i2d, str, fp, x, enc, kstr, klen, \
171 FILE *fp, type *x, const EVP_CIPHER *enc, unsigned char *kstr, int klen, \
173 return PEM_ASN1_write(pem_write_##name##_i2d, str, fp, x, enc, kstr, klen, \
213 BIO *bp, type *x, const EVP_CIPHER *enc, unsigned char *kstr, int klen, \
216 kstr, klen, cb, u); \
224 BIO *bp, type *x, const EVP_CIPHER *enc, unsigned char *kstr, int klen, \
227 enc, kstr, klen, cb, u); \
283 unsigned char *kstr, int klen, pem_password_cb *cb, void *u);
298 unsigned char *kstr, int klen, pem_password_cb *cb, void *u);
[all …]
/external/boringssl/src/include/openssl/
Dpem.h159 FILE *fp, type *x, const EVP_CIPHER *enc, unsigned char *kstr, int klen, \
161 return PEM_ASN1_write(pem_write_##name##_i2d, str, fp, x, enc, kstr, klen, \
170 FILE *fp, type *x, const EVP_CIPHER *enc, unsigned char *kstr, int klen, \
172 return PEM_ASN1_write(pem_write_##name##_i2d, str, fp, x, enc, kstr, klen, \
212 BIO *bp, type *x, const EVP_CIPHER *enc, unsigned char *kstr, int klen, \
215 kstr, klen, cb, u); \
223 BIO *bp, type *x, const EVP_CIPHER *enc, unsigned char *kstr, int klen, \
226 enc, kstr, klen, cb, u); \
283 FILE *fp, type *x, const EVP_CIPHER *enc, unsigned char *kstr, int klen, \
300 BIO *bp, type *x, const EVP_CIPHER *enc, unsigned char *kstr, int klen, \
[all …]
/external/openssh/
Dkexecdh.c145 size_t klen = 0; in kex_ecdh_dec_key_group() local
173 klen = (EC_GROUP_get_degree(group) + 7) / 8; in kex_ecdh_dec_key_group()
174 if ((kbuf = malloc(klen)) == NULL || in kex_ecdh_dec_key_group()
179 if (ECDH_compute_key(kbuf, klen, dh_pub, key, NULL) != (int)klen || in kex_ecdh_dec_key_group()
180 BN_bin2bn(kbuf, klen, shared_secret) == NULL) { in kex_ecdh_dec_key_group()
185 dump_digest("shared secret", kbuf, klen); in kex_ecdh_dec_key_group()
194 freezero(kbuf, klen); in kex_ecdh_dec_key_group()
Dhmac.c66 ssh_hmac_init(struct ssh_hmac_ctx *ctx, const void *key, size_t klen) in ssh_hmac_init() argument
73 if (klen <= ctx->buf_len) in ssh_hmac_init()
74 memcpy(ctx->buf, key, klen); in ssh_hmac_init()
75 else if (ssh_digest_memory(ctx->alg, key, klen, ctx->buf, in ssh_hmac_init()
142 hmac_test(void *key, size_t klen, void *m, size_t mlen, u_char *e, size_t elen) in hmac_test() argument
150 if (ssh_hmac_init(ctx, key, klen) < 0 || in hmac_test()
Dkexdh.c76 size_t klen = 0; in kex_dh_compute_key() local
92 klen = DH_size(kex->dh); in kex_dh_compute_key()
93 if ((kbuf = malloc(klen)) == NULL || in kex_dh_compute_key()
108 freezero(kbuf, klen); in kex_dh_compute_key()
Dcipher.c258 int klen; in cipher_init() local
310 klen = EVP_CIPHER_CTX_key_length(cc->evp); in cipher_init()
311 if (klen > 0 && keylen != (u_int)klen) { in cipher_init()
Dhmac.h29 int ssh_hmac_init(struct ssh_hmac_ctx *ctx, const void *key, size_t klen)
/external/bcc/examples/lua/
Duprobe-tailkt.lua29 local writeable, watch_key, klen = 'any', arg[2] or '*', 80
36 if watch_key ~= '*' then klen = #watch_key end
41 local key_type = string.format('char [%d]', klen)
52 if ptregs.parm3 ~= klen then return false end
/external/libsrtp2/crypto/test/
Dcipher_driver.c79 int klen,
95 int klen);
442 int klen) in cipher_array_alloc_init() argument
450 int klen_pad = ((klen + 15) >> 4) << 4; in cipher_array_alloc_init()
471 status = srtp_cipher_type_alloc(ctype, cipher_array, klen, 16); in cipher_array_alloc_init()
476 srtp_cipher_rand_for_tests(key, klen); in cipher_array_alloc_init()
477 for (j = klen; j < klen_pad; j++) in cipher_array_alloc_init()
585 int klen, in cipher_driver_test_array_throughput() argument
591 status = cipher_array_alloc_init(&ca, num_cipher, ct, klen); in cipher_driver_test_array_throughput()
/external/curl/tests/unit/
Dunit1602.c54 size_t klen = sizeof(int); variable
63 nodep = Curl_hash_add(&hash_static, &key, klen, value);
73 nodep = Curl_hash_add(&hash_static, &key2, klen, value2);
/external/libwebsockets/lib/tls/openssl/
Dopenssl-x509.c138 size_t klen = i2d_X509_PUBKEY(X509_get_X509_PUBKEY(x509), NULL); in lws_tls_openssl_cert_info() local
141 if (!klen || klen > len) in lws_tls_openssl_cert_info()
144 tmp = (uint8_t *)OPENSSL_malloc(klen); in lws_tls_openssl_cert_info()
150 X509_get_X509_PUBKEY(x509), &ptmp) != (int)klen || in lws_tls_openssl_cert_info()
151 !ptmp || lws_ptr_diff(ptmp, tmp) != (int)klen) { in lws_tls_openssl_cert_info()
160 buf->ns.len = (int)klen; in lws_tls_openssl_cert_info()
161 memcpy(buf->ns.name, tmp, klen); in lws_tls_openssl_cert_info()
/external/jemalloc_new/src/
Djemalloc.c848 malloc_conf_error(const char *msg, const char *k, size_t klen, const char *v, in malloc_conf_error() argument
850 malloc_printf("<jemalloc>: %s: %.*s:%.*s\n", msg, (int)klen, k, in malloc_conf_error()
876 size_t klen, vlen; local
958 while (*opts != '\0' && !malloc_conf_next(&opts, &k, &klen, &v,
961 (sizeof(n)-1 == klen && strncmp(n, k, klen) == 0)
973 k, klen, v, vlen); \
992 k, klen, v, vlen); \
1012 k, klen, v, vlen); \
1037 k, klen, v, vlen); \
1042 k, klen, v, vlen); \
[all …]
/external/libsrtp2/crypto/include/
Dauth.h82 #define srtp_auth_type_alloc(at, a, klen, outlen) \ argument
83 ((at)->alloc((a), (klen), (outlen)))
/external/libiio/src/
Dlocal.c1945 size_t klen, vlen; in populate_context_attrs() local
1947 ret = ini_read_pair(ini, &key, &klen, &value, &vlen); in populate_context_attrs()
1953 new_key = strndup(key, klen); in populate_context_attrs()
/external/arm-trusted-firmware/tools/marvell/doimage/
Ddoimage.c346 size_t klen, in verify_rsa_signature() argument
377 rval = mbedtls_pk_parse_subpubkey(&pkey, pub_key + klen, &pk_ctx); in verify_rsa_signature()

12