Home
last modified time | relevance | path

Searched refs:ctr (Results 1 – 25 of 51) sorted by relevance

123

/openssl-master/providers/implementations/rands/
A Ddrbg_ctr.c95 ctr->V[i] ^= in[i + ctr->keylen]; in ctr_XOR()
190 memset(ctr->bltmp + ctr->bltmp_pos, 0, 16 - ctr->bltmp_pos); in ctr_BCC_final()
191 if (!ctr_BCC_blocks(ctr, ctr->bltmp)) in ctr_BCC_final()
238 if (!EVP_CipherUpdate(ctr->ctx_ecb, ctr->KX, &outlen, ctr->KX + ctr->keylen, in ctr_df()
242 if (!EVP_CipherUpdate(ctr->ctx_ecb, ctr->KX + 16, &outlen, ctr->KX, in ctr_df()
284 memcpy(ctr->K, out, ctr->keylen); in ctr_update()
285 memcpy(ctr->V, out + ctr->keylen, 16); in ctr_update()
316 memset(ctr->K, 0, sizeof(ctr->K)); in drbg_ctr_instantiate()
317 memset(ctr->V, 0, sizeof(ctr->V)); in drbg_ctr_instantiate()
467 OPENSSL_cleanse(ctr->K, sizeof(ctr->K)); in drbg_ctr_uninstantiate()
[all …]
/openssl-master/providers/implementations/ciphers/
A Dcipher_chacha20_poly1305_hw.c132 ctr = buf + CHACHA_BLK_SIZE; in chacha20_poly1305_tls_cipher()
149 ctr = xor128_encrypt_n_pad(out, in, ctr, plen); in chacha20_poly1305_tls_cipher()
151 ctr = xor128_decrypt_n_pad(out, in, ctr, plen); in chacha20_poly1305_tls_cipher()
155 tohash_len = (size_t)(ctr - tohash); in chacha20_poly1305_tls_cipher()
174 out[i] = ctr[i] ^= in[i]; in chacha20_poly1305_tls_cipher()
179 out[i] = ctr[i] ^ c; in chacha20_poly1305_tls_cipher()
180 ctr[i] = c; in chacha20_poly1305_tls_cipher()
188 memset(ctr + i, 0, tail); in chacha20_poly1305_tls_cipher()
189 ctr += i + tail; in chacha20_poly1305_tls_cipher()
201 tohash = ctr; in chacha20_poly1305_tls_cipher()
[all …]
A Dcipher_aes_siv_hw.c29 EVP_CIPHER_free(ctx->ctr); in aes_siv_initkey()
31 ctx->ctr = NULL; in aes_siv_initkey()
36 ctx->ctr = EVP_CIPHER_fetch(libctx, "AES-128-CTR", propq); in aes_siv_initkey()
40 ctx->ctr = EVP_CIPHER_fetch(libctx, "AES-192-CTR", propq); in aes_siv_initkey()
44 ctx->ctr = EVP_CIPHER_fetch(libctx, "AES-256-CTR", propq); in aes_siv_initkey()
49 if (ctx->cbc == NULL || ctx->ctr == NULL) in aes_siv_initkey()
55 return ossl_siv128_init(sctx, key, klen, ctx->cbc, ctx->ctr, libctx, in aes_siv_initkey()
72 if (out->ctr != NULL) in aes_siv_dupctx()
73 EVP_CIPHER_up_ref(out->ctr); in aes_siv_dupctx()
100 EVP_CIPHER_free(ctx->ctr); in aes_siv_cleanup()
A Dcipher_aes_gcm_hw_t4.inc18 ctr128_f ctr;
25 ctr = (ctr128_f)aes128_t4_ctr32_encrypt;
28 ctr = (ctr128_f)aes192_t4_ctr32_encrypt;
31 ctr = (ctr128_f)aes256_t4_ctr32_encrypt;
37 GCM_HW_SET_KEY_CTR_FN(ks, aes_t4_set_encrypt_key, aes_t4_encrypt, ctr);
A Dcipher_aes_gcm_hw.c66 if (ctx->ctr != NULL) { in generic_aes_gcm_cipher_update()
84 len - bulk, ctx->ctr)) in generic_aes_gcm_cipher_update()
87 if (CRYPTO_gcm128_encrypt_ctr32(&ctx->gcm, in, out, len, ctx->ctr)) in generic_aes_gcm_cipher_update()
95 if (ctx->ctr != NULL) { in generic_aes_gcm_cipher_update()
113 len - bulk, ctx->ctr)) in generic_aes_gcm_cipher_update()
116 if (CRYPTO_gcm128_decrypt_ctr32(&ctx->gcm, in, out, len, ctx->ctr)) in generic_aes_gcm_cipher_update()
A Dcipher_aes_hw.c84 dat->stream.ctr = (ctr128_f)HWAES_ctr32_encrypt_blocks; in cipher_hw_aes_initkey()
94 dat->stream.ctr = (ctr128_f)ossl_bsaes_ctr32_encrypt_blocks; in cipher_hw_aes_initkey()
112 dat->stream.ctr = (ctr128_f)AES_ctr32_encrypt; in cipher_hw_aes_initkey()
157 PROV_CIPHER_HW_aes_mode(ctr)
A Dcipher_aes_hw_t4.inc11 * Sparc t4 support for AES modes ecb, cbc, ofb, cfb, ctr.
55 dat->stream.ctr = (ctr128_f)aes128_t4_ctr32_encrypt;
63 dat->stream.ctr = (ctr128_f)aes192_t4_ctr32_encrypt;
71 dat->stream.ctr = (ctr128_f)aes256_t4_ctr32_encrypt;
A Dcipher_camellia.c88 IMPLEMENT_generic_cipher(camellia, CAMELLIA, ctr, CTR, 0, 256, 8, 128, stream)
90 IMPLEMENT_generic_cipher(camellia, CAMELLIA, ctr, CTR, 0, 192, 8, 128, stream)
92 IMPLEMENT_generic_cipher(camellia, CAMELLIA, ctr, CTR, 0, 128, 8, 128, stream)
A Dcipher_aes.c89 IMPLEMENT_generic_cipher(aes, AES, ctr, CTR, 0, 256, 8, 128, stream)
91 IMPLEMENT_generic_cipher(aes, AES, ctr, CTR, 0, 192, 8, 128, stream)
93 IMPLEMENT_generic_cipher(aes, AES, ctr, CTR, 0, 128, 8, 128, stream)
A Dcipher_aria.c82 IMPLEMENT_generic_cipher(aria, ARIA, ctr, CTR, 0, 256, 8, 128, stream)
84 IMPLEMENT_generic_cipher(aria, ARIA, ctr, CTR, 0, 192, 8, 128, stream)
86 IMPLEMENT_generic_cipher(aria, ARIA, ctr, CTR, 0, 128, 8, 128, stream)
A Dcipher_camellia_hw_t4.inc35 dat->stream.ctr = (ctr128_f) cmll128_t4_ctr32_encrypt;
44 dat->stream.ctr = (ctr128_f) cmll256_t4_ctr32_encrypt;
/openssl-master/ssl/record/
A Dssl3_record.c986 for (ctr = 0; ctr < n_recs; ctr++) { in tls1_enc()
1018 for (ctr = 0; ctr < n_recs; ctr++) { in tls1_enc()
1019 memmove(recs[ctr].data, recs[ctr].input, recs[ctr].length); in tls1_enc()
1020 recs[ctr].input = recs[ctr].data; in tls1_enc()
1038 for (ctr = 0; ctr < n_recs; ctr++) { in tls1_enc()
1039 reclen[ctr] = recs[ctr].length; in tls1_enc()
1114 for (ctr = 0; ctr < n_recs; ctr++) { in tls1_enc()
1115 data[ctr] = recs[ctr].data; in tls1_enc()
1123 for (ctr = 0; ctr < n_recs; ctr++) { in tls1_enc()
1124 data[ctr] = recs[ctr].input; in tls1_enc()
[all …]
/openssl-master/crypto/modes/
A Dgcm128.c819 unsigned int ctr; local
835 ctr = 1;
894 ++ctr;
1119 ++ctr;
1138 ++ctr;
1169 ++ctr;
1351 ++ctr;
1373 ++ctr;
1407 ++ctr;
1575 ++ctr;
[all …]
A Dsiv128.c144 EVP_CIPHER *cbc, EVP_CIPHER *ctr, in ossl_siv128_new() argument
151 ret = ossl_siv128_init(ctx, key, klen, cbc, ctr, libctx, propq); in ossl_siv128_new()
164 const EVP_CIPHER *cbc, const EVP_CIPHER *ctr, in ossl_siv128_init() argument
184 if (key == NULL || cbc == NULL || ctr == NULL) in ossl_siv128_init()
199 || !EVP_EncryptInit_ex(ctx->cipher_ctx, ctr, NULL, key + klen, NULL) in ossl_siv128_init()
/openssl-master/crypto/evp/
A De_chacha20_poly1305.c225 ctr = buf + CHACHA_BLK_SIZE; in chacha20_poly1305_tls_cipher()
243 ctr = xor128_encrypt_n_pad(out, in, ctr, plen); in chacha20_poly1305_tls_cipher()
245 ctr = xor128_decrypt_n_pad(out, in, ctr, plen); in chacha20_poly1305_tls_cipher()
249 tohash_len = (size_t)(ctr - tohash); in chacha20_poly1305_tls_cipher()
268 out[i] = ctr[i] ^= in[i]; in chacha20_poly1305_tls_cipher()
273 out[i] = ctr[i] ^ c; in chacha20_poly1305_tls_cipher()
274 ctr[i] = c; in chacha20_poly1305_tls_cipher()
282 memset(ctr + i, 0, tail); in chacha20_poly1305_tls_cipher()
283 ctr += i + tail; in chacha20_poly1305_tls_cipher()
295 tohash = ctr; in chacha20_poly1305_tls_cipher()
[all …]
A De_camellia.c37 ctr128_f ctr; member
88 dat->stream.ctr = (ctr128_f) cmll128_t4_ctr32_encrypt; in cmll_t4_init_key()
97 dat->stream.ctr = (ctr128_f) cmll256_t4_ctr32_encrypt; in cmll_t4_init_key()
189 BLOCK_CIPHER_generic(nid, keylen, 1, 16, ctr, ctr, CTR, flags)
334 if (dat->stream.ctr) in camellia_ctr_cipher()
338 dat->stream.ctr); in camellia_ctr_cipher()
/openssl-master/test/
A Dtls13encryptiontest.c312 size_t ivlen, ctr; in test_tls13_encryption() local
348 for (ctr = 0; ctr < OSSL_NELEM(refdata); ctr++) { in test_tls13_encryption()
351 if (!load_record(&rec, &refdata[ctr], &key, s->read_iv, ivlen, in test_tls13_encryption()
372 TEST_info("Failed to encrypt record %zu", ctr); in test_tls13_encryption()
375 if (!TEST_true(test_record(&rec, &refdata[ctr], 1))) { in test_tls13_encryption()
376 TEST_info("Record %zu encryption test failed", ctr); in test_tls13_encryption()
382 TEST_info("Failed to decrypt record %zu", ctr); in test_tls13_encryption()
385 if (!TEST_true(test_record(&rec, &refdata[ctr], 0))) { in test_tls13_encryption()
386 TEST_info("Record %zu decryption test failed", ctr); in test_tls13_encryption()
400 TEST_note("PASS: %zu records tested", ctr); in test_tls13_encryption()
A Dasynctest.c19 static int ctr = 0; variable
31 ctr++; in add_two()
33 ctr++; in add_two()
202 ctr = 0; in test_ASYNC_start_job()
208 || ctr != 1 in test_ASYNC_start_job()
211 || ctr != 2 in test_ASYNC_start_job()
/openssl-master/util/
A Dmkbuildinf.pl41 my $ctr = 0;
45 if (($ctr++ % 16) == 0) {
46 if ($ctr != 1) {
/openssl-master/crypto/chacha/asm/
A Dchacha-armv8.pl211 mov $ctr,#10
214 sub $ctr,$ctr,#1
219 cbnz $ctr,.Loop
299 add $ctr,sp,$len
505 mov $ctr,#10
508 sub $ctr,$ctr,#1
778 add $ctr,sp,$len
940 mov $ctr,#5
944 sub $ctr,$ctr,#1
1056 mov $ctr,#5
[all …]
/openssl-master/include/crypto/
A Dsiv.h15 EVP_CIPHER *cbc, EVP_CIPHER *ctr,
18 const EVP_CIPHER *cbc, const EVP_CIPHER *ctr,
/openssl-master/providers/implementations/kdfs/
A Dx942kdf.c267 unsigned char *ctr, in x942kdf_hash_kdm() argument
299 ctr[0] = (unsigned char)((counter >> 24) & 0xff); in x942kdf_hash_kdm()
300 ctr[1] = (unsigned char)((counter >> 16) & 0xff); in x942kdf_hash_kdm()
301 ctr[2] = (unsigned char)((counter >> 8) & 0xff); in x942kdf_hash_kdm()
302 ctr[3] = (unsigned char)(counter & 0xff); in x942kdf_hash_kdm()
401 unsigned char *ctr; in x942kdf_derive() local
457 &der, &der_len, &ctr)) { in x942kdf_derive()
462 der, der_len, ctr, key, keylen); in x942kdf_derive()
/openssl-master/util/perl/TLSProxy/
A DProxy.pm378 my $ctr = 0;
381 while($fdset->count && $ctr < 10) {
389 $ctr++;
398 $ctr = 0;
408 $ctr = 0;
420 if ($ctr >= 10) {
/openssl-master/crypto/aes/asm/
A Daesv8-armx.pl1810 rev $ctr, $ctr
1816 add $ctr, $ctr, #2
1819 rev $tctr2, $ctr
1828 add w13,$ctr,#1
1829 add w14,$ctr,#2
1837 add $ctr,$ctr,#2
1899 add w13,$ctr,#4
1976 add $ctr,$ctr,#5
1981 sub $ctr,$ctr,#5
1989 add $ctr,$ctr,#3
[all …]
/openssl-master/providers/implementations/include/prov/
A Dciphercommon_gcm.h77 ctr128_f ctr; member
128 ctx->ctr = (ctr128_f)fn_ctr; \

Completed in 47 milliseconds

123