/openssl/test/ |
H A D | params_api_test.c | 162 memcpy(&in, buf, sizeof(in)); in test_param_int() 172 le_copy(cmp, sizeof(in), &in, sizeof(in)); in test_param_int() 199 le_copy(cmp, sizeof(in), &in, sizeof(in)); in test_param_long() 225 le_copy(cmp, sizeof(in), &in, sizeof(in)); in test_param_uint() 252 le_copy(cmp, sizeof(in), &in, sizeof(in)); in test_param_ulong() 279 le_copy(cmp, sizeof(in), &in, sizeof(in)); in test_param_int32() 306 le_copy(cmp, sizeof(in), &in, sizeof(in)); in test_param_uint32() 333 le_copy(cmp, sizeof(in), &in, sizeof(in)); in test_param_int64() 360 le_copy(cmp, sizeof(in), &in, sizeof(in)); in test_param_uint64() 387 le_copy(cmp, sizeof(in), &in, sizeof(in)); in test_param_size_t() [all …]
|
/openssl/crypto/ec/ |
H A D | ecp_nistp521.c | 221 out[0] = in[0]; in felem_assign() 222 out[1] = in[1]; in felem_assign() 223 out[2] = in[2]; in felem_assign() 224 out[3] = in[3]; in felem_assign() 225 out[4] = in[4]; in felem_assign() 226 out[5] = in[5]; in felem_assign() 421 out[0] = ((uint128_t) in[0]) * in[0]; in felem_square_ref() 423 out[2] = ((uint128_t) in[0]) * inx2[2] + ((uint128_t) in[1]) * in[1]; in felem_square_ref() 426 ((uint128_t) in[1]) * inx2[3] + ((uint128_t) in[2]) * in[2]; in felem_square_ref() 431 ((uint128_t) in[2]) * inx2[4] + ((uint128_t) in[3]) * in[3]; in felem_square_ref() [all …]
|
H A D | ecp_nistp224.c | 378 out[0] = in[0]; in felem_assign() 379 out[1] = in[1]; in felem_assign() 499 out[0] = ((widelimb) in[0]) * in[0]; in felem_square() 501 out[2] = ((widelimb) in[0]) * tmp2 + ((widelimb) in[1]) * in[1]; in felem_square() 502 out[3] = ((widelimb) in[3]) * tmp0 + ((widelimb) in[1]) * tmp2; in felem_square() 503 out[4] = ((widelimb) in[3]) * tmp1 + ((widelimb) in[2]) * in[2]; in felem_square() 505 out[6] = ((widelimb) in[3]) * in[3]; in felem_square() 628 a = ((in[3] & in[2] & (in[1] | 0x000000ffffffffff)) + 1) | in felem_contract() 684 zero = in[0] | in[1] | in[2] | in[3]; in felem_is_zero() 686 two224m96p1 = (in[0] ^ 1) | (in[1] ^ 0x00ffff0000000000) in felem_is_zero() [all …]
|
/openssl/providers/implementations/ciphers/ |
H A D | ciphercommon_hw.c | 38 (*dat->stream.ecb) (in, out, len, dat->ks, dat->enc); in ossl_cipher_hw_generic_ecb() 42 (*dat->block) (in + i, out + i, dat->ks); in ossl_cipher_hw_generic_ecb() 100 in += MAXBITCHUNK; in ossl_cipher_hw_generic_cfb1() 138 in += MAXCHUNK; in ossl_cipher_hw_chunked_cbc() 142 ossl_cipher_hw_generic_cbc(ctx, out, in, inl); in ossl_cipher_hw_chunked_cbc() 154 ossl_cipher_hw_generic_cfb8(ctx, out, in, inl); in ossl_cipher_hw_chunked_cfb8() 156 in += chunk; in ossl_cipher_hw_chunked_cfb8() 172 ossl_cipher_hw_generic_cfb128(ctx, out, in, inl); in ossl_cipher_hw_chunked_cfb128() 174 in += chunk; in ossl_cipher_hw_chunked_cfb128() 188 in += MAXCHUNK; in ossl_cipher_hw_chunked_ofb128() [all …]
|
H A D | cipher_cts.c | 108 if (!ctx->hw->cipher(ctx, out, in, len)) in cts128_cs1_encrypt() 114 in += len; in cts128_cs1_encrypt() 118 memcpy(tmp_in.c, in, residue); in cts128_cs1_encrypt() 152 in += len; in cts128_cs1_decrypt() 158 memcpy(cn.c, in + residue, CTS_BLOCK_SIZE); in cts128_cs1_decrypt() 170 memcpy(ct_mid.c, in, residue); in cts128_cs1_decrypt() 214 if (!ctx->hw->cipher(ctx, out, in, len)) in cts128_cs3_encrypt() 217 in += len; in cts128_cs3_encrypt() 221 memcpy(tmp_in.c, in, residue); in cts128_cs3_encrypt() 258 in += len; in cts128_cs3_decrypt() [all …]
|
H A D | cipher_des_hw.c | 52 const unsigned char *in, size_t len) in cipher_hw_des_ecb_cipher() argument 60 DES_ecb_encrypt((const_DES_cblock *)(in + i), in cipher_hw_des_ecb_cipher() 72 (*dctx->dstream.cbc) (in, out, len, key, ctx->iv); in cipher_hw_des_cbc_cipher() 80 in += MAXCHUNK; in cipher_hw_des_cbc_cipher() 98 in += MAXCHUNK; in cipher_hw_des_ofb64_cipher() 121 in += chunk; in cipher_hw_des_cfb64_cipher() 147 c[0] = (in[n / 8] & (1 << (7 - n % 8))) ? 0x80 : 0; in cipher_hw_des_cfb1_cipher() 154 in += chunk; in cipher_hw_des_cfb1_cipher() 169 DES_cfb_encrypt(in, out, 8, (long)MAXCHUNK, key, in cipher_hw_des_cfb8_cipher() 172 in += MAXCHUNK; in cipher_hw_des_cfb8_cipher() [all …]
|
H A D | cipher_aes_gcm_hw_armv8.inc | 5 * this file except in compliance with the License. You can obtain a copy 6 * in the file LICENSE in the source distribution or at 15 size_t armv8_aes_gcm_encrypt(const unsigned char *in, unsigned char *out, size_t len, 26 … unroll8_eor3_aes_gcm_enc_128_kernel(in, align_bytes * 8, out, (uint64_t *)Xi, ivec, key); 28 aes_gcm_enc_128_kernel(in, align_bytes * 8, out, (uint64_t *)Xi, ivec, key); 35 aes_gcm_enc_192_kernel(in, align_bytes * 8, out, (uint64_t *)Xi, ivec, key); 42 aes_gcm_enc_256_kernel(in, align_bytes * 8, out, (uint64_t *)Xi, ivec, key); 49 size_t armv8_aes_gcm_decrypt(const unsigned char *in, unsigned char *out, size_t len, 62 aes_gcm_dec_128_kernel(in, align_bytes * 8, out, (uint64_t *)Xi, ivec, key); 69 aes_gcm_dec_192_kernel(in, align_bytes * 8, out, (uint64_t *)Xi, ivec, key); [all …]
|
/openssl/crypto/modes/ |
H A D | cts128.c | 44 in += len; in CRYPTO_cts128_encrypt_block() 48 ivec[n] ^= in[n]; in CRYPTO_cts128_encrypt_block() 76 in += len; in CRYPTO_nistcts128_encrypt_block() 80 ivec[n] ^= in[n]; in CRYPTO_nistcts128_encrypt_block() 107 in += len; in CRYPTO_cts128_encrypt() 116 memcpy(tmp.c, in, residue); in CRYPTO_cts128_encrypt() 145 in += len; in CRYPTO_nistcts128_encrypt() 179 in += len; in CRYPTO_cts128_decrypt_block() 226 in += len; in CRYPTO_nistcts128_decrypt_block() 268 in += len; in CRYPTO_cts128_decrypt() [all …]
|
H A D | cbc128.c | 43 in += 16; in CRYPTO_cbc128_encrypt() 54 in += 16; in CRYPTO_cbc128_encrypt() 69 in += 16; in CRYPTO_cbc128_encrypt() 90 if (in != out) { in CRYPTO_cbc128_decrypt() 99 iv = in; in CRYPTO_cbc128_decrypt() 101 in += 16; in CRYPTO_cbc128_decrypt() 112 iv = in; in CRYPTO_cbc128_decrypt() 114 in += 16; in CRYPTO_cbc128_decrypt() 132 in += 16; in CRYPTO_cbc128_decrypt() 159 c = in[n]; in CRYPTO_cbc128_decrypt() [all …]
|
H A D | cfb128.c | 45 *(out++) = ivec[n] ^= *(in++); in CRYPTO_cfb128_encrypt() 59 ^= *(size_t_aX *)(in + n); in CRYPTO_cfb128_encrypt() 63 in += 16; in CRYPTO_cfb128_encrypt() 69 out[n] = ivec[n] ^= in[n]; in CRYPTO_cfb128_encrypt() 83 out[l] = ivec[n] ^= in[l]; in CRYPTO_cfb128_encrypt() 94 *(out++) = ivec[n] ^ (c = *(in++)); in CRYPTO_cfb128_encrypt() 114 in += 16; in CRYPTO_cfb128_encrypt() 121 out[n] = ivec[n] ^ (c = in[n]); in CRYPTO_cfb128_encrypt() 137 out[l] = ivec[n] ^ (c = in[l]); in CRYPTO_cfb128_encrypt() 169 out[n] = (ovec[16 + n] = in[n] ^ ivec[n]); in cfbr_encrypt_block() [all …]
|
/openssl/include/openssl/ |
H A D | modes.h | 25 typedef void (*block128_f) (const unsigned char in[16], 28 typedef void (*cbc128_f) (const unsigned char *in, unsigned char *out, 32 typedef void (*ecb128_f) (const unsigned char *in, unsigned char *out, 36 typedef void (*ctr128_f) (const unsigned char *in, unsigned char *out, 40 typedef void (*ccm128_f) (const unsigned char *in, unsigned char *out, 82 size_t CRYPTO_cts128_encrypt_block(const unsigned char *in, 89 size_t CRYPTO_cts128_decrypt_block(const unsigned char *in, 97 size_t CRYPTO_nistcts128_encrypt_block(const unsigned char *in, 105 size_t CRYPTO_nistcts128_decrypt_block(const unsigned char *in, 169 const unsigned char *in, size_t inlen, [all …]
|
H A D | aes.h | 57 void AES_encrypt(const unsigned char *in, unsigned char *out, 60 void AES_decrypt(const unsigned char *in, unsigned char *out, 63 void AES_ecb_encrypt(const unsigned char *in, unsigned char *out, 66 void AES_cbc_encrypt(const unsigned char *in, unsigned char *out, 70 void AES_cfb128_encrypt(const unsigned char *in, unsigned char *out, 74 void AES_cfb1_encrypt(const unsigned char *in, unsigned char *out, 78 void AES_cfb8_encrypt(const unsigned char *in, unsigned char *out, 82 void AES_ofb128_encrypt(const unsigned char *in, unsigned char *out, 88 void AES_ige_encrypt(const unsigned char *in, unsigned char *out, 98 unsigned char *out, const unsigned char *in, [all …]
|
/openssl/crypto/ec/asm/ |
H A D | ecp_nistp521-ppc64.pl | 343 vmsumudm $out[0],$in[0],$in[0],$vzero 347 xxpermdi $t1,$in[0],$in[1],0b00 356 vmsumudm $out[4],$in[2],$in[2],$out[4] 364 xxpermdi $t3,$in[2],$in[3],0b00 377 vmsumudm $out[8],$in[4],$in[4],$out[8] 403 xxpermdi $t1,$in[5],$in[6],0b00 406 xxpermdi $t1,$in[4],$in[5],0b00 409 xxpermdi $t1,$in[3],$in[4],0b00 413 xxpermdi $t1,$in[2],$in[3],0b00 417 xxpermdi $t1,$in[1],$in[2],0b00 [all …]
|
/openssl/include/crypto/ |
H A D | aes_platform.h | 21 void vpaes_encrypt(const unsigned char *in, unsigned char *out, 23 void vpaes_decrypt(const unsigned char *in, unsigned char *out, 25 void vpaes_cbc_encrypt(const unsigned char *in, 35 void ossl_bsaes_ctr32_encrypt_blocks(const unsigned char *in, 198 void aesni_ecb_encrypt(const unsigned char *in, 201 void aesni_cbc_encrypt(const unsigned char *in, 220 void aesni_ctr32_encrypt_blocks(const unsigned char *in, 225 void aesni_xts_encrypt(const unsigned char *in, 231 void aesni_xts_decrypt(const unsigned char *in, 237 void aesni_ccm64_encrypt_blocks(const unsigned char *in, [all …]
|
H A D | pem.h | 22 int ossl_do_blob_header(const unsigned char **in, unsigned int length, 26 int ossl_do_PVK_header(const unsigned char **in, unsigned int length, 31 DSA *ossl_b2i_DSA_after_header(const unsigned char **in, unsigned int bitlen, 34 RSA *ossl_b2i_RSA_after_header(const unsigned char **in, unsigned int bitlen, 37 EVP_PKEY *ossl_b2i(const unsigned char **in, unsigned int length, int *ispub); 38 EVP_PKEY *ossl_b2i_bio(BIO *in, int *ispub); 42 DSA *b2i_DSA_PVK_bio(BIO *in, pem_password_cb *cb, void *u); 43 DSA *b2i_DSA_PVK_bio_ex(BIO *in, pem_password_cb *cb, void *u, 46 RSA *b2i_RSA_PVK_bio(BIO *in, pem_password_cb *cb, void *u); 47 RSA *b2i_RSA_PVK_bio_ex(BIO *in, pem_password_cb *cb, void *u,
|
/openssl/crypto/perlasm/ |
H A D | cbc.pl | 47 $in="esi"; 66 &mov($in, &DWP(0,"ebx","",0));# iv[0] 70 &push($in); 76 &mov($in, &wparam(0)); # in 145 &add($in, 8); 169 &movb(&HB("edx"), &BP(6,$in,"",0)); 173 &movb(&HB("edx"), &BP(5,$in,"",0)); 176 &movb(&LB("edx"), &BP(4,$in,"",0)); 179 &mov("ecx", &DWP(0,$in,"",0)); 183 &movb(&HB("ecx"), &BP(2,$in,"",0)); [all …]
|
/openssl/ssl/ |
H A D | ssl_asn1.c | 131 if ((in == NULL) || ((in->cipher == NULL) && (in->cipher_id == 0))) in i2d_SSL_SESSION() 142 l = in->cipher_id; in i2d_SSL_SESSION() 158 in->master_key, in->master_key_length); in i2d_SSL_SESSION() 161 in->session_id, in->session_id_length); in i2d_SSL_SESSION() 164 in->sid_ctx, in->sid_ctx_length); in i2d_SSL_SESSION() 170 as.peer = in->peer; in i2d_SSL_SESSION() 174 if (in->ext.tick) { in i2d_SSL_SESSION() 176 in->ext.tick, in->ext.ticklen); in i2d_SSL_SESSION() 190 as.flags = in->flags; in i2d_SSL_SESSION() 197 in->ext.alpn_selected, in->ext.alpn_selected_len); in i2d_SSL_SESSION() [all …]
|
/openssl/doc/man1/ |
H A D | openssl-enc.pod.in | 15 [B<-in> I<filename>] 73 =item B<-in> I<filename> 223 in the configuration file. 304 cast-cbc CAST in CBC mode 313 des-cbc DES in CBC mode 315 des-cfb DES in CFB mode 316 des-ofb DES in OFB mode 317 des-ecb DES in ECB mode 337 idea-cfb IDEA in CFB mode 338 idea-ecb IDEA in ECB mode [all …]
|
/openssl/crypto/evp/ |
H A D | e_des.c | 75 DES_ofb64_encrypt(in, out, (long)EVP_MAXCHUNK, in des_ofb_cipher() 80 in += EVP_MAXCHUNK; in des_ofb_cipher() 85 DES_ofb64_encrypt(in, out, (long)inl, in des_ofb_cipher() 103 DES_ncbc_encrypt(in, out, (long)EVP_MAXCHUNK, in des_cbc_cipher() 108 in += EVP_MAXCHUNK; in des_cbc_cipher() 112 DES_ncbc_encrypt(in, out, (long)inl, in des_cbc_cipher() 130 in += EVP_MAXCHUNK; in des_cfb64_cipher() 135 DES_cfb64_encrypt(in, out, (long)inl, in des_cfb64_cipher() 169 in += chunk; in des_cfb1_cipher() 187 in += EVP_MAXCHUNK; in des_cfb8_cipher() [all …]
|
H A D | e_des3.c | 92 in += EVP_MAXCHUNK; in des_ede_ofb_cipher() 97 DES_ede3_ofb64_encrypt(in, out, (long)inl, in des_ede_ofb_cipher() 124 in += EVP_MAXCHUNK; in des_ede_cbc_cipher() 128 DES_ede3_cbc_encrypt(in, out, (long)inl, in des_ede_cbc_cipher() 146 in += EVP_MAXCHUNK; in des_ede_cfb64_cipher() 195 in += EVP_MAXCHUNK; in des_ede3_cfb8_cipher() 329 des_ede_cbc_cipher(ctx, icv, in, 8); in des_ede3_unwrap() 335 if (out == in) { in des_ede3_unwrap() 337 in -= 8; in des_ede3_unwrap() 369 memmove(out + 8, in, inl); in des_ede3_wrap() [all …]
|
/openssl/ |
H A D | build.info | 45 GENERATE[include/openssl/asn1.h]=include/openssl/asn1.h.in 47 GENERATE[include/openssl/bio.h]=include/openssl/bio.h.in 48 GENERATE[include/openssl/cmp.h]=include/openssl/cmp.h.in 49 GENERATE[include/openssl/cms.h]=include/openssl/cms.h.in 50 GENERATE[include/openssl/conf.h]=include/openssl/conf.h.in 57 GENERATE[include/openssl/ct.h]=include/openssl/ct.h.in 58 GENERATE[include/openssl/err.h]=include/openssl/err.h.in 59 GENERATE[include/openssl/ess.h]=include/openssl/ess.h.in 67 GENERATE[include/openssl/srp.h]=include/openssl/srp.h.in 68 GENERATE[include/openssl/ssl.h]=include/openssl/ssl.h.in [all …]
|
/openssl/test/recipes/ |
H A D | 15-test_ec.t | 34 -in => srctop_file("test","testec-p256.pem") ); 38 -in => srctop_file("test","testec-p256.pem"), 43 -in => srctop_file("test","testecpub-p256.pem"), 49 -in => srctop_file("test","testec-p256.pem") ); 53 -in => srctop_file("test","testec-p256.pem"), 58 -in => srctop_file("test","testecpub-p256.pem"), 64 -in => srctop_file("test", "tested25519.pem") ); 68 -in => srctop_file("test", "tested25519.pem"), 78 -in => srctop_file("test", "tested448.pem") ); 82 -in => srctop_file("test", "tested448.pem"), [all …]
|
/openssl/crypto/sm4/asm/ |
H A D | sm4-armv8.pl | 339 my @in=map("v$_",(24..31)); 404 ld1 {@in[0].4s,@in[1].4s,@in[2].4s,@in[3].4s},[$inp],#64 409 ld1 {@in[4].4s,@in[5].4s,@in[6].4s,@in[7].4s},[$inp],#64 433 mov $ivec.16b,@in[7].16b 459 mov $ivec.16b,@in[3].16b 469 mov @in[0].16b,@dat[0].16b 476 mov $ivec.16b,@in[0].16b 492 my @in=map("v$_",(24..31)); 512 ld1 {@in[0].4s,@in[1].4s,@in[2].4s,@in[3].4s},[$inp],#64 525 ld1 {@in[4].4s,@in[5].4s,@in[6].4s,@in[7].4s},[$inp],#64 [all …]
|
/openssl/crypto/x509/ |
H A D | by_file.c | 93 BIO *in = NULL; in X509_load_cert_file_ex() local 97 in = BIO_new(BIO_s_file()); in X509_load_cert_file_ex() 99 if ((in == NULL) || (BIO_read_filename(in, file) <= 0)) { in X509_load_cert_file_ex() 150 BIO_free(in); in X509_load_cert_file_ex() 162 BIO *in = NULL; in X509_load_crl_file() local 166 in = BIO_new(BIO_s_file()); in X509_load_crl_file() 168 if ((in == NULL) || (BIO_read_filename(in, file) <= 0)) { in X509_load_crl_file() 212 BIO_free(in); in X509_load_crl_file() 221 BIO *in; in X509_load_cert_crl_file_ex() local 227 if (!in) { in X509_load_cert_crl_file_ex() [all …]
|
/openssl/doc/man3/ |
H A D | ASN1_item_d2i_bio.pod | 16 ASN1_VALUE *ASN1_item_d2i(ASN1_VALUE **pval, const unsigned char **in, 19 void *ASN1_item_d2i_bio_ex(const ASN1_ITEM *it, BIO *in, void *x, 21 void *ASN1_item_d2i_bio(const ASN1_ITEM *it, BIO *in, void *x); 23 void *ASN1_item_d2i_fp_ex(const ASN1_ITEM *it, FILE *in, void *x, 25 void *ASN1_item_d2i_fp(const ASN1_ITEM *it, FILE *in, void *x); 31 ASN1_item_d2i_ex() decodes the contents of the data stored in I<*in> of length 37 I<libctx> parameter and the property query string in I<propq>. See 39 On exit I<*in> will be updated to point to the next byte in the buffer after the 47 and places the result in I<*pval> unless I<pval> is NULL. 77 and ASN1_item_i2d_mem_bio() were added in OpenSSL 3.0. [all …]
|