/openssl/crypto/pem/ |
H A D | pem_pk8.c | 23 const char *kstr, int klen, 30 const char *kstr, int klen, 90 klen = strlen(u); in do_pk8pkey() 138 klen = cb(buf, PEM_BUFSIZE, 1, u); in do_pk8pkey() 139 if (klen < 0) { in do_pk8pkey() 148 OPENSSL_cleanse(buf, klen); in do_pk8pkey() 174 int klen; in d2i_PKCS8PrivateKey_bio() local 182 klen = cb(psbuf, PEM_BUFSIZE, 0, u); in d2i_PKCS8PrivateKey_bio() 185 if (klen < 0 || klen > PEM_BUFSIZE) { in d2i_PKCS8PrivateKey_bio() 190 p8inf = PKCS8_decrypt(p8, psbuf, klen); in d2i_PKCS8PrivateKey_bio() [all …]
|
H A D | pem_pkey.c | 149 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() 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 363 pem_str, bp, x, enc, kstr, klen, cb, u); in PEM_write_bio_PrivateKey_traditional() [all …]
|
H A D | pem_local.h | 58 klen = strlen(u); \ 69 && !OSSL_ENCODER_CTX_set_passphrase(ctx, kstr, klen)) \ 94 x, enc, kstr, klen, cb, u)
|
H A D | pem_lib.c | 302 const unsigned char *kstr, int klen, in PEM_ASN1_write() argument 313 ret = PEM_ASN1_write_bio(i2d, name, b, x, enc, kstr, klen, callback, u); in PEM_ASN1_write() 321 const unsigned char *kstr, int klen, in PEM_ASN1_write_bio() argument 363 klen = PEM_def_callback(buf, PEM_BUFSIZE, 1, u); in PEM_ASN1_write_bio() 365 klen = (*callback) (buf, PEM_BUFSIZE, 1, u); in PEM_ASN1_write_bio() 366 if (klen <= 0) { in PEM_ASN1_write_bio() 372 ebcdic2ascii(buf, buf, klen); in PEM_ASN1_write_bio() 383 if (!EVP_BytesToKey(enc, EVP_md5(), iv, kstr, klen, 1, key, NULL)) in PEM_ASN1_write_bio()
|
H A D | pem_info.c | 225 const unsigned char *kstr, int klen, in PEM_X509_INFO_write_bio() argument 291 enc, kstr, klen, cb, u) <= 0) in PEM_X509_INFO_write_bio()
|
/openssl/include/openssl/ |
H A D | pem.h | 397 const unsigned char *kstr, int klen, 408 const unsigned char *kstr, int klen, 420 const unsigned char *kstr, int klen, 488 const char *kstr, int klen, 491 const char *kstr, int klen, 494 const char *kstr, int klen, 497 const char *kstr, int klen, 504 const char *kstr, int klen, 507 const char *kstr, int klen, 510 const char *kstr, int klen, [all …]
|
H A D | encoder.h | 57 const unsigned char *kstr, size_t klen);
|
H A D | decoder.h | 57 const unsigned char *kstr, size_t klen);
|
/openssl/doc/man3/ |
H A D | d2i_PKCS8PrivateKey_bio.pod | 17 char *kstr, int klen, 21 char *kstr, int klen, 25 char *kstr, int klen, 29 char *kstr, int klen,
|
H A D | PEM_read_bio_PrivateKey.pod | 56 unsigned char *kstr, int klen, 60 unsigned char *kstr, int klen, 67 unsigned char *kstr, int klen, 71 unsigned char *kstr, int klen, 74 char *kstr, int klen, 77 char *kstr, int klen, 80 char *kstr, int klen, 83 char *kstr, int klen, 155 unsigned char *kstr, int klen, 158 unsigned char *kstr, int klen, [all …]
|
H A D | PEM_read_CMS.pod | 79 const unsigned char *kstr, int klen, 82 const unsigned char *kstr, int klen,
|
H A D | OSSL_ENCODER_CTX_new_for_pkey.pod | 28 size_t klen);
|
H A D | OSSL_DECODER_CTX_new_for_pkey.pod | 25 size_t klen);
|
/openssl/include/crypto/ |
H A D | siv.h | 14 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,
|
/openssl/providers/implementations/ciphers/ |
H A D | cipher_aes_siv_hw.c | 24 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()
|
/openssl/crypto/modes/ |
H A D | siv128.c | 143 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()
|
/openssl/providers/implementations/kdfs/ |
H A D | krb5kdf.c | 351 int klen, ret; in cipher_init() local 357 klen = EVP_CIPHER_CTX_get_key_length(ctx); in cipher_init() 358 if (key_len != (size_t)klen) { in cipher_init()
|
/openssl/crypto/encode_decode/ |
H A D | encoder_pkey.c | 44 size_t klen) in OSSL_ENCODER_CTX_set_passphrase() argument 46 return ossl_pw_set_passphrase(&ctx->pwdata, kstr, klen); in OSSL_ENCODER_CTX_set_passphrase()
|
H A D | decoder_pkey.c | 28 size_t klen) in OSSL_DECODER_CTX_set_passphrase() argument 30 return ossl_pw_set_passphrase(&ctx->pwdata, kstr, klen); in OSSL_DECODER_CTX_set_passphrase()
|
/openssl/crypto/rsa/ |
H A D | rsa_pmeth.c | 341 int klen = RSA_size(rsa); in pkey_rsa_encrypt() local 344 if (!RSA_padding_add_PKCS1_OAEP_mgf1(rctx->tbuf, klen, in pkey_rsa_encrypt() 350 ret = RSA_public_encrypt(klen, rctx->tbuf, out, rsa, RSA_NO_PADDING); in pkey_rsa_encrypt()
|
/openssl/providers/implementations/encode_decode/ |
H A D | encode_key2any.c | 108 size_t klen = 0; in p8info_to_encp8() local 114 if (!ossl_pw_get_passphrase(kstr, sizeof(kstr), &klen, NULL, 1, in p8info_to_encp8() 120 p8 = PKCS8_encrypt_ex(-1, ctx->cipher, kstr, klen, NULL, 0, 0, p8info, libctx, NULL); in p8info_to_encp8() 121 OPENSSL_cleanse(kstr, klen); in p8info_to_encp8()
|
/openssl/engines/ |
H A D | e_afalg.c | 428 const int klen) in afalg_set_key() argument 431 ret = setsockopt(actx->bfd, SOL_ALG, ALG_SET_KEY, key, klen); in afalg_set_key()
|
/openssl/test/ |
H A D | tls-provider.c | 1379 size_t klen = 0; in p8info_to_encp8() local 1385 if (!ctx->pwcb(kstr, PEM_BUFSIZE, &klen, NULL, ctx->pwcbarg)) { in p8info_to_encp8() 1390 p8 = PKCS8_encrypt_ex(-1, ctx->cipher, kstr, klen, NULL, 0, 0, p8info, libctx, NULL); in p8info_to_encp8() 1391 OPENSSL_cleanse(kstr, klen); in p8info_to_encp8()
|
H A D | endecoder_legacy_test.c | 63 unsigned char *kstr, int klen,
|