Home
last modified time | relevance | path

Searched refs:block (Results 1 – 25 of 154) sorted by relevance

1234567

/openssl/demos/guide/
H A Dbuild.info7 PROGRAMS{noinst} = tls-client-block \
8 quic-client-block \
10 tls-client-non-block \
11 quic-client-non-block \
14 INCLUDE[tls-client-block]=../../include
15 SOURCE[tls-client-block]=tls-client-block.c
18 INCLUDE[quic-client-block]=../../include
19 SOURCE[quic-client-block]=quic-client-block.c
26 INCLUDE[tls-client-non-block]=../../include
27 SOURCE[tls-client-non-block]=tls-client-non-block.c
[all …]
H A DMakefile7 TESTS = tls-client-block \
8 tls-server-block \
9 quic-client-block \
11 tls-client-non-block \
12 quic-client-non-block
20 tls-client-block: tls-client-block.o
21 tls-server-block: tls-server-block.o
22 quic-client-block: quic-client-block.o
24 tls-client-non-block: tls-client-non-block.o
25 quic-client-non-block: quic-client-non-block.o
H A DREADME.md17 the tls-client-block demo do this:
19 LD_LIBRARY_PATH=../.. ./tls-client-block hostname port
39 SSL_CERT_FILE=rootcert.pem LD_LIBRARY_PATH=../.. ./tls-client-block localhost 4443
48 The tls-client-non-block demo can be run in exactly the same way. Just replace
49 "tls-client-block" in the above example commands with "tls-client-non-block".
70 to run the quic-client-block demo:
72 SSL_CERT_FILE=rootcert.pem LD_LIBRARY_PATH=../.. ./quic-client-block localhost 4443
/openssl/test/
H A Dsm4_internal_test.c55 uint8_t block[SM4_BLOCK_SIZE]; in test_sm4_ecb() local
58 memcpy(block, input, SM4_BLOCK_SIZE); in test_sm4_ecb()
60 ossl_sm4_encrypt(block, block, &key); in test_sm4_ecb()
61 if (!TEST_mem_eq(block, SM4_BLOCK_SIZE, expected, SM4_BLOCK_SIZE)) in test_sm4_ecb()
65 ossl_sm4_encrypt(block, block, &key); in test_sm4_ecb()
67 if (!TEST_mem_eq(block, SM4_BLOCK_SIZE, expected_iter, SM4_BLOCK_SIZE)) in test_sm4_ecb()
71 ossl_sm4_decrypt(block, block, &key); in test_sm4_ecb()
73 if (!TEST_mem_eq(block, SM4_BLOCK_SIZE, input, SM4_BLOCK_SIZE)) in test_sm4_ecb()
H A Denginetest.c51 ENGINE *block[NUMTOADD]; in test_engines() local
63 memset(block, 0, sizeof(block)); in test_engines()
154 if (!TEST_ptr(block[loop] = ENGINE_new()) in test_engines()
155 || !TEST_true(ENGINE_set_id(block[loop], eid[loop])) in test_engines()
156 || !TEST_true(ENGINE_set_name(block[loop], ename[loop]))) in test_engines()
160 if (!TEST_true(ENGINE_add(block[loop]))) { in test_engines()
162 loop, ENGINE_get_id(block[loop]), in test_engines()
163 ENGINE_get_name(block[loop])); in test_engines()
186 ENGINE_free(block[loop]); in test_engines()
/openssl/crypto/modes/
H A Dccm128.c28 block128_f block) in CRYPTO_ccm128_init() argument
33 ctx->block = block; in CRYPTO_ccm128_init()
72 block128_f block = ctx->block; in CRYPTO_ccm128_aad() local
144 block128_f block = ctx->block; in CRYPTO_ccm128_encrypt() local
212 (*block) (ctx->nonce.c, scratch.c, key); in CRYPTO_ccm128_encrypt()
228 block128_f block = ctx->block; in CRYPTO_ccm128_decrypt() local
287 (*block) (ctx->nonce.c, scratch.c, key); in CRYPTO_ccm128_decrypt()
317 block128_f block = ctx->block; in CRYPTO_ccm128_encrypt_ccm64() local
365 (*block) (ctx->nonce.c, scratch.c, key); in CRYPTO_ccm128_encrypt_ccm64()
381 block128_f block = ctx->block; in CRYPTO_ccm128_decrypt_ccm64() local
[all …]
H A Dcfb128.c28 int enc, block128_f block) in CRYPTO_cfb128_encrypt() argument
55 (*block) (ivec, ivec, key); in CRYPTO_cfb128_encrypt()
67 (*block) (ivec, ivec, key); in CRYPTO_cfb128_encrypt()
81 (*block) (ivec, ivec, key); in CRYPTO_cfb128_encrypt()
105 (*block) (ivec, ivec, key); in CRYPTO_cfb128_encrypt()
118 (*block) (ivec, ivec, key); in CRYPTO_cfb128_encrypt()
135 (*block) (ivec, ivec, key); in CRYPTO_cfb128_encrypt()
153 block128_f block) in cfbr_encrypt_block() argument
165 (*block) (ivec, ivec, key); in cfbr_encrypt_block()
189 int enc, block128_f block) in CRYPTO_cfb128_1_encrypt() argument
[all …]
H A Dwrap128.c51 block128_f block) in CRYPTO_128_wrap() argument
69 block(B, B, key); in CRYPTO_128_wrap()
102 block128_f block) in crypto_128_unwrap_raw() argument
123 block(B, B, key); in crypto_128_unwrap_raw()
152 size_t inlen, block128_f block) in CRYPTO_128_unwrap() argument
157 ret = crypto_128_unwrap_raw(key, got_iv, out, in, inlen, block); in CRYPTO_128_unwrap()
186 block128_f block) in CRYPTO_128_wrap_pad() argument
225 block(out, out, key); in CRYPTO_128_wrap_pad()
230 ret = CRYPTO_128_wrap(key, aiv, out, out, padded_len, block); in CRYPTO_128_wrap_pad()
254 block128_f block) in CRYPTO_128_unwrap_pad() argument
[all …]
H A Dcbc128.c26 unsigned char ivec[16], block128_f block) in CRYPTO_cbc128_encrypt() argument
40 (*block) (out, out, key); in CRYPTO_cbc128_encrypt()
51 (*block) (out, out, key); in CRYPTO_cbc128_encrypt()
64 (*block) (out, out, key); in CRYPTO_cbc128_encrypt()
78 unsigned char ivec[16], block128_f block) in CRYPTO_cbc128_decrypt() argument
96 (*block) (in, out, key); in CRYPTO_cbc128_decrypt()
109 (*block) (in, out, key); in CRYPTO_cbc128_decrypt()
125 (*block) (in, tmp.c, key); in CRYPTO_cbc128_decrypt()
142 (*block) (in, tmp.c, key); in CRYPTO_cbc128_decrypt()
157 (*block) (in, tmp.c, key); in CRYPTO_cbc128_decrypt()
H A Dcts128.c30 block128_f block) in CRYPTO_cts128_encrypt_block() argument
42 CRYPTO_cbc128_encrypt(in, out, len, key, ivec, block); in CRYPTO_cts128_encrypt_block()
49 (*block) (ivec, ivec, key); in CRYPTO_cts128_encrypt_block()
60 block128_f block) in CRYPTO_nistcts128_encrypt_block() argument
71 CRYPTO_cbc128_encrypt(in, out, len, key, ivec, block); in CRYPTO_nistcts128_encrypt_block()
81 (*block) (ivec, ivec, key); in CRYPTO_nistcts128_encrypt_block()
161 block128_f block) in CRYPTO_cts128_decrypt_block() argument
183 (*block) (in, tmp.c + 16, key); in CRYPTO_cts128_decrypt_block()
187 (*block) (tmp.c, tmp.c, key); in CRYPTO_cts128_decrypt_block()
230 (*block) (in + residue, tmp.c + 16, key); in CRYPTO_nistcts128_decrypt_block()
[all …]
H A Dofb128.c27 unsigned char ivec[16], int *num, block128_f block) in CRYPTO_ofb128_encrypt() argument
53 (*block) (ivec, ivec, key); in CRYPTO_ofb128_encrypt()
64 (*block) (ivec, ivec, key); in CRYPTO_ofb128_encrypt()
78 (*block) (ivec, ivec, key); in CRYPTO_ofb128_encrypt()
/openssl/include/openssl/
H A Dmodes.h56 block128_f block);
67 block128_f block);
72 int enc, block128_f block);
76 int enc, block128_f block);
80 int enc, block128_f block);
85 block128_f block);
92 block128_f block);
101 block128_f block);
143 block128_f block);
170 block128_f block);
[all …]
/openssl/crypto/evp/
H A De_sm4.c28 block128_f block; member
68 dat->block = (block128_f) HWSM4_decrypt; in sm4_init_key()
83 dat->block = (block128_f) vpsm4_decrypt; in sm4_init_key()
92 dat->block = (block128_f) ossl_sm4_decrypt; in sm4_init_key()
99 dat->block = (block128_f) HWSM4_encrypt; in sm4_init_key()
122 dat->block = (block128_f) vpsm4_encrypt; in sm4_init_key()
133 dat->block = (block128_f) ossl_sm4_encrypt; in sm4_init_key()
149 dat->block); in sm4_cbc_cipher()
152 ctx->iv, dat->block); in sm4_cbc_cipher()
196 ctx->iv, &num, dat->block); in sm4_ofb_cipher()
[all …]
H A De_camellia.c34 block128_f block; member
66 dat->block = (block128_f) cmll_t4_decrypt; in cmll_t4_init_key()
82 dat->block = (block128_f) cmll_t4_encrypt; in cmll_t4_init_key()
208 dat->block = (block128_f) Camellia_decrypt; in camellia_init_key()
212 dat->block = (block128_f) Camellia_encrypt; in camellia_init_key()
247 (*dat->block) (in + i, out + i, &dat->ks); in camellia_ecb_cipher()
270 EVP_CIPHER_CTX_is_encrypting(ctx), dat->block); in camellia_cfb_cipher()
296 dat->block); in camellia_cfb1_cipher()
306 dat->block); in camellia_cfb1_cipher()
317 dat->block); in camellia_cfb1_cipher()
[all …]
/openssl/providers/implementations/ciphers/
H A Dciphercommon_hw.c22 CRYPTO_cbc128_encrypt(in, out, len, dat->ks, dat->iv, dat->block); in ossl_cipher_hw_generic_cbc()
24 CRYPTO_cbc128_decrypt(in, out, len, dat->ks, dat->iv, dat->block); in ossl_cipher_hw_generic_cbc()
42 (*dat->block) (in + i, out + i, dat->ks); in ossl_cipher_hw_generic_ecb()
53 CRYPTO_ofb128_encrypt(in, out, len, dat->ks, dat->iv, &num, dat->block); in ossl_cipher_hw_generic_ofb128()
65 dat->block); in ossl_cipher_hw_generic_cfb128()
77 dat->block); in ossl_cipher_hw_generic_cfb8()
90 dat->enc, dat->block); in ossl_cipher_hw_generic_cfb1()
97 dat->iv, &num, dat->enc, dat->block); in ossl_cipher_hw_generic_cfb1()
104 dat->enc, dat->block); in ossl_cipher_hw_generic_cfb1()
121 &num, dat->block); in ossl_cipher_hw_generic_ctr()
H A Dcipher_aria.c44 IMPLEMENT_generic_cipher(aria, ARIA, ecb, ECB, 0, 256, 128, 0, block)
46 IMPLEMENT_generic_cipher(aria, ARIA, ecb, ECB, 0, 192, 128, 0, block)
48 IMPLEMENT_generic_cipher(aria, ARIA, ecb, ECB, 0, 128, 128, 0, block)
50 IMPLEMENT_generic_cipher(aria, ARIA, cbc, CBC, 0, 256, 128, 128, block)
52 IMPLEMENT_generic_cipher(aria, ARIA, cbc, CBC, 0, 192, 128, 128, block)
54 IMPLEMENT_generic_cipher(aria, ARIA, cbc, CBC, 0, 128, 128, 128, block)
H A Dcipher_camellia.c50 IMPLEMENT_generic_cipher(camellia, CAMELLIA, ecb, ECB, 0, 256, 128, 0, block)
52 IMPLEMENT_generic_cipher(camellia, CAMELLIA, ecb, ECB, 0, 192, 128, 0, block)
54 IMPLEMENT_generic_cipher(camellia, CAMELLIA, ecb, ECB, 0, 128, 128, 0, block)
56 IMPLEMENT_generic_cipher(camellia, CAMELLIA, cbc, CBC, 0, 256, 128, 128, block)
58 IMPLEMENT_generic_cipher(camellia, CAMELLIA, cbc, CBC, 0, 192, 128, 128, block)
60 IMPLEMENT_generic_cipher(camellia, CAMELLIA, cbc, CBC, 0, 128, 128, 128, block)
H A Dcipher_aes.c51 IMPLEMENT_generic_cipher(aes, AES, ecb, ECB, 0, 256, 128, 0, block)
53 IMPLEMENT_generic_cipher(aes, AES, ecb, ECB, 0, 192, 128, 0, block)
55 IMPLEMENT_generic_cipher(aes, AES, ecb, ECB, 0, 128, 128, 0, block)
57 IMPLEMENT_generic_cipher(aes, AES, cbc, CBC, 0, 256, 128, 128, block)
59 IMPLEMENT_generic_cipher(aes, AES, cbc, CBC, 0, 192, 128, 128, block)
61 IMPLEMENT_generic_cipher(aes, AES, cbc, CBC, 0, 128, 128, 128, block)
H A Dcipher_aes_hw.c33 dat->block = (block128_f)HWAES_decrypt; in cipher_hw_aes_initkey()
48 dat->block = (block128_f)AES_decrypt; in cipher_hw_aes_initkey()
55 dat->block = (block128_f)vpaes_decrypt; in cipher_hw_aes_initkey()
62 dat->block = (block128_f)AES_decrypt; in cipher_hw_aes_initkey()
70 dat->block = (block128_f)HWAES_encrypt; in cipher_hw_aes_initkey()
93 dat->block = (block128_f)AES_encrypt; in cipher_hw_aes_initkey()
100 dat->block = (block128_f)vpaes_encrypt; in cipher_hw_aes_initkey()
107 dat->block = (block128_f)AES_encrypt; in cipher_hw_aes_initkey()
H A Dcipher_sm4_hw.c25 ctx->block = (block128_f)HWSM4_encrypt; in cipher_hw_sm4_initkey()
48 ctx->block = (block128_f)vpsm4_ex_encrypt; in cipher_hw_sm4_initkey()
61 ctx->block = (block128_f)vpsm4_encrypt; in cipher_hw_sm4_initkey()
73 ctx->block = (block128_f)ossl_sm4_encrypt; in cipher_hw_sm4_initkey()
79 ctx->block = (block128_f)HWSM4_decrypt; in cipher_hw_sm4_initkey()
94 ctx->block = (block128_f)vpsm4_ex_decrypt; in cipher_hw_sm4_initkey()
105 ctx->block = (block128_f)vpsm4_decrypt; in cipher_hw_sm4_initkey()
115 ctx->block = (block128_f)ossl_sm4_decrypt; in cipher_hw_sm4_initkey()
H A Dcipher_aes_gcm_siv_hw.c33 uint8_t block[BLOCK_SIZE]; in aes_gcm_siv_initkey() member
59 memcpy(&data.block[sizeof(data.counter)], ctx->nonce, NONCE_SIZE); in aes_gcm_siv_initkey()
71 if (!EVP_EncryptUpdate(ctx->ecb_ctx, output, &out_len, data.block, BLOCK_SIZE)) in aes_gcm_siv_initkey()
86 if (!EVP_EncryptUpdate(ctx->ecb_ctx, output, &out_len, data.block, BLOCK_SIZE)) in aes_gcm_siv_initkey()
347 } block; in aes_gcm_siv_ctr32() local
350 memcpy(&block, init_counter, sizeof(block)); in aes_gcm_siv_ctr32()
352 counter = GSWAP4(block.x32[0]); in aes_gcm_siv_ctr32()
355 for (i = 0; i < len; i += sizeof(block)) { in aes_gcm_siv_ctr32()
357 … error |= !EVP_EncryptUpdate(ctx->ecb_ctx, keystream, &out_len, (uint8_t*)&block, sizeof(block)); in aes_gcm_siv_ctr32()
359 block.x32[0]++; in aes_gcm_siv_ctr32()
[all …]
H A Dcipher_des.c151 kbits, blkbits, ivbits, block) \ argument
169 (void (*)(void))ossl_cipher_generic_##block##_update }, \
170 { OSSL_FUNC_CIPHER_FINAL, (void (*)(void))ossl_cipher_generic_##block##_final },\
191 IMPLEMENT_des_cipher(des, ecb, ECB, DES_FLAGS, 64, 64, 0, block);
193 IMPLEMENT_des_cipher(des, cbc, CBC, DES_FLAGS, 64, 64, 64, block);
H A Dcipher_tdes.c23 IMPLEMENT_tdes_cipher(ede3, EDE3, ecb, ECB, TDES_FLAGS, 64*3, 64, 0, block);
25 IMPLEMENT_tdes_cipher(ede3, EDE3, cbc, CBC, TDES_FLAGS, 64*3, 64, 64, block);
/openssl/ssl/record/methods/
H A Dssl3_cbc.c141 void (*md_transform) (void *ctx, const unsigned char *block); in ssl3_cbc_digest_record()
178 (void (*)(void *ctx, const unsigned char *block))MD5_Transform; in ssl3_cbc_digest_record()
188 (void (*)(void *ctx, const unsigned char *block))SHA1_Transform; in ssl3_cbc_digest_record()
195 (void (*)(void *ctx, const unsigned char *block))SHA256_Transform; in ssl3_cbc_digest_record()
202 (void (*)(void *ctx, const unsigned char *block))SHA256_Transform; in ssl3_cbc_digest_record()
209 (void (*)(void *ctx, const unsigned char *block))SHA512_Transform; in ssl3_cbc_digest_record()
402 unsigned char block[MAX_HASH_BLOCK_SIZE]; in ssl3_cbc_digest_record() local
445 block[j] = b; in ssl3_cbc_digest_record()
448 md_transform(md_state.c, block); in ssl3_cbc_digest_record()
449 md_final_raw(md_state.c, block); in ssl3_cbc_digest_record()
[all …]
/openssl/providers/implementations/kdfs/
H A Dkrb5kdf.c293 memcpy(block, constant, constant_len); in n_fold()
310 memset(block, 0, blocksize); in n_fold()
333 tmp += carry + block[b]; in n_fold()
334 block[b] = tmp & 0xff; in n_fold()
341 carry += block[b]; in n_fold()
342 block[b] = carry & 0xff; in n_fold()
382 unsigned char block[EVP_MAX_BLOCK_LENGTH * 2]; in KRB5KDF() local
432 plainblock = block; in KRB5KDF()
433 cipherblock = block + EVP_MAX_BLOCK_LENGTH; in KRB5KDF()
469 if (cipherblock == block) { in KRB5KDF()
[all …]

Completed in 39 milliseconds

1234567