| /freebsd/crypto/openssl/crypto/asn1/ |
| H A D | a_sign.c | 33 int i, inl = 0, outl = 0; in ASN1_sign() local 80 outll = outl = EVP_PKEY_get_size(pkey); in ASN1_sign() 83 outl = 0; in ASN1_sign() 92 (unsigned int *)&outl, pkey)) { in ASN1_sign() 93 outl = 0; in ASN1_sign() 97 ASN1_STRING_set0(signature, buf_out, outl); in ASN1_sign() 108 return outl; in ASN1_sign() 153 size_t inl = 0, outl = 0, outll = 0; in ASN1_item_sign_ctx() 211 outl = signature->length; in ASN1_item_sign_ctx() 255 outl in ASN1_item_sign_ctx() 154 size_t inl = 0, outl = 0, outll = 0; ASN1_item_sign_ctx() local [all...] |
| /freebsd/crypto/openssl/crypto/evp/ |
| H A D | evp_enc.c | 716 int EVP_CipherUpdate(EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl, in EVP_CipherUpdate() argument 720 return EVP_EncryptUpdate(ctx, out, outl, in, inl); in EVP_CipherUpdate() 722 return EVP_DecryptUpdate(ctx, out, outl, in, inl); in EVP_CipherUpdate() 726 unsigned char **out, size_t *outl, in EVP_CipherPipelineUpdate() argument 732 if (ossl_unlikely(outl == NULL || inl == NULL)) { in EVP_CipherPipelineUpdate() 753 outl[i] = 0; in EVP_CipherPipelineUpdate() 756 out, outl, outsize, in EVP_CipherPipelineUpdate() 760 int EVP_CipherFinal_ex(EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl) in EVP_CipherFinal_ex() argument 763 return EVP_EncryptFinal_ex(ctx, out, outl); in EVP_CipherFinal_ex() 765 return EVP_DecryptFinal_ex(ctx, out, outl); in EVP_CipherFinal_ex() 768 EVP_CipherFinal(EVP_CIPHER_CTX * ctx,unsigned char * out,int * outl) EVP_CipherFinal() argument 777 EVP_CipherPipelineFinal(EVP_CIPHER_CTX * ctx,unsigned char ** out,size_t * outl,const size_t * outsize) EVP_CipherPipelineFinal() argument 887 evp_EncryptDecryptUpdate(EVP_CIPHER_CTX * ctx,unsigned char * out,int * outl,const unsigned char * in,int inl) evp_EncryptDecryptUpdate() argument 977 EVP_EncryptUpdate(EVP_CIPHER_CTX * ctx,unsigned char * out,int * outl,const unsigned char * in,int inl) EVP_EncryptUpdate() argument 1032 EVP_EncryptFinal(EVP_CIPHER_CTX * ctx,unsigned char * out,int * outl) EVP_EncryptFinal() argument 1039 EVP_EncryptFinal_ex(EVP_CIPHER_CTX * ctx,unsigned char * out,int * outl) EVP_EncryptFinal_ex() argument 1125 EVP_DecryptUpdate(EVP_CIPHER_CTX * ctx,unsigned char * out,int * outl,const unsigned char * in,int inl) EVP_DecryptUpdate() argument 1252 EVP_DecryptFinal(EVP_CIPHER_CTX * ctx,unsigned char * out,int * outl) EVP_DecryptFinal() argument 1259 EVP_DecryptFinal_ex(EVP_CIPHER_CTX * ctx,unsigned char * out,int * outl) EVP_DecryptFinal_ex() argument [all...] |
| H A D | encode.c | 383 int EVP_EncodeUpdate(EVP_ENCODE_CTX *ctx, unsigned char *out, int *outl, in EVP_DecodeUpdate() 389 *outl = 0; in EVP_DecodeUpdate() 427 *outl = 0; in evp_decodeblock_int() 433 *outl = total; in evp_decodeblock_int() 438 void EVP_EncodeFinal(EVP_ENCODE_CTX *ctx, unsigned char *out, int *outl) in evp_decodeblock_int() 449 *outl = ret; in evp_decodeblock_int() 523 int EVP_DecodeUpdate(EVP_ENCODE_CTX *ctx, unsigned char *out, int *outl, 628 *outl = ret; 718 int EVP_DecodeFinal(EVP_ENCODE_CTX *ctx, unsigned char *out, int *outl) 722 *outl 162 EVP_EncodeUpdate(EVP_ENCODE_CTX * ctx,unsigned char * out,int * outl,const unsigned char * in,int inl) EVP_EncodeUpdate() argument 217 EVP_EncodeFinal(EVP_ENCODE_CTX * ctx,unsigned char * out,int * outl) EVP_EncodeFinal() argument 303 EVP_DecodeUpdate(EVP_ENCODE_CTX * ctx,unsigned char * out,int * outl,const unsigned char * in,int inl) EVP_DecodeUpdate() argument 502 EVP_DecodeFinal(EVP_ENCODE_CTX * ctx,unsigned char * out,int * outl) EVP_DecodeFinal() argument [all...] |
| H A D | bio_enc.c | 104 static int enc_read(BIO *b, char *out, int outl) in enc_read() argument 121 if (i > outl) in enc_read() 122 i = outl; in enc_read() 126 outl -= i; in enc_read() 143 * At this point, we have room of outl bytes and an empty buffer, so we in enc_read() 147 while (outl > 0) { in enc_read() 174 if (outl > ENC_MIN_CHUNK) { in enc_read() 180 int j = outl - blocksize, buf_len; in enc_read() 190 outl -= buf_len; in enc_read() 219 if (ctx->buf_len <= outl) in enc_read() [all...] |
| H A D | mac_lib.c | 142 unsigned char *out, size_t *outl, size_t outsize) in evp_mac_final() argument 160 if (outl == NULL) { in evp_mac_final() 164 *outl = macsize; in evp_mac_final() 181 if (outl != NULL) in evp_mac_final() 182 *outl = l; in evp_mac_final() 187 unsigned char *out, size_t *outl, size_t outsize) in EVP_MAC_final() argument 189 return evp_mac_final(ctx, 0, out, outl, outsize); in EVP_MAC_final()
|
| H A D | bio_b64.c | 114 static int b64_read(BIO *b, char *out, int outl) in b64_read() argument 143 if (i > outl) in b64_read() 144 i = outl; in b64_read() 149 outl -= i; in b64_read() 161 * At this point, we have room of outl bytes and an either an empty buffer, in b64_read() 162 * or outl == 0, so we'll attempt to read in some more. in b64_read() 164 while (outl > 0) { in b64_read() 297 if (ctx->buf_len <= outl) in b64_read() 300 i = outl; in b64_read() 309 outl in b64_read() [all...] |
| /freebsd/crypto/openssl/providers/implementations/ciphers/ |
| H A D | ciphercommon.c | 271 size_t *outl, size_t outsize, 347 *outl = inl; in ossl_cipher_generic_block_update() 350 out, outl, in ossl_cipher_generic_block_update() 411 *outl = outlint; in ossl_cipher_generic_block_update() 416 size_t *outl, size_t outsize) in ossl_cipher_generic_block_update() 439 *outl = 0; in ossl_cipher_generic_block_final() 455 *outl = blksz; in ossl_cipher_generic_block_final() 462 *outl = 0; in ossl_cipher_generic_block_final() 484 *outl = ctx->bufsz; in ossl_cipher_generic_block_final() 490 size_t *outl, size_ in ossl_cipher_generic_block_final() 273 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 419 ossl_cipher_generic_block_final(void * vctx,unsigned char * out,size_t * outl,size_t outsize) ossl_cipher_generic_block_final() argument 493 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 555 ossl_cipher_generic_stream_final(void * vctx,unsigned char * out,size_t * outl,size_t outsize) ossl_cipher_generic_stream_final() argument 571 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_tdes_wrap.c | 127 unsigned char *out, size_t *outl, size_t outsize, in tdes_wrap_cipher() argument 133 *outl = 0; in tdes_wrap_cipher() 146 *outl = ret; in tdes_wrap_cipher() 150 static int tdes_wrap_update(void *vctx, unsigned char *out, size_t *outl, in tdes_wrap_update() argument 154 *outl = 0; in tdes_wrap_update() 162 if (!tdes_wrap_cipher(vctx, out, outl, outsize, in, inl)) { in tdes_wrap_update()
|
| H A D | cipher_aes_xts.c | 176 static int aes_xts_cipher(void *vctx, unsigned char *out, size_t *outl, in aes_xts_cipher() argument 183 return s390x_aes_xts_cipher(vctx, out, outl, outsize, in, inl); in aes_xts_cipher() 212 *outl = inl; in aes_xts_cipher() 216 static int aes_xts_stream_update(void *vctx, unsigned char *out, size_t *outl, in aes_xts_stream_update() argument 227 if (!aes_xts_cipher(ctx, out, outl, outsize, in, inl)) { in aes_xts_stream_update() 235 static int aes_xts_stream_final(void *vctx, unsigned char *out, size_t *outl, in aes_xts_stream_final() argument 240 *outl = 0; in aes_xts_stream_final()
|
| H A D | cipher_sm4_xts.c | 121 static int sm4_xts_cipher(void *vctx, unsigned char *out, size_t *outl, in sm4_xts_cipher() argument 160 *outl = inl; in sm4_xts_cipher() 164 static int sm4_xts_stream_update(void *vctx, unsigned char *out, size_t *outl, in sm4_xts_stream_update() argument 175 if (!sm4_xts_cipher(ctx, out, outl, outsize, in, inl)) { in sm4_xts_stream_update() 183 static int sm4_xts_stream_final(void *vctx, unsigned char *out, size_t *outl, in sm4_xts_stream_final() argument 188 *outl = 0; in sm4_xts_stream_final()
|
| H A D | ciphercommon_ccm.c | 269 int ossl_ccm_stream_update(void *vctx, unsigned char *out, size_t *outl, in ossl_ccm_stream_update() argument 280 if (!ccm_cipher_internal(ctx, out, outl, in, inl)) { in ossl_ccm_stream_update() 287 int ossl_ccm_stream_final(void *vctx, unsigned char *out, size_t *outl, in ossl_ccm_stream_final() argument 296 i = ccm_cipher_internal(ctx, out, outl, NULL, 0); in ossl_ccm_stream_final() 300 *outl = 0; in ossl_ccm_stream_final() 304 int ossl_ccm_cipher(void *vctx, unsigned char *out, size_t *outl, size_t outsize, in ossl_ccm_cipher() argument 317 if (ccm_cipher_internal(ctx, out, outl, in, inl) <= 0) in ossl_ccm_cipher() 320 *outl = inl; in ossl_ccm_cipher()
|
| H A D | ciphercommon_gcm.c | 327 int ossl_gcm_stream_update(void *vctx, unsigned char *out, size_t *outl, in ossl_gcm_set_ctx_params() 333 *outl = 0; in ossl_gcm_stream_update() 342 if (gcm_cipher_internal(ctx, out, outl, in, inl) <= 0) { in ossl_gcm_stream_update() 349 int ossl_gcm_stream_final(void *vctx, unsigned char *out, size_t *outl, in ossl_gcm_stream_update() 358 i = gcm_cipher_internal(ctx, out, outl, NULL, 0); in ossl_gcm_stream_final() 362 *outl = 0; in ossl_gcm_stream_final() 367 unsigned char *out, size_t *outl, size_t outsize, in ossl_gcm_stream_final() 380 if (gcm_cipher_internal(ctx, out, outl, in, inl) <= 0) in ossl_gcm_cipher() 383 *outl = inl; in ossl_gcm_cipher() 330 ossl_gcm_stream_update(void * vctx,unsigned char * out,size_t * outl,size_t outsize,const unsigned char * in,size_t inl) ossl_gcm_stream_update() argument 352 ossl_gcm_stream_final(void * vctx,unsigned char * out,size_t * outl,size_t outsize) ossl_gcm_stream_final() argument 370 ossl_gcm_cipher(void * vctx,unsigned char * out,size_t * outl,size_t outsize,const unsigned char * in,size_t inl) ossl_gcm_cipher() argument
|
| H A D | cipher_aes_ocb.c | 159 unsigned char *out, size_t *outl, in aes_ocb_block_update_internal() 204 *outl = outlint; in aes_ocb_block_update_internal() 229 static int aes_ocb_block_update(void *vctx, unsigned char *out, size_t *outl, in update_iv() 242 *outl = 0; in aes_ocb_block_update() 256 return aes_ocb_block_update_internal(ctx, buf, buflen, out, outl, outsize, in aes_ocb_block_update() 260 static int aes_ocb_block_final(void *vctx, unsigned char *out, size_t *outl, in aes_ocb_block_update() 276 *outl = 0; in aes_ocb_block_final() 280 *outl = ctx->data_buf_len; in aes_ocb_block_final() 504 static int aes_ocb_cipher(void *vctx, unsigned char *out, size_t *outl, in cipher_ocb_settable_ctx_params() 522 *outl in aes_ocb_cipher() 161 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 231 aes_ocb_block_update(void * vctx,unsigned char * out,size_t * outl,size_t outsize,const unsigned char * in,size_t inl) aes_ocb_block_update() argument 262 aes_ocb_block_final(void * vctx,unsigned char * out,size_t * outl,size_t outsize) aes_ocb_block_final() argument 506 aes_ocb_cipher(void * vctx,unsigned char * out,size_t * outl,size_t outsize,const unsigned char * in,size_t inl) aes_ocb_cipher() argument [all...] |
| H A D | cipher_null.c | 65 static int null_cipher(void *vctx, unsigned char *out, size_t *outl, in null_cipher() argument 87 *outl = inl; in null_cipher() 92 static int null_final(void *vctx, unsigned char *out, size_t *outl, in null_final() argument 98 *outl = 0; in null_final()
|
| H A D | cipher_aes_siv.c | 113 static int siv_cipher(void *vctx, unsigned char *out, size_t *outl, in siv_cipher() argument 129 if (outl != NULL) in siv_cipher() 130 *outl = inl; in siv_cipher() 134 static int siv_stream_final(void *vctx, unsigned char *out, size_t *outl, in siv_stream_final() argument 145 if (outl != NULL) in siv_stream_final() 146 *outl = 0; in siv_stream_final()
|
| H A D | cipher_chacha20_poly1305.c | 295 size_t *outl, size_t outsize, in chacha20_poly1305_dinit() 305 *outl = 0; in chacha20_poly1305_cipher() 314 if (!hw->aead_cipher(ctx, out, outl, in, inl)) in chacha20_poly1305_cipher() 320 static int chacha20_poly1305_final(void *vctx, unsigned char *out, size_t *outl, in chacha20_poly1305_cipher() 329 if (hw->aead_cipher(ctx, out, outl, NULL, 0) <= 0) in chacha20_poly1305_final() 332 *outl = 0; in chacha20_poly1305_final() 300 chacha20_poly1305_cipher(void * vctx,unsigned char * out,size_t * outl,size_t outsize,const unsigned char * in,size_t inl) chacha20_poly1305_cipher() argument 326 chacha20_poly1305_final(void * vctx,unsigned char * out,size_t * outl,size_t outsize) chacha20_poly1305_final() argument
|
| /freebsd/crypto/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 [all...] |
| /freebsd/crypto/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()
|
| H A D | bf_buff.c | 87 static int buffer_read(BIO *b, char *out, int outl) in buffer_read() argument 105 if (i > outl) in buffer_read() 106 i = outl; in buffer_read() 111 if (outl == i) in buffer_read() 113 outl -= i; in buffer_read() 123 if (outl > ctx->ibuf_size) { in buffer_read() 125 i = BIO_read(b->next_bio, out, outl); in buffer_read() 134 if (outl == i) in buffer_read() 137 outl -= i; in buffer_read()
|
| H A D | bf_nbio.c | 78 static int nbiof_read(BIO *b, char *out, int outl) in nbiof_read() argument 94 if (outl > num) in nbiof_read() 95 outl = num; in nbiof_read() 101 ret = BIO_read(b->next_bio, out, outl); in nbiof_read()
|
| /freebsd/tools/tools/bhyve/ |
| H A D | fwctl_fetch.c | 50 outl(FWCTL_OUT, value); in send_node_name() 58 outl(FWCTL_OUT, value); in send_node_name() 69 outl(FWCTL_OUT, 12 + strlen(name) + 1); in fwctl_op() 72 outl(FWCTL_OUT, op); in fwctl_op() 75 outl(FWCTL_OUT, id); in fwctl_op()
|
| /freebsd/crypto/libecc/include/libecc/words/ |
| H A D | words.h | 98 #define WORD_MUL(outh, outl, in1, in2) do { \ argument 117 (outl) = tmpl; \ 118 (outl) = (word_t)((outl) + ((tmpm & HWORD_MASK) << HWORD_BITS));\ 120 carryl = (word_t)((outl) < tmpl); \
|
| /freebsd/tools/tools/crypto/ |
| H A D | cryptocheck.c | 717 int outl, total; in openssl_cipher() local 732 if (EVP_CipherUpdate(ctx, (u_char *)output, &outl, in openssl_cipher() 738 total = outl; in openssl_cipher() 739 if (EVP_CipherFinal_ex(ctx, (u_char *)output + outl, &outl) != 1) { in openssl_cipher() 744 total += outl; in openssl_cipher() 1112 int outl; in openssl_gmac() local 1127 if (EVP_EncryptUpdate(ctx, NULL, &outl, (const u_char *)input, in openssl_gmac() 1133 if (EVP_EncryptFinal_ex(ctx, NULL, &outl) != 1) { in openssl_gmac() 1328 int outl, total; in openssl_aead_encrypt() local 1355 if (EVP_EncryptUpdate(ctx, NULL, &outl, (const u_char *)aad, in openssl_aead_encrypt() [all …]
|
| /freebsd/crypto/openssl/ssl/quic/ |
| H A D | quic_srt_gen.c | 67 size_t outl = 0; in ossl_quic_srt_gen_calculate_token() local 77 if (!EVP_MAC_final(srt_gen->mac_ctx, mac, &outl, sizeof(mac)) in ossl_quic_srt_gen_calculate_token() 78 || outl != sizeof(mac)) in ossl_quic_srt_gen_calculate_token()
|