Home
last modified time | relevance | path

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

123

/third_party/openssl/crypto/pem/
Dpem_pk8.c23 const char *kstr, int klen,
30 const char *kstr, int klen,
42 const char *kstr, int klen, in PEM_write_bio_PKCS8PrivateKey_nid() argument
45 return do_pk8pkey(bp, x, 0, nid, NULL, kstr, klen, cb, u, NULL); in PEM_write_bio_PKCS8PrivateKey_nid()
49 const char *kstr, int klen, in PEM_write_bio_PKCS8PrivateKey() argument
52 return do_pk8pkey(bp, x, 0, -1, enc, kstr, klen, cb, u, NULL); in PEM_write_bio_PKCS8PrivateKey()
56 const char *kstr, int klen, in i2d_PKCS8PrivateKey_bio() argument
59 return do_pk8pkey(bp, x, 1, -1, enc, kstr, klen, cb, u, NULL); in i2d_PKCS8PrivateKey_bio()
63 const char *kstr, int klen, in i2d_PKCS8PrivateKey_nid_bio() argument
66 return do_pk8pkey(bp, x, 1, nid, NULL, kstr, klen, cb, u, NULL); in i2d_PKCS8PrivateKey_nid_bio()
[all …]
Dpem_pkey.c149 int klen; in pem_read_bio_key_legacy() local
155 klen = cb(psbuf, PEM_BUFSIZE, 0, u); in pem_read_bio_key_legacy()
157 klen = PEM_def_callback(psbuf, PEM_BUFSIZE, 0, u); in pem_read_bio_key_legacy()
158 if (klen < 0) { in pem_read_bio_key_legacy()
163 p8inf = PKCS8_decrypt(p8, psbuf, klen); in pem_read_bio_key_legacy()
165 OPENSSL_cleanse(psbuf, klen); in pem_read_bio_key_legacy()
325 (const char *)kstr, klen, cb, u); in PEM_write_cb_ex_fnsig()
326 return PEM_write_bio_PrivateKey_traditional(out, x, enc, kstr, klen, cb, u); in PEM_write_cb_ex_fnsig()
331 return PEM_write_bio_PrivateKey_ex(out, x, enc, kstr, klen, cb, u, in PEM_write_cb_fnsig()
341 const unsigned char *kstr, int klen, in PEM_write_bio_PrivateKey_traditional() argument
[all …]
Dpem_local.h58 klen = strlen(u); \
69 && !OSSL_ENCODER_CTX_set_passphrase(ctx, kstr, klen)) \
94 x, enc, kstr, klen, cb, u)
/third_party/node/deps/openssl/openssl/crypto/pem/
Dpem_pk8.c23 const char *kstr, int klen,
30 const char *kstr, int klen,
42 const char *kstr, int klen, in PEM_write_bio_PKCS8PrivateKey_nid() argument
45 return do_pk8pkey(bp, x, 0, nid, NULL, kstr, klen, cb, u, NULL); in PEM_write_bio_PKCS8PrivateKey_nid()
49 const char *kstr, int klen, in PEM_write_bio_PKCS8PrivateKey() argument
52 return do_pk8pkey(bp, x, 0, -1, enc, kstr, klen, cb, u, NULL); in PEM_write_bio_PKCS8PrivateKey()
56 const char *kstr, int klen, in i2d_PKCS8PrivateKey_bio() argument
59 return do_pk8pkey(bp, x, 1, -1, enc, kstr, klen, cb, u, NULL); in i2d_PKCS8PrivateKey_bio()
63 const char *kstr, int klen, in i2d_PKCS8PrivateKey_nid_bio() argument
66 return do_pk8pkey(bp, x, 1, nid, NULL, kstr, klen, cb, u, NULL); in i2d_PKCS8PrivateKey_nid_bio()
[all …]
Dpem_pkey.c149 int klen; in pem_read_bio_key_legacy() local
155 klen = cb(psbuf, PEM_BUFSIZE, 0, u); in pem_read_bio_key_legacy()
157 klen = PEM_def_callback(psbuf, PEM_BUFSIZE, 0, u); in pem_read_bio_key_legacy()
158 if (klen < 0) { in pem_read_bio_key_legacy()
163 p8inf = PKCS8_decrypt(p8, psbuf, klen); in pem_read_bio_key_legacy()
165 OPENSSL_cleanse(psbuf, klen); in pem_read_bio_key_legacy()
325 (const char *)kstr, klen, cb, u); in PEM_write_cb_ex_fnsig()
326 return PEM_write_bio_PrivateKey_traditional(out, x, enc, kstr, klen, cb, u); in PEM_write_cb_ex_fnsig()
331 return PEM_write_bio_PrivateKey_ex(out, x, enc, kstr, klen, cb, u, in PEM_write_cb_fnsig()
341 const unsigned char *kstr, int klen, in PEM_write_bio_PrivateKey_traditional() argument
[all …]
Dpem_local.h58 klen = strlen(u); \
69 && !OSSL_ENCODER_CTX_set_passphrase(ctx, kstr, klen)) \
94 x, enc, kstr, klen, cb, u)
/third_party/openssl/ohos_lite/include/openssl/
Dpem.h92 unsigned char *kstr, int klen, pem_password_cb *cb, \
95 return PEM_ASN1_write((i2d_of_void *)i2d_##asn1,str,fp,x,enc,kstr,klen,cb,u); \
100 unsigned char *kstr, int klen, pem_password_cb *cb, \
103 return PEM_ASN1_write((i2d_of_void *)i2d_##asn1,str,fp,x,enc,kstr,klen,cb,u); \
128 unsigned char *kstr, int klen, pem_password_cb *cb, void *u) \
130 return PEM_ASN1_write_bio((i2d_of_void *)i2d_##asn1,str,bp,x,enc,kstr,klen,cb,u); \
135 unsigned char *kstr, int klen, pem_password_cb *cb, void *u) \
137 return PEM_ASN1_write_bio((i2d_of_void *)i2d_##asn1,str,bp,(void *)x,enc,kstr,klen,cb,u); \
193 unsigned char *kstr, int klen, pem_password_cb *cb, void *u);
208 unsigned char *kstr, int klen, pem_password_cb *cb, void *u);
[all …]
/third_party/musl/src/crypt/
Dcrypt_sha256.c191 unsigned int i, r, klen, slen; in sha256crypt() local
197 klen = strnlen(key, KEY_MAX+1); in sha256crypt()
198 if (klen > KEY_MAX) in sha256crypt()
248 sha256_update(&ctx, key, klen); in sha256crypt()
250 sha256_update(&ctx, key, klen); in sha256crypt()
255 sha256_update(&ctx, key, klen); in sha256crypt()
257 hashmd(&ctx, klen, md); in sha256crypt()
258 for (i = klen; i > 0; i >>= 1) in sha256crypt()
262 sha256_update(&ctx, key, klen); in sha256crypt()
267 for (i = 0; i < klen; i++) in sha256crypt()
[all …]
Dcrypt_sha512.c212 unsigned int i, r, klen, slen; in sha512crypt() local
221 klen = i; in sha512crypt()
270 sha512_update(&ctx, key, klen); in sha512crypt()
272 sha512_update(&ctx, key, klen); in sha512crypt()
277 sha512_update(&ctx, key, klen); in sha512crypt()
279 hashmd(&ctx, klen, md); in sha512crypt()
280 for (i = klen; i > 0; i >>= 1) in sha512crypt()
284 sha512_update(&ctx, key, klen); in sha512crypt()
289 for (i = 0; i < klen; i++) in sha512crypt()
290 sha512_update(&ctx, key, klen); in sha512crypt()
[all …]
Dcrypt_md5.c201 unsigned int i, klen, slen; in md5crypt() local
206 klen = strnlen(key, KEY_MAX+1); in md5crypt()
207 if (klen > KEY_MAX) in md5crypt()
219 md5_update(&ctx, key, klen); in md5crypt()
221 md5_update(&ctx, key, klen); in md5crypt()
226 md5_update(&ctx, key, klen); in md5crypt()
228 for (i = klen; i > sizeof md; i -= sizeof md) in md5crypt()
232 for (i = klen; i; i >>= 1) in md5crypt()
243 md5_update(&ctx, key, klen); in md5crypt()
249 md5_update(&ctx, key, klen); in md5crypt()
[all …]
/third_party/openssl/include/openssl/
Dpem.h83 const unsigned char *kstr, int klen, \
92 const unsigned char *kstr, int klen, \
133 x, enc, kstr, klen, cb, u); \
166 x, enc, kstr, klen, cb, u); \
392 const unsigned char *kstr, int klen,
403 const unsigned char *kstr, int klen,
415 const unsigned char *kstr, int klen,
478 const unsigned char *kstr, int klen,
483 const char *kstr, int klen,
486 const char *kstr, int klen,
[all …]
/third_party/node/deps/openssl/openssl/include/openssl/
Dpem.h83 const unsigned char *kstr, int klen, \
92 const unsigned char *kstr, int klen, \
133 x, enc, kstr, klen, cb, u); \
166 x, enc, kstr, klen, cb, u); \
392 const unsigned char *kstr, int klen,
403 const unsigned char *kstr, int klen,
415 const unsigned char *kstr, int klen,
478 const unsigned char *kstr, int klen,
483 const char *kstr, int klen,
486 const char *kstr, int klen,
[all …]
/third_party/rust/crates/rust-openssl/openssl-sys/src/handwritten/
Dpem.rs23 klen: c_int,
33 klen: c_int,
42 klen: c_int,
52 klen: c_int,
62 klen: c_int,
73 klen: c_int,
/third_party/curl/tests/unit/
Dunit1602.c57 size_t klen = sizeof(int); variable
66 nodep = Curl_hash_add(&hash_static, &key, klen, value);
76 nodep = Curl_hash_add(&hash_static, &key2, klen, value2);
/third_party/openssl/doc/man3/
Dd2i_PKCS8PrivateKey_bio.pod17 char *kstr, int klen,
21 char *kstr, int klen,
25 char *kstr, int klen,
29 char *kstr, int klen,
/third_party/openssl/providers/implementations/ciphers/
Dcipher_aes_siv_hw.c24 size_t klen = keylen / 2; in aes_siv_initkey() local
33 switch (klen) { in aes_siv_initkey()
55 return ossl_siv128_init(sctx, key, klen, ctx->cbc, ctx->ctr, libctx, in aes_siv_initkey()
/third_party/node/deps/openssl/openssl/providers/implementations/ciphers/
Dcipher_aes_siv_hw.c24 size_t klen = keylen / 2; in aes_siv_initkey() local
33 switch (klen) { in aes_siv_initkey()
55 return ossl_siv128_init(sctx, key, klen, ctx->cbc, ctx->ctr, libctx, in aes_siv_initkey()
/third_party/openssl/include/crypto/
Dsiv.h14 SIV128_CONTEXT *ossl_siv128_new(const unsigned char *key, int klen,
17 int ossl_siv128_init(SIV128_CONTEXT *ctx, const unsigned char *key, int klen,
/third_party/node/deps/openssl/openssl/include/crypto/
Dsiv.h14 SIV128_CONTEXT *ossl_siv128_new(const unsigned char *key, int klen,
17 int ossl_siv128_init(SIV128_CONTEXT *ctx, const unsigned char *key, int klen,
/third_party/libwebsockets/lib/tls/openssl/
Dopenssl-x509.c155 size_t klen = (unsigned int)i2d_X509_PUBKEY(X509_get_X509_PUBKEY(x509), NULL); in lws_tls_openssl_cert_info() local
158 if (!klen || klen > len) in lws_tls_openssl_cert_info()
161 tmp = (uint8_t *)OPENSSL_malloc(klen); in lws_tls_openssl_cert_info()
167 X509_get_X509_PUBKEY(x509), &ptmp) != (int)klen || in lws_tls_openssl_cert_info()
168 !ptmp || lws_ptr_diff(ptmp, tmp) != (int)klen) { in lws_tls_openssl_cert_info()
177 buf->ns.len = (int)klen; in lws_tls_openssl_cert_info()
178 memcpy(buf->ns.name, tmp, klen); in lws_tls_openssl_cert_info()
/third_party/openssl/crypto/modes/
Dsiv128.c143 SIV128_CONTEXT *ossl_siv128_new(const unsigned char *key, int klen, in ossl_siv128_new() argument
151 ret = ossl_siv128_init(ctx, key, klen, cbc, ctr, libctx, propq); in ossl_siv128_new()
163 int ossl_siv128_init(SIV128_CONTEXT *ctx, const unsigned char *key, int klen, in ossl_siv128_init() argument
191 (void *)key, klen); in ossl_siv128_init()
199 || !EVP_EncryptInit_ex(ctx->cipher_ctx, ctr, NULL, key + klen, NULL) in ossl_siv128_init()
/third_party/node/deps/openssl/openssl/crypto/modes/
Dsiv128.c143 SIV128_CONTEXT *ossl_siv128_new(const unsigned char *key, int klen, in ossl_siv128_new() argument
151 ret = ossl_siv128_init(ctx, key, klen, cbc, ctr, libctx, propq); in ossl_siv128_new()
163 int ossl_siv128_init(SIV128_CONTEXT *ctx, const unsigned char *key, int klen, in ossl_siv128_init() argument
191 (void *)key, klen); in ossl_siv128_init()
199 || !EVP_EncryptInit_ex(ctx->cipher_ctx, ctr, NULL, key + klen, NULL) in ossl_siv128_init()
/third_party/skia/third_party/externals/microhttpd/src/microhttpd/
Dpostprocessor.c591 size_t klen; in try_get_value() local
597 klen = strlen (key); in try_get_value()
600 if ((spos[klen] != '=') || ((spos != buf) && (spos[-1] != ' '))) in try_get_value()
606 if (spos[klen + 1] != '"') in try_get_value()
608 if (NULL == (endv = strchr (&spos[klen + 2], '\"'))) in try_get_value()
610 vlen = endv - spos - klen - 1; in try_get_value()
615 memcpy (*destination, &spos[klen + 2], vlen - 1); in try_get_value()
/third_party/musl/porting/linux/user/ldso/
Dns_config.c96 size_t klen, vlen; in config_line() local
97 klen = split - line; in config_line()
98 vlen = len - klen -1; in config_line()
99 if (klen > 0) memcpy(key, line, klen); in config_line()
101 key[klen] = 0; in config_line()
/third_party/libwebsockets/lib/tls/
Dtls-jit-trust.c47 int klen = sizeof(kid->kid); in lws_tls_kid_copy_kid() local
49 if (src->kid_len < klen) in lws_tls_kid_copy_kid()
50 klen = src->kid_len; in lws_tls_kid_copy_kid()
52 kid->kid_len = (uint8_t)klen; in lws_tls_kid_copy_kid()
54 memcpy(kid->kid, src->kid, (size_t)klen); in lws_tls_kid_copy_kid()

123