/crypto/poly1305/ |
A D | poly1305.cc | 82 t[0] = mul32x32_64(state->h0, state->r0) + mul32x32_64(state->h1, state->s4) + in poly1305_update() 83 mul32x32_64(state->h2, state->s3) + mul32x32_64(state->h3, state->s2) + in poly1305_update() 85 t[1] = mul32x32_64(state->h0, state->r1) + mul32x32_64(state->h1, state->r0) + in poly1305_update() 86 mul32x32_64(state->h2, state->s4) + mul32x32_64(state->h3, state->s3) + in poly1305_update() 88 t[2] = mul32x32_64(state->h0, state->r2) + mul32x32_64(state->h1, state->r1) + in poly1305_update() 89 mul32x32_64(state->h2, state->r0) + mul32x32_64(state->h3, state->s4) + in poly1305_update() 91 t[3] = mul32x32_64(state->h0, state->r3) + mul32x32_64(state->h1, state->r2) + in poly1305_update() 92 mul32x32_64(state->h2, state->r1) + mul32x32_64(state->h3, state->r0) + in poly1305_update() 94 t[4] = mul32x32_64(state->h0, state->r4) + mul32x32_64(state->h1, state->r3) + in poly1305_update() 95 mul32x32_64(state->h2, state->r2) + mul32x32_64(state->h3, state->r1) + in poly1305_update() [all …]
|
A D | poly1305_test.cc | 32 poly1305_state state; in TestSIMD() local 33 CRYPTO_poly1305_init(&state, key.data()); in TestSIMD() 43 CRYPTO_poly1305_update(&state, in.data(), todo); in TestSIMD() 66 CRYPTO_poly1305_finish(&state, out); in TestSIMD() 80 poly1305_state state; in TEST() local 81 CRYPTO_poly1305_init(&state, key.data()); in TEST() 84 CRYPTO_poly1305_finish(&state, out); in TEST() 88 CRYPTO_poly1305_init(&state, key.data()); in TEST() 90 CRYPTO_poly1305_update(&state, &in[i], 1); in TEST() 92 CRYPTO_poly1305_finish(&state, out); in TEST() [all …]
|
A D | internal.h | 28 void CRYPTO_poly1305_init_neon(poly1305_state *state, const uint8_t key[32]); 30 void CRYPTO_poly1305_update_neon(poly1305_state *state, const uint8_t *in, 33 void CRYPTO_poly1305_finish_neon(poly1305_state *state, uint8_t mac[16]);
|
A D | poly1305_arm.cc | 193 void CRYPTO_poly1305_init_neon(poly1305_state *state, const uint8_t key[32]) { in CRYPTO_poly1305_init_neon() argument 194 struct poly1305_state_st *st = (struct poly1305_state_st *)(state); in CRYPTO_poly1305_init_neon() 217 void CRYPTO_poly1305_update_neon(poly1305_state *state, const uint8_t *in, in CRYPTO_poly1305_update_neon() argument 219 struct poly1305_state_st *st = (struct poly1305_state_st *)(state); in CRYPTO_poly1305_update_neon() 265 void CRYPTO_poly1305_finish_neon(poly1305_state *state, uint8_t mac[16]) { in CRYPTO_poly1305_finish_neon() argument 266 struct poly1305_state_st *st = (struct poly1305_state_st *)(state); in CRYPTO_poly1305_finish_neon()
|
/crypto/err/ |
A D | err.cc | 150 if (state == NULL || state->bottom == state->top) { in get_error_values() 267 state->top = state->bottom = 0; in ERR_clear_error() 571 if (state == NULL || state->top == state->bottom) { in err_set_error_data() 576 error = &state->errors[state->top]; in err_set_error_data() 600 if (state->top == state->bottom) { in ERR_put_error() 604 error = &state->errors[state->top]; in ERR_put_error() 695 if (state == NULL || state->bottom == state->top) { in ERR_set_mark() 698 state->errors[state->top].mark = 1; in ERR_set_mark() 709 while (state->bottom != state->top) { in ERR_pop_to_mark() 756 if (state == NULL || state->top == state->bottom) { in ERR_save_state() [all …]
|
/crypto/test/asm/ |
A D | trampoline-armv8.pl | 66 // $state (8 bytes) 81 str $state, [sp, #160] 88 ldp d8, d9, [$state], #16 89 ldp d10, d11, [$state], #16 90 ldp d12, d13, [$state], #16 91 ldp d14, d15, [$state], #16 92 ldp x19, x20, [$state], #16 93 ldp x21, x22, [$state], #16 132 ldr $state, [sp, #160] 133 stp d8, d9, [$state], #16 [all …]
|
A D | trampoline-armv4.pl | 48 my ($func, $state, $argv, $argc) = ("r0", "r1", "r2", "r3"); 60 @ uint32_t abi_test_trampoline(void (*func)(...), CallerState *state, 92 @ Load registers from |$state|. 93 vldmia $state!, {d8-d15} 96 ldmia $state!, {r4-r8,r10-r11} 98 ldmia $state!, {r4-r11} 130 ldr $state, [sp, #32] 131 vstmia $state!, {d8-d15} 134 stmia $state!, {r4-r8,r10-r11} 136 stmia $state!, {r4-r11}
|
A D | trampoline-x86_64.pl | 127 my ($func, $state, $argv, $argc, $unwind) = @inp; 135 # uint64_t abi_test_trampoline(void (*func)(...), CallerState *state, 206 $code .= load_caller_state(0, $state); 210 movq $state, $state_offset(%rsp) 283 movq $state_offset(%rsp), $state 285 $code .= store_caller_state(0, $state);
|
/crypto/fipsmodule/cipher/ |
A D | e_aesccm.cc.inc | 74 OPENSSL_memset(state, 0, sizeof(*state)); 84 (*block)(state->nonce, state->cmac, key); 96 state->cmac[0] ^= 0xff; 97 state->cmac[1] ^= 0xfe; 123 (*block)(state->cmac, state->cmac, key); 142 state->nonce[0] &= 7; 153 state->nonce[15] = 1; 173 CRYPTO_xor16(state->cmac, state->cmac, in); 174 (*block)(state->cmac, state->cmac, key); 182 (*block)(state->cmac, state->cmac, key); [all …]
|
A D | e_aes.cc.inc | 731 static_assert(sizeof(((EVP_AEAD_CTX *)NULL)->state) >= 733 "AEAD state is too small"); 801 (const struct aead_aes_gcm_ctx *)&ctx->state; 951 (const struct aead_aes_gcm_ctx *)&ctx->state; 985 (const struct aead_aes_gcm_ctx *)&ctx->state; 1036 "AEAD state is too small"); 1044 (struct aead_aes_gcm_tls12_ctx *)&ctx->state; 1064 (struct aead_aes_gcm_tls12_ctx *)&ctx->state; 1131 "AEAD state is too small"); 1139 (struct aead_aes_gcm_tls13_ctx *)&ctx->state; [all …]
|
/crypto/fipsmodule/rand/ |
A D | rand.cc.inc | 122 state->prev->next = state->next; 131 state->next->prev = state->prev; 139 OPENSSL_free(state); 270 OPENSSL_memcpy(state->last_block, entropy, sizeof(state->last_block)); 374 if (state == NULL) { 395 state->calls = 0; 406 state->next->prev = state; 418 // If |state| was seeded from a state with different fork-safety 422 // state. 440 state->calls = 0; [all …]
|
/crypto/fipsmodule/sha/ |
A D | internal.h | 39 void sha1_block_data_order_neon(uint32_t state[5], const uint8_t *data, 46 void sha256_block_data_order_neon(uint32_t state[8], const uint8_t *data, 51 void sha512_block_data_order_neon(uint64_t state[8], const uint8_t *data, 79 void sha1_block_data_order_ssse3(uint32_t state[5], const uint8_t *data, 89 void sha1_block_data_order_avx(uint32_t state[5], const uint8_t *data, 106 void sha256_block_data_order_avx(uint32_t state[8], const uint8_t *data, 132 void sha1_block_data_order_avx2(uint32_t state[5], const uint8_t *data, 141 void sha1_block_data_order_avx(uint32_t state[5], const uint8_t *data, 183 void sha1_block_data_order_hw(uint32_t state[5], const uint8_t *data, 187 void sha1_block_data_order_nohw(uint32_t state[5], const uint8_t *data, [all …]
|
A D | sha512.cc.inc | 283 A = state[0]; 287 E = state[4]; 315 state[0] += A; 355 a = state[0]; 356 b = state[1]; 357 c = state[2]; 358 d = state[3]; 359 e = state[4]; 360 f = state[5]; 361 g = state[6]; [all …]
|
A D | sha256.cc.inc | 182 a = state[0]; 183 b = state[1]; 184 c = state[2]; 185 d = state[3]; 186 e = state[4]; 187 f = state[5]; 188 g = state[6]; 189 h = state[7]; 251 state[0] += a; 252 state[1] += b; [all …]
|
A D | sha1.cc.inc | 204 A = state[0]; 205 B = state[1]; 206 C = state[2]; 207 D = state[3]; 208 E = state[4]; 329 state[0] = (state[0] + E) & 0xffffffffL; 330 state[1] = (state[1] + T) & 0xffffffffL; 331 state[2] = (state[2] + A) & 0xffffffffL; 332 state[3] = (state[3] + B) & 0xffffffffL; 333 state[4] = (state[4] + C) & 0xffffffffL; [all …]
|
/crypto/fipsmodule/keccak/ |
A D | keccak.cc.inc | 33 c[x] = state[x] ^ state[x + 5] ^ state[x + 10] ^ state[x + 15] ^ 34 state[x + 20]; 40 state[y * 5 + x] ^= d; 99 state[row_index] ^= ~orig_x1 & state[row_index + 2]; 100 state[row_index + 1] ^= ~state[row_index + 2] & state[row_index + 3]; 101 state[row_index + 2] ^= ~state[row_index + 3] & state[row_index + 4]; 102 state[row_index + 3] ^= ~state[row_index + 4] & orig_x0; 203 keccak_f(ctx->state); 213 keccak_f(ctx->state); 246 keccak_f(ctx->state); [all …]
|
/crypto/test/ |
A D | abi_test.cc | 264 CallerState state; in GetCallerState() local 265 state.rbx = ctx_.Rbx; in GetCallerState() 266 state.rbp = ctx_.Rbp; in GetCallerState() 267 state.rdi = ctx_.Rdi; in GetCallerState() 268 state.rsi = ctx_.Rsi; in GetCallerState() 269 state.r12 = ctx_.R12; in GetCallerState() 283 return state; in GetCallerState() 342 CallerState state; in GetCallerState() local 357 return state; in GetCallerState() 723 CallerState state; in RunTrampoline() local [all …]
|
/crypto/ |
A D | abi_self_test.cc | 39 abi_test::internal::CallerState state; in TEST() local 40 RAND_bytes(reinterpret_cast<uint8_t *>(&state), sizeof(state)); in TEST() 110 abi_test::internal::CallerState state; in TEST() local 111 RAND_bytes(reinterpret_cast<uint8_t *>(&state), sizeof(state)); in TEST() 114 &state, nullptr, 0, 0 /* no breakpoint */); in TEST() 214 abi_test::internal::CallerState state; in TEST() local 215 RAND_bytes(reinterpret_cast<uint8_t *>(&state), sizeof(state)); in TEST() 286 abi_test::internal::CallerState state; in TEST() local 287 RAND_bytes(reinterpret_cast<uint8_t *>(&state), sizeof(state)); in TEST() 424 abi_test::internal::CallerState state; in TEST() local [all …]
|
/crypto/bio/ |
A D | connect.cc | 48 int state; member 134 switch (c->state) { in conn_state() 204 c->state = BIO_CONN_S_OK; in conn_state() 226 c->state = BIO_CONN_S_OK; in conn_state() 248 ret = cb((BIO *)bio, c->state, ret); in conn_state() 261 ret->state = BIO_CONN_S_BEFORE; in BIO_CONNECT_new() 290 if (c->state == BIO_CONN_S_OK) { in conn_close_socket() 312 if (data->state != BIO_CONN_S_OK) { in conn_read() 336 if (data->state != BIO_CONN_S_OK) { in conn_write() 359 data->state = BIO_CONN_S_BEFORE; in conn_ctrl() [all …]
|
/crypto/md4/ |
A D | md4.cc | 46 static void md4_block_data_order(uint32_t *state, const uint8_t *data, 58 static void HashBlocks(uint32_t *state, const uint8_t *data, in HashBlocks() 60 md4_block_data_order(state, data, num_blocks); in HashBlocks() 110 A = state[0]; in md4_block_data_order() 111 B = state[1]; in md4_block_data_order() 112 C = state[2]; in md4_block_data_order() 113 D = state[3]; in md4_block_data_order() 200 A = state[0] += A; in md4_block_data_order() 201 B = state[1] += B; in md4_block_data_order() 202 C = state[2] += C; in md4_block_data_order() [all …]
|
/crypto/md5/ |
A D | md5.cc | 48 static void md5_block_data_order(uint32_t *state, const uint8_t *data, 61 static void HashBlocks(uint32_t *state, const uint8_t *data, in HashBlocks() 63 md5_block_data_order(state, data, num_blocks); in HashBlocks() 130 A = state[0]; in md5_block_data_order() 131 B = state[1]; in md5_block_data_order() 132 C = state[2]; in md5_block_data_order() 133 D = state[3]; in md5_block_data_order() 237 A = state[0] += A; in md5_block_data_order() 238 B = state[1] += B; in md5_block_data_order() 239 C = state[2] += C; in md5_block_data_order() [all …]
|
/crypto/x509/ |
A D | v3_utl.cc | 306 int state; in STACK_OF() local 312 state = HDR_NAME; in STACK_OF() 316 switch (state) { in STACK_OF() 319 state = HDR_VALUE; in STACK_OF() 344 state = HDR_NAME; in STACK_OF() 361 if (state == HDR_VALUE) { in STACK_OF() 759 int state = LABEL_START; in valid_star() local 778 state &= ~LABEL_START; in valid_star() 782 state |= LABEL_IDNA; in valid_star() 789 state = LABEL_START; in valid_star() [all …]
|
/crypto/fipsmodule/cmac/ |
A D | cmac.cc.inc | 73 // updating the indicator state, so we lock the state here. 157 // indicator state, so we lock the state here. 195 // indicator state, so we lock the state here. 257 // indicator state, so we lock the state here.
|
/crypto/cipher/ |
A D | e_chacha20poly1305.cc | 35 static_assert(sizeof(((EVP_AEAD_CTX *)NULL)->state) >= 45 (struct aead_chacha20_poly1305_ctx *)&ctx->state; in aead_chacha20_poly1305_init() 189 (struct aead_chacha20_poly1305_ctx *)&ctx->state; in aead_chacha20_poly1305_seal_scatter() 202 (struct aead_chacha20_poly1305_ctx *)&ctx->state; in aead_xchacha20_poly1305_seal_scatter() 271 (struct aead_chacha20_poly1305_ctx *)&ctx->state; in aead_chacha20_poly1305_open_gather() 283 (struct aead_chacha20_poly1305_ctx *)&ctx->state; in aead_xchacha20_poly1305_open_gather()
|
A D | e_tls.cc | 46 static_assert(sizeof(((EVP_AEAD_CTX *)NULL)->state) >= sizeof(AEAD_TLS_CTX), 52 AEAD_TLS_CTX *tls_ctx = (AEAD_TLS_CTX *)&ctx->state; in aead_tls_cleanup() 77 AEAD_TLS_CTX *tls_ctx = (AEAD_TLS_CTX *)&ctx->state; in aead_tls_init() 103 const AEAD_TLS_CTX *tls_ctx = (AEAD_TLS_CTX *)&ctx->state; in aead_tls_tag_len() 127 AEAD_TLS_CTX *tls_ctx = (AEAD_TLS_CTX *)&ctx->state; in aead_tls_seal_scatter() 244 AEAD_TLS_CTX *tls_ctx = (AEAD_TLS_CTX *)&ctx->state; in aead_tls_open() 446 const AEAD_TLS_CTX *tls_ctx = (AEAD_TLS_CTX *)&ctx->state; in aead_tls_get_iv()
|