Searched refs:iv_offset (Results 1 – 1 of 1) sorted by relevance
/net/tls/ |
D | tls_sw.c | 512 int rc, iv_offset = 0; in tls_do_encryption() local 517 iv_offset = 1; in tls_do_encryption() 520 memcpy(&rec->iv_data[iv_offset], tls_ctx->tx.iv, in tls_do_encryption() 523 xor_iv_with_seq(prot, rec->iv_data + iv_offset, tls_ctx->tx.rec_seq); in tls_do_encryption() 1438 int iv_offset = 0; in decrypt_internal() local 1484 iv_offset = 1; in decrypt_internal() 1489 iv + iv_offset + prot->salt_size, in decrypt_internal() 1497 memcpy(iv + iv_offset, tls_ctx->rx.iv, in decrypt_internal() 1500 memcpy(iv + iv_offset, tls_ctx->rx.iv, prot->salt_size); in decrypt_internal() 1502 xor_iv_with_seq(prot, iv + iv_offset, tls_ctx->rx.rec_seq); in decrypt_internal()
|