/third_party/node/deps/openssl/openssl/crypto/evp/ |
H A D | evp_enc.c | 456 int EVP_CipherUpdate(EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl, in EVP_CipherUpdate() argument 460 return EVP_EncryptUpdate(ctx, out, outl, in, inl); in EVP_CipherUpdate() 462 return EVP_DecryptUpdate(ctx, out, outl, in, inl); in EVP_CipherUpdate() 465 int EVP_CipherFinal_ex(EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl) in EVP_CipherFinal_ex() argument 468 return EVP_EncryptFinal_ex(ctx, out, outl); in EVP_CipherFinal_ex() 470 return EVP_DecryptFinal_ex(ctx, out, outl); in EVP_CipherFinal_ex() 473 int EVP_CipherFinal(EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl) in EVP_CipherFinal() argument 476 return EVP_EncryptFinal(ctx, out, outl); in EVP_CipherFinal() 478 return EVP_DecryptFinal(ctx, out, outl); in EVP_CipherFinal() 559 unsigned char *out, int *outl, in evp_EncryptDecryptUpdate() 558 evp_EncryptDecryptUpdate(EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl, const unsigned char *in, int inl) evp_EncryptDecryptUpdate() argument 649 EVP_EncryptUpdate(EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl, const unsigned char *in, int inl) EVP_EncryptUpdate() argument 704 EVP_EncryptFinal(EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl) EVP_EncryptFinal() argument 711 EVP_EncryptFinal_ex(EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl) EVP_EncryptFinal_ex() argument 797 EVP_DecryptUpdate(EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl, const unsigned char *in, int inl) EVP_DecryptUpdate() argument 924 EVP_DecryptFinal(EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl) EVP_DecryptFinal() argument 931 EVP_DecryptFinal_ex(EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl) EVP_DecryptFinal_ex() argument [all...] |
H A D | encode.c | 162 int EVP_EncodeUpdate(EVP_ENCODE_CTX *ctx, unsigned char *out, int *outl, in EVP_EncodeUpdate() argument 168 *outl = 0; in EVP_EncodeUpdate() 206 *outl = 0; in EVP_EncodeUpdate() 212 *outl = total; in EVP_EncodeUpdate() 217 void EVP_EncodeFinal(EVP_ENCODE_CTX *ctx, unsigned char *out, int *outl) in EVP_EncodeFinal() argument 228 *outl = ret; in EVP_EncodeFinal() 303 int EVP_DecodeUpdate(EVP_ENCODE_CTX *ctx, unsigned char *out, int *outl, in EVP_DecodeUpdate() argument 408 *outl = ret; in EVP_DecodeUpdate() 464 int EVP_DecodeFinal(EVP_ENCODE_CTX *ctx, unsigned char *out, int *outl) in EVP_DecodeFinal() argument 468 *outl in EVP_DecodeFinal() [all...] |
H A D | bio_enc.c | 106 static int enc_read(BIO *b, char *out, int outl) in enc_read() argument 123 if (i > outl) in enc_read() 124 i = outl; in enc_read() 128 outl -= i; in enc_read() 141 * At this point, we have room of outl bytes and an empty buffer, so we in enc_read() 145 while (outl > 0) { in enc_read() 171 if (outl > ENC_MIN_CHUNK) { in enc_read() 177 int j = outl - blocksize, buf_len; in enc_read() 187 outl -= buf_len; in enc_read() 216 if (ctx->buf_len <= outl) in enc_read() [all...] |
/third_party/openssl/crypto/evp/ |
H A D | evp_enc.c | 451 int EVP_CipherUpdate(EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl, in EVP_CipherUpdate() argument 455 return EVP_EncryptUpdate(ctx, out, outl, in, inl); in EVP_CipherUpdate() 457 return EVP_DecryptUpdate(ctx, out, outl, in, inl); in EVP_CipherUpdate() 460 int EVP_CipherFinal_ex(EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl) in EVP_CipherFinal_ex() argument 463 return EVP_EncryptFinal_ex(ctx, out, outl); in EVP_CipherFinal_ex() 465 return EVP_DecryptFinal_ex(ctx, out, outl); in EVP_CipherFinal_ex() 468 int EVP_CipherFinal(EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl) in EVP_CipherFinal() argument 471 return EVP_EncryptFinal(ctx, out, outl); in EVP_CipherFinal() 473 return EVP_DecryptFinal(ctx, out, outl); in EVP_CipherFinal() 554 unsigned char *out, int *outl, in evp_EncryptDecryptUpdate() 553 evp_EncryptDecryptUpdate(EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl, const unsigned char *in, int inl) evp_EncryptDecryptUpdate() argument 644 EVP_EncryptUpdate(EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl, const unsigned char *in, int inl) EVP_EncryptUpdate() argument 699 EVP_EncryptFinal(EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl) EVP_EncryptFinal() argument 706 EVP_EncryptFinal_ex(EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl) EVP_EncryptFinal_ex() argument 792 EVP_DecryptUpdate(EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl, const unsigned char *in, int inl) EVP_DecryptUpdate() argument 919 EVP_DecryptFinal(EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl) EVP_DecryptFinal() argument 926 EVP_DecryptFinal_ex(EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl) EVP_DecryptFinal_ex() argument [all...] |
H A D | bio_enc.c | 106 static int enc_read(BIO *b, char *out, int outl) in enc_read() argument 123 if (i > outl) in enc_read() 124 i = outl; in enc_read() 128 outl -= i; in enc_read() 141 * At this point, we have room of outl bytes and an empty buffer, so we in enc_read() 145 while (outl > 0) { in enc_read() 171 if (outl > ENC_MIN_CHUNK) { in enc_read() 177 int j = outl - blocksize, buf_len; in enc_read() 187 outl -= buf_len; in enc_read() 216 if (ctx->buf_len <= outl) in enc_read() [all...] |
H A D | encode.c | 162 int EVP_EncodeUpdate(EVP_ENCODE_CTX *ctx, unsigned char *out, int *outl, in EVP_EncodeUpdate() argument 168 *outl = 0; in EVP_EncodeUpdate() 206 *outl = 0; in EVP_EncodeUpdate() 212 *outl = total; in EVP_EncodeUpdate() 217 void EVP_EncodeFinal(EVP_ENCODE_CTX *ctx, unsigned char *out, int *outl) in EVP_EncodeFinal() argument 228 *outl = ret; in EVP_EncodeFinal() 303 int EVP_DecodeUpdate(EVP_ENCODE_CTX *ctx, unsigned char *out, int *outl, in EVP_DecodeUpdate() argument 408 *outl = ret; in EVP_DecodeUpdate() 464 int EVP_DecodeFinal(EVP_ENCODE_CTX *ctx, unsigned char *out, int *outl) in EVP_DecodeFinal() argument 468 *outl in EVP_DecodeFinal() [all...] |
/third_party/node/deps/openssl/openssl/crypto/asn1/ |
H A D | a_sign.c | 33 int i, inl = 0, outl = 0; in ASN1_sign() local 81 outll = outl = EVP_PKEY_get_size(pkey); in ASN1_sign() 84 outl = 0; in ASN1_sign() 94 (unsigned int *)&outl, pkey)) { in ASN1_sign() 95 outl = 0; in ASN1_sign() 102 signature->length = outl; in ASN1_sign() 113 return outl; in ASN1_sign() 158 size_t inl = 0, outl = 0, outll = 0; in ASN1_item_sign_ctx() local 217 outl = signature->length; in ASN1_item_sign_ctx() 264 outl in ASN1_item_sign_ctx() [all...] |
/third_party/openssl/crypto/asn1/ |
H A D | a_sign.c | 33 int i, inl = 0, outl = 0; in ASN1_sign() local 81 outll = outl = EVP_PKEY_get_size(pkey); in ASN1_sign() 84 outl = 0; in ASN1_sign() 94 (unsigned int *)&outl, pkey)) { in ASN1_sign() 95 outl = 0; in ASN1_sign() 102 signature->length = outl; in ASN1_sign() 113 return outl; in ASN1_sign() 158 size_t inl = 0, outl = 0, outll = 0; in ASN1_item_sign_ctx() local 217 outl = signature->length; in ASN1_item_sign_ctx() 264 outl in ASN1_item_sign_ctx() [all...] |
/third_party/node/deps/openssl/openssl/providers/implementations/ciphers/ |
H A D | ciphercommon.c | 248 size_t *outl, size_t outsize, in ossl_cipher_generic_block_update() 325 *outl = inl; in ossl_cipher_generic_block_update() 328 out, outl, in ossl_cipher_generic_block_update() 389 *outl = outlint; in ossl_cipher_generic_block_update() 394 size_t *outl, size_t outsize) in ossl_cipher_generic_block_final() 417 *outl = 0; in ossl_cipher_generic_block_final() 433 *outl = blksz; in ossl_cipher_generic_block_final() 440 *outl = 0; in ossl_cipher_generic_block_final() 462 *outl = ctx->bufsz; in ossl_cipher_generic_block_final() 468 size_t *outl, size_ in ossl_cipher_generic_stream_update() 247 ossl_cipher_generic_block_update(void *vctx, unsigned char *out, size_t *outl, size_t outsize, const unsigned char *in, size_t inl) ossl_cipher_generic_block_update() argument 393 ossl_cipher_generic_block_final(void *vctx, unsigned char *out, size_t *outl, size_t outsize) ossl_cipher_generic_block_final() argument 467 ossl_cipher_generic_stream_update(void *vctx, unsigned char *out, size_t *outl, size_t outsize, const unsigned char *in, size_t inl) ossl_cipher_generic_stream_update() argument 529 ossl_cipher_generic_stream_final(void *vctx, unsigned char *out, size_t *outl, size_t outsize) ossl_cipher_generic_stream_final() argument 546 ossl_cipher_generic_cipher(void *vctx, unsigned char *out, size_t *outl, size_t outsize, const unsigned char *in, size_t inl) ossl_cipher_generic_cipher() argument [all...] |
H A D | cipher_aes_siv.c | 115 static int siv_cipher(void *vctx, unsigned char *out, size_t *outl, in siv_cipher() argument 126 if (outl != NULL) in siv_cipher() 127 *outl = 0; in siv_cipher() 140 if (outl != NULL) in siv_cipher() 141 *outl = inl; in siv_cipher() 145 static int siv_stream_final(void *vctx, unsigned char *out, size_t *outl, in siv_stream_final() argument 156 if (outl != NULL) in siv_stream_final() 157 *outl = 0; in siv_stream_final()
|
H A D | cipher_aes_xts.c | 157 static int aes_xts_cipher(void *vctx, unsigned char *out, size_t *outl, in aes_xts_cipher() argument 188 *outl = inl; in aes_xts_cipher() 192 static int aes_xts_stream_update(void *vctx, unsigned char *out, size_t *outl, in aes_xts_stream_update() argument 203 if (!aes_xts_cipher(ctx, out, outl, outsize, in, inl)) { in aes_xts_stream_update() 211 static int aes_xts_stream_final(void *vctx, unsigned char *out, size_t *outl, in aes_xts_stream_final() argument 216 *outl = 0; in aes_xts_stream_final()
|
H A D | cipher_tdes_wrap.c | 128 unsigned char *out, size_t *outl, size_t outsize, in tdes_wrap_cipher() 134 *outl = 0; in tdes_wrap_cipher() 147 *outl = ret; in tdes_wrap_cipher() 151 static int tdes_wrap_update(void *vctx, unsigned char *out, size_t *outl, in tdes_wrap_update() argument 155 *outl = 0; in tdes_wrap_update() 163 if (!tdes_wrap_cipher(vctx, out, outl, outsize, in, inl)) { in tdes_wrap_update() 127 tdes_wrap_cipher(void *vctx, unsigned char *out, size_t *outl, size_t outsize, const unsigned char *in, size_t inl) tdes_wrap_cipher() argument
|
H A D | cipher_aes_ocb.c | 161 unsigned char *out, size_t *outl, in aes_ocb_block_update_internal() 206 *outl = outlint; in aes_ocb_block_update_internal() 231 static int aes_ocb_block_update(void *vctx, unsigned char *out, size_t *outl, in aes_ocb_block_update() argument 244 *outl = 0; in aes_ocb_block_update() 258 return aes_ocb_block_update_internal(ctx, buf, buflen, out, outl, outsize, in aes_ocb_block_update() 262 static int aes_ocb_block_final(void *vctx, unsigned char *out, size_t *outl, in aes_ocb_block_final() argument 278 *outl = 0; in aes_ocb_block_final() 282 *outl = ctx->data_buf_len; in aes_ocb_block_final() 500 static int aes_ocb_cipher(void *vctx, unsigned char *out, size_t *outl, in aes_ocb_cipher() argument 518 *outl in aes_ocb_cipher() 159 aes_ocb_block_update_internal(PROV_AES_OCB_CTX *ctx, unsigned char *buf, size_t *bufsz, unsigned char *out, size_t *outl, size_t outsize, const unsigned char *in, size_t inl, OSSL_ocb_cipher_fn ciph) aes_ocb_block_update_internal() argument [all...] |
/third_party/openssl/providers/implementations/ciphers/ |
H A D | ciphercommon.c | 244 size_t *outl, size_t outsize, in ossl_cipher_generic_block_update() 316 *outl = inl; in ossl_cipher_generic_block_update() 319 out, outl, in ossl_cipher_generic_block_update() 380 *outl = outlint; in ossl_cipher_generic_block_update() 385 size_t *outl, size_t outsize) in ossl_cipher_generic_block_final() 403 *outl = 0; in ossl_cipher_generic_block_final() 419 *outl = blksz; in ossl_cipher_generic_block_final() 426 *outl = 0; in ossl_cipher_generic_block_final() 448 *outl = ctx->bufsz; in ossl_cipher_generic_block_final() 454 size_t *outl, size_ in ossl_cipher_generic_stream_update() 243 ossl_cipher_generic_block_update(void *vctx, unsigned char *out, size_t *outl, size_t outsize, const unsigned char *in, size_t inl) ossl_cipher_generic_block_update() argument 384 ossl_cipher_generic_block_final(void *vctx, unsigned char *out, size_t *outl, size_t outsize) ossl_cipher_generic_block_final() argument 453 ossl_cipher_generic_stream_update(void *vctx, unsigned char *out, size_t *outl, size_t outsize, const unsigned char *in, size_t inl) ossl_cipher_generic_stream_update() argument 510 ossl_cipher_generic_stream_final(void *vctx, unsigned char *out, size_t *outl, size_t outsize) ossl_cipher_generic_stream_final() argument 520 ossl_cipher_generic_cipher(void *vctx, unsigned char *out, size_t *outl, size_t outsize, const unsigned char *in, size_t inl) ossl_cipher_generic_cipher() argument [all...] |
H A D | cipher_aes_siv.c | 115 static int siv_cipher(void *vctx, unsigned char *out, size_t *outl, in siv_cipher() argument 126 if (outl != NULL) in siv_cipher() 127 *outl = 0; in siv_cipher() 140 if (outl != NULL) in siv_cipher() 141 *outl = inl; in siv_cipher() 145 static int siv_stream_final(void *vctx, unsigned char *out, size_t *outl, in siv_stream_final() argument 156 if (outl != NULL) in siv_stream_final() 157 *outl = 0; in siv_stream_final()
|
H A D | cipher_aes_xts.c | 157 static int aes_xts_cipher(void *vctx, unsigned char *out, size_t *outl, in aes_xts_cipher() argument 188 *outl = inl; in aes_xts_cipher() 192 static int aes_xts_stream_update(void *vctx, unsigned char *out, size_t *outl, in aes_xts_stream_update() argument 203 if (!aes_xts_cipher(ctx, out, outl, outsize, in, inl)) { in aes_xts_stream_update() 211 static int aes_xts_stream_final(void *vctx, unsigned char *out, size_t *outl, in aes_xts_stream_final() argument 216 *outl = 0; in aes_xts_stream_final()
|
H A D | cipher_tdes_wrap.c | 128 unsigned char *out, size_t *outl, size_t outsize, in tdes_wrap_cipher() 134 *outl = 0; in tdes_wrap_cipher() 147 *outl = ret; in tdes_wrap_cipher() 151 static int tdes_wrap_update(void *vctx, unsigned char *out, size_t *outl, in tdes_wrap_update() argument 155 *outl = 0; in tdes_wrap_update() 163 if (!tdes_wrap_cipher(vctx, out, outl, outsize, in, inl)) { in tdes_wrap_update() 127 tdes_wrap_cipher(void *vctx, unsigned char *out, size_t *outl, size_t outsize, const unsigned char *in, size_t inl) tdes_wrap_cipher() argument
|
H A D | cipher_aes_ocb.c | 161 unsigned char *out, size_t *outl, in aes_ocb_block_update_internal() 206 *outl = outlint; in aes_ocb_block_update_internal() 231 static int aes_ocb_block_update(void *vctx, unsigned char *out, size_t *outl, in aes_ocb_block_update() argument 244 *outl = 0; in aes_ocb_block_update() 258 return aes_ocb_block_update_internal(ctx, buf, buflen, out, outl, outsize, in aes_ocb_block_update() 262 static int aes_ocb_block_final(void *vctx, unsigned char *out, size_t *outl, in aes_ocb_block_final() argument 278 *outl = 0; in aes_ocb_block_final() 282 *outl = ctx->data_buf_len; in aes_ocb_block_final() 497 static int aes_ocb_cipher(void *vctx, unsigned char *out, size_t *outl, in aes_ocb_cipher() argument 515 *outl in aes_ocb_cipher() 159 aes_ocb_block_update_internal(PROV_AES_OCB_CTX *ctx, unsigned char *buf, size_t *bufsz, unsigned char *out, size_t *outl, size_t outsize, const unsigned char *in, size_t inl, OSSL_ocb_cipher_fn ciph) aes_ocb_block_update_internal() argument [all...] |
/third_party/node/deps/openssl/openssl/crypto/srp/ |
H A D | srp_vfy.c | 47 int outl = 0, outl2 = 0; in t_fromb64() local 76 outl = -1; in t_fromb64() 87 && EVP_DecodeUpdate(ctx, a, &outl, pad, padsize) < 0) { in t_fromb64() 88 outl = -1; in t_fromb64() 92 outl = -1; in t_fromb64() 95 outl += outl2; in t_fromb64() 96 EVP_DecodeFinal(ctx, a + outl, &outl2); in t_fromb64() 97 outl += outl2; in t_fromb64() 101 if ((int)padsize >= outl) { in t_fromb64() 102 outl in t_fromb64() 136 int outl = 0, outl2 = 0; t_tob64() local 166 EVP_EncodeFinal(ctx, (unsigned char *)dst + outl, &outl2); t_tob64() local [all...] |
/third_party/openssl/crypto/srp/ |
H A D | srp_vfy.c | 47 int outl = 0, outl2 = 0; in t_fromb64() local 76 outl = -1; in t_fromb64() 87 && EVP_DecodeUpdate(ctx, a, &outl, pad, padsize) < 0) { in t_fromb64() 88 outl = -1; in t_fromb64() 92 outl = -1; in t_fromb64() 95 outl += outl2; in t_fromb64() 96 EVP_DecodeFinal(ctx, a + outl, &outl2); in t_fromb64() 97 outl += outl2; in t_fromb64() 101 if ((int)padsize >= outl) { in t_fromb64() 102 outl in t_fromb64() 136 int outl = 0, outl2 = 0; t_tob64() local 166 EVP_EncodeFinal(ctx, (unsigned char *)dst + outl, &outl2); t_tob64() local [all...] |
/third_party/node/deps/openssl/openssl/crypto/bio/ |
H A D | bf_prefix.c | 15 static int prefix_write(BIO *b, const char *out, size_t outl, 81 static int prefix_write(BIO *b, const char *out, size_t outl, in prefix_write() argument 99 if (outl > 0) in prefix_write() 100 ctx->linestart = (out[outl-1] == '\n'); in prefix_write() 101 return BIO_write_ex(BIO_next(b), out, outl, numwritten); in prefix_write() 106 while (outl > 0) { in prefix_write() 126 for (i = 0, c = '\0'; i < outl && (c = out[i]) != '\n'; i++) in prefix_write() 138 outl -= num; in prefix_write()
|
H A D | bf_readbuff.c | 106 static int readbuffer_read(BIO *b, char *out, int outl) in readbuffer_read() argument 111 if (out == NULL || outl == 0) in readbuffer_read() 123 if (i > outl) in readbuffer_read() 124 i = outl; in readbuffer_read() 130 if (outl == i) in readbuffer_read() 132 outl -= i; in readbuffer_read() 137 if (!readbuffer_resize(ctx, outl)) in readbuffer_read() 141 i = BIO_read(b->next_bio, ctx->ibuf + ctx->ibuf_off, outl); in readbuffer_read()
|
/third_party/openssl/crypto/bio/ |
H A D | bf_prefix.c | 15 static int prefix_write(BIO *b, const char *out, size_t outl, 81 static int prefix_write(BIO *b, const char *out, size_t outl, in prefix_write() argument 99 if (outl > 0) in prefix_write() 100 ctx->linestart = (out[outl-1] == '\n'); in prefix_write() 101 return BIO_write_ex(BIO_next(b), out, outl, numwritten); in prefix_write() 106 while (outl > 0) { in prefix_write() 126 for (i = 0, c = '\0'; i < outl && (c = out[i]) != '\n'; i++) in prefix_write() 138 outl -= num; in prefix_write()
|
H A D | bf_readbuff.c | 106 static int readbuffer_read(BIO *b, char *out, int outl) in readbuffer_read() argument 111 if (out == NULL || outl == 0) in readbuffer_read() 123 if (i > outl) in readbuffer_read() 124 i = outl; in readbuffer_read() 130 if (outl == i) in readbuffer_read() 132 outl -= i; in readbuffer_read() 137 if (!readbuffer_resize(ctx, outl)) in readbuffer_read() 141 i = BIO_read(b->next_bio, ctx->ibuf + ctx->ibuf_off, outl); in readbuffer_read()
|
/third_party/libwebsockets/lib/tls/openssl/ |
H A D | lws-genaes.c | 267 int outl = sizeof(buf), n = 0; in lws_genaes_destroy() local 276 if (EVP_EncryptFinal_ex(ctx->ctx, buf, &outl) != 1) { in lws_genaes_destroy() 291 memcpy(tag, buf, (unsigned int)outl); in lws_genaes_destroy() 296 if (EVP_DecryptFinal_ex(ctx->ctx, buf, &outl) != 1) { in lws_genaes_destroy() 304 if (outl) in lws_genaes_destroy() 305 lwsl_debug("%s: final len %d\n", __func__, outl); in lws_genaes_destroy() 321 int n = 0, outl, olen; in lws_genaes_crypt() local 393 n = EVP_EncryptUpdate(ctx->ctx, out, &outl, in, (int)len); in lws_genaes_crypt() 396 n = EVP_DecryptUpdate(ctx->ctx, out, &outl, in, (int)len); in lws_genaes_crypt() 402 // lwsl_notice("discarding outl in lws_genaes_crypt() [all...] |