| /freebsd-13.1/crypto/openssl/crypto/evp/ |
| H A D | evp_enc.c | 317 *outl = 0; in evp_EncryptDecryptUpdate() 382 *outl = 0; in evp_EncryptDecryptUpdate() 440 *outl = 0; in EVP_EncryptFinal_ex() 450 *outl = 0; in EVP_EncryptFinal_ex() 460 *outl = b; in EVP_EncryptFinal_ex() 490 *outl = 0; in EVP_DecryptUpdate() 548 *outl -= b; in EVP_DecryptUpdate() 578 *outl = 0; in EVP_DecryptFinal_ex() 596 *outl = 0; in EVP_DecryptFinal_ex() 624 *outl = n; in EVP_DecryptFinal_ex() [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 = 0; 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() 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() 219 i = outl; in enc_read() [all …]
|
| H A D | bio_b64.c | 110 static int b64_read(BIO *b, char *out, int outl) in b64_read() argument 139 if (i > outl) in b64_read() 140 i = outl; in b64_read() 145 outl -= i; in b64_read() 159 while (outl > 0) { in b64_read() 308 if (ctx->buf_len <= outl) in b64_read() 311 i = outl; in b64_read() 320 outl -= i; in b64_read()
|
| H A D | p_seal.c | 58 int EVP_SealFinal(EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl) in EVP_SealFinal() argument 61 i = EVP_EncryptFinal_ex(ctx, out, outl); in EVP_SealFinal()
|
| H A D | p_open.c | 64 int EVP_OpenFinal(EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl) 68 i = EVP_DecryptFinal_ex(ctx, out, outl);
|
| H A D | bio_ok.c | 171 static int ok_read(BIO *b, char *out, int outl) in ok_read() argument 186 while (outl > 0) { in ok_read() 191 if (i > outl) in ok_read() 192 i = outl; in ok_read() 196 outl -= i; in ok_read() 218 if (outl == 0) in ok_read()
|
| /freebsd-13.1/crypto/openssl/crypto/asn1/ |
| H A D | a_sign.c | 32 int i, inl = 0, outl = 0; in ASN1_sign() local 83 outl = 0; in ASN1_sign() 94 outl = 0; in ASN1_sign() 101 signature->length = outl; in ASN1_sign() 112 return outl; in ASN1_sign() 166 outl = signature->length; in ASN1_item_sign_ctx() 209 outl = 0; in ASN1_item_sign_ctx() 217 outl = 0; in ASN1_item_sign_ctx() 223 outl = 0; in ASN1_item_sign_ctx() 230 signature->length = outl; in ASN1_item_sign_ctx() [all …]
|
| /freebsd-13.1/crypto/openssl/crypto/srp/ |
| H A D | srp_vfy.c | 44 int outl = 0, outl2 = 0; in t_fromb64() local 73 outl = -1; in t_fromb64() 85 outl = -1; in t_fromb64() 89 outl = -1; in t_fromb64() 92 outl += outl2; in t_fromb64() 94 outl += outl2; in t_fromb64() 99 outl = -1; in t_fromb64() 117 outl -= padsize; in t_fromb64() 123 return outl; in t_fromb64() 162 outl += outl2; in t_tob64() [all …]
|
| /freebsd-13.1/crypto/openssl/apps/ |
| H A D | bf_prefix.c | 16 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 92 if (outl > 0) in prefix_write() 93 ctx->linestart = (out[outl-1] == '\n'); in prefix_write() 94 return BIO_write_ex(BIO_next(b), out, outl, numwritten); in prefix_write() 99 while (outl > 0) { in prefix_write() 114 for (i = 0, c = '\0'; i < outl && (c = out[i]) != '\n'; i++) in prefix_write() 126 outl -= num; in prefix_write()
|
| /freebsd-13.1/contrib/apr-util/crypto/ |
| H A D | apr_crypto_commoncrypto.c | 620 apr_size_t outl = *outlen; in crypto_block_encrypt() local 631 outl = CCCryptorGetOutputLength(ctx->ref, inlen, 1); in crypto_block_encrypt() 632 buffer = apr_palloc(ctx->pool, outl); in crypto_block_encrypt() 636 apr_crypto_clear(ctx->pool, buffer, outl); in crypto_block_encrypt() 641 outl, &outl))) { in crypto_block_encrypt() 652 *outlen = outl; in crypto_block_encrypt() 803 apr_size_t outl = *outlen; in crypto_block_decrypt() local 815 buffer = apr_palloc(ctx->pool, outl); in crypto_block_decrypt() 819 apr_crypto_clear(ctx->pool, buffer, outl); in crypto_block_decrypt() 824 outl, &outl))) { in crypto_block_decrypt() [all …]
|
| H A D | apr_crypto_nss.c | 848 int outl = (int) *outlen; in crypto_block_encrypt() local 863 s = PK11_CipherOp(block->ctx, *out, &outl, inlen, (unsigned char*) in, in crypto_block_encrypt() 873 *outlen = outl; in crypto_block_encrypt() 902 unsigned int outl = *outlen; in crypto_block_encrypt_finish() local 904 SECStatus s = PK11_DigestFinal(block->ctx, out, &outl, block->blockSize); in crypto_block_encrypt_finish() 905 *outlen = outl; in crypto_block_encrypt_finish() 1011 int outl = (int) *outlen; in crypto_block_decrypt() local 1026 s = PK11_CipherOp(block->ctx, *out, &outl, inlen, (unsigned char*) in, in crypto_block_decrypt() 1036 *outlen = outl; in crypto_block_decrypt() 1065 unsigned int outl = *outlen; in crypto_block_decrypt_finish() local [all …]
|
| H A D | apr_crypto_openssl.c | 712 int outl = *outlen; local 732 if (!EVP_EncryptUpdate(ctx->cipherCtx, (*out), &outl, in, inlen)) { 734 if (!EVP_EncryptUpdate(ctx->cipherCtx, (*out), &outl, 744 *outlen = outl; 882 int outl = *outlen; local 902 if (!EVP_DecryptUpdate(ctx->cipherCtx, *out, &outl, in, inlen)) { 904 if (!EVP_DecryptUpdate(ctx->cipherCtx, *out, &outl, (unsigned char *) in, 914 *outlen = outl;
|
| /freebsd-13.1/crypto/openssl/crypto/bio/ |
| H A D | bf_buff.c | 89 static int buffer_read(BIO *b, char *out, int outl) in buffer_read() argument 107 if (i > outl) in buffer_read() 108 i = outl; in buffer_read() 113 if (outl == i) in buffer_read() 115 outl -= i; in buffer_read() 125 if (outl > ctx->ibuf_size) { in buffer_read() 127 i = BIO_read(b->next_bio, out, outl); in buffer_read() 136 if (outl == i) in buffer_read() 139 outl -= i; in buffer_read()
|
| H A D | bf_nbio.c | 82 static int nbiof_read(BIO *b, char *out, int outl) in nbiof_read() argument 98 if (outl > num) in nbiof_read() 99 outl = num; in nbiof_read() 105 ret = BIO_read(b->next_bio, out, outl); in nbiof_read()
|
| H A D | bss_sock.c | 105 static int sock_read(BIO *b, char *out, int outl) in sock_read() argument 113 ret = ktls_read_record(b->num, out, outl); in sock_read() 116 ret = readsocket(b->num, out, outl); in sock_read()
|
| H A D | bss_mem.c | 194 static int mem_read(BIO *b, char *out, int outl) in mem_read() argument 203 ret = (outl >= 0 && (size_t)outl > bm->length) ? (int)bm->length : outl; in mem_read()
|
| H A D | bf_null.c | 47 static int nullf_read(BIO *b, char *out, int outl) in nullf_read() argument 55 ret = BIO_read(b->next_bio, out, outl); in nullf_read()
|
| /freebsd-13.1/tools/tools/crypto/ |
| H A D | cryptocheck.c | 688 int outl, total; in openssl_cipher() local 703 total = outl; in openssl_cipher() 707 total += outl; in openssl_cipher() 1056 int outl; in openssl_gmac() local 1238 int outl, total; in openssl_aead_encrypt() local 1266 total = outl; in openssl_aead_encrypt() 1270 total += outl; in openssl_aead_encrypt() 1311 total = outl; in openssl_aead_decrypt() 1317 total += outl; in openssl_aead_decrypt() 1377 total = outl; in openssl_ccm_encrypt() [all …]
|
| /freebsd-13.1/sys/i386/i386/ |
| H A D | geode.c | 116 outl(gpio, u); in led_func() 138 outl(a, 1 << bit); in cs5536_led_func() 140 outl(a, 1 << (bit + 16)); in cs5536_led_func() 287 outl(cba + 0x0d, 2); in geode_probe()
|
| /freebsd-13.1/crypto/openssl/crypto/cms/ |
| H A D | cms_pwri.c | 182 int outl, rv = 0; in kek_unwrap_key() local 196 if (!EVP_DecryptUpdate(ctx, tmp + inlen - 2 * blocklen, &outl, in kek_unwrap_key() 203 || !EVP_DecryptUpdate(ctx, tmp, &outl, in kek_unwrap_key() 206 || !EVP_DecryptUpdate(ctx, tmp, &outl, in, inlen - blocklen) in kek_unwrap_key() 211 || !EVP_DecryptUpdate(ctx, tmp, &outl, tmp, inlen)) in kek_unwrap_key()
|
| /freebsd-13.1/sys/i386/pci/ |
| H A D | pci_cfgreg.c | 222 outl(CONF1_ADDR_PORT, (1U << 31) in pci_cfgenable() 299 outl(port, data); in pcireg_cfgwrite() 372 outl(CONF1_ADDR_PORT, CONF1_ENABLE_CHK); in pcireg_cfgopen() 375 outl(CONF1_ADDR_PORT, oldval1); in pcireg_cfgopen() 386 outl(CONF1_ADDR_PORT, CONF1_ENABLE_CHK1); in pcireg_cfgopen() 388 outl(CONF1_ADDR_PORT, oldval1); in pcireg_cfgopen()
|
| /freebsd-13.1/crypto/openssl/crypto/pem/ |
| H A D | pem_lib.c | 605 int nlen, n, i, j, outl; in PEM_write_bio() local 639 if (!EVP_EncodeUpdate(ctx, buf, &outl, &(data[j]), n)) in PEM_write_bio() 641 if ((outl) && (BIO_write(bp, (char *)buf, outl) != outl)) in PEM_write_bio() 643 i += outl; in PEM_write_bio() 647 EVP_EncodeFinal(ctx, buf, &outl); in PEM_write_bio() 648 if ((outl > 0) && (BIO_write(bp, (char *)buf, outl) != outl)) in PEM_write_bio() 654 retval = i + outl; in PEM_write_bio()
|
| /freebsd-13.1/tests/sys/kern/ |
| H A D | ktls_test.c | 179 int outl, total; in cbc_decrypt() local 202 total = outl; in cbc_decrypt() 203 if (EVP_CipherFinal_ex(ctx, (u_char *)output + outl, &outl) != 1) { in cbc_decrypt() 209 total += outl; in cbc_decrypt() 271 int outl, total; in aead_encrypt() local 303 total = outl; in aead_encrypt() 304 if (EVP_EncryptFinal_ex(ctx, (u_char *)output + outl, &outl) != 1) { in aead_encrypt() 310 total += outl; in aead_encrypt() 333 int outl, total; in aead_decrypt() local 366 total = outl; in aead_decrypt() [all …]
|
| /freebsd-13.1/crypto/openssl/doc/man3/ |
| H A D | EVP_EncodeInit.pod | 19 int EVP_EncodeUpdate(EVP_ENCODE_CTX *ctx, unsigned char *out, int *outl, 21 void EVP_EncodeFinal(EVP_ENCODE_CTX *ctx, unsigned char *out, int *outl); 25 int EVP_DecodeUpdate(EVP_ENCODE_CTX *ctx, unsigned char *out, int *outl, 27 int EVP_DecodeFinal(EVP_ENCODE_CTX *ctx, unsigned char *out, int *outl); 58 is stored in B<*outl>. It is the caller's responsibility to ensure that the 69 EVP_EncodeUpdate() will set B<*outl> to 0 and return 0. On success 1 will be 75 in B<*outl>. It is the caller's responsibility to ensure that B<out> is 98 output is stored in B<*outl>. It is the caller's responsibility to ensure that
|