I have the following question about TLS security:  Assume TLS-PSK protected HTTP with AES256-CBC cipher.  When a TLS connection is established, client sends some encrypted data, where the plaintext is well known to an attacker.  For example, it can be a HTTP request, like:  GET /some_resource HTTP/1.1 ...   Can an attacker use intercepted ciphertext and known plaintext it to reveal the secret key?  Does TLS have any features to protect from that?
At least it's my understanding that AES isn't affected by known-plaintext. Is it immune to such an attack, or just resistant? Does this vary for chosen-plaintext?
I've been learning C#, and I'm trying to understand lambdas.  In this sample below, it prints out 10 ten times.  class Program {     delegate void Action();     static void Main(string[] args)     {         List&lt;Action&gt; actions = new List&lt;Action&gt;();          for (int i = 0; i &lt; 10; ++i )             actions.Add(()=&gt;Console.WriteLine(i));          foreach (Action a in actions)             a();     } }   Obviously, the generated class behind the lambda is storing a reference or pointer to the int i variable, and is assigning a new value to the same reference every time the loop iterates.  Is there a way to force the lamda to grab a copy instead, like the C++0x syntax  [&amp;](){ ... } // Capture by reference   vs.  [=](){ ... } // Capture copies How to group distinct values from a list using odata rest api Why are local variables not initialized in Java? Was there any reason why the designers of Java felt that local variables should not be given a default value? Seriously, if instance variables can be given a default value, then why can't we do the same for local variables?  And it also leads to problems as explained in :     Well this rule is most frustrating when trying to close a resource in a finally block. If I instantiate the resource inside a try, but try to close it within the finally, I get this error. If I move the instantiation outside the try, I get another error stating that a it must be within a try.      Very frustrating. What is Kirito's relationship with the girls of SAO? Removing internal geometry So in the image below there are two circles, how can I remove the internal vertices between them without messing up the outside shape. I'm working on a gun and this is just a simple way to illustrate the issue I'm dealing with. If I where to go in and delete the internal faces it would leave holes on the outside of the object, is there a fast way to get around this? Were there any improvements to the second Death Star (other than the change in exhaust port) that we know of? We know that the second Death Star was meant to have a different/non-existent exhaust port and when under construction it had a shield projected around it.  Other than these elements, one of which was planned to be totally temporary, do we know of any other improvements over its predecessor?  Did it have improved defences against one-man fighters? Did its laser charge more quickly? Did it have an upmarket cafeteria? Im trying to solve the following question         In the second step  where do they get $k!=2^k-1?$ As many people already know, there are several ways to trigger Windows 7 Aero Snap feature. A user can either press Win+{Left,Right,Up,Down} to snap the window to the left or right or maximize or restore. One can also drag the title bar to all the corner except bottom one.  However, is there any keyboard or mouse shortcut to place one window on top half the screen, and another window on bottom half the screen? Please do not tell me to use "Show Windows Stacked" because if I have more than two windows, it will place ALL the windows horizontally, which is not what I want. I want to be able to select the window I want and place it automatically either on top or bottom half the screen.  Thanks!  Edit: Thanks for Moab's suggestion, both on recommend WinSplit and updating my question.  I should make it more clear that I'm looking for a software that will do the functions WinSplit provided, but with on screen input, such as touch screen or pen. Voldemort couldn't kill Harry as long as he called the Dursleys home. Why didn't he just murder the Dursleys? This would prevent Harry from being able to live there. How to convert local time string to UTC? Does somebody has an example where the left $R$-modules $R^m$ and $R^n$ are isomorphic for all positive integers $m$, and $n$? How can I use colours to separate texture node treatment? I am trying to setup a dual screen configuration on debian 8 jessie with Gnome.  My computer has 3 graphical outputs : 2 displayport and 1 HDMI. I can't manage to have two of this 3 outputs to work simultaneously.  output of xrandr is (with the other display on displayport):  xrandr: Failed to get size of gamma for output default Screen 0: minimum 1680 x 1050, current 1680 x 1050, maximum 1680 x 1050 default connected primary 1680x1050+0+0 0mm x 0mm 1680x1050      0.00* `   output of xrandr is (with hdmi working):  xrandr: Failed to get size of gamma for output default Screen 0: minimum 1920 x 1080, current 1920 x 1080, maximum 1920 x 1080 default connected primary 1920x1080+0+0 0mm x 0mm 1920x1080      0.00*   I also tried to use both displayport but it does not work either.  output of lshw -c videò:  *-display UNCLAIMED         description: VGA compatible controller    product: Intel Corporation    vendor: Intel Corporation    physical id: 2    bus info: pci@0000:00:02.0    version: 06    width: 64 bits    clock: 33MHz    capabilities: pciexpress msi pm vga_controller bus_master cap_list    configuration: latency=0    resources: memory:f6000000-f6ffffff memory:e0000000-efffffff  ioport:f000(size=64)   (with both screens connected via displayport)  output of lspci -v -s0:0:2.0  00:02.0 VGA compatible controller: Intel Corporation Device 1912 (rev 06) (prog-if 00 [VGA controller]) Subsystem: Dell Device 06b9 Flags: bus master, fast devsel, latency 0, IRQ 255 Memory at f6000000 (64-bit, non-prefetchable) [size=16M] Memory at e0000000 (64-bit, prefetchable) [size=256M] I/O ports at f000 [size=64] Expansion ROM at &lt;unassigned&gt; [disabled] Capabilities: &lt;access denied&gt; Overriding the java equals() method - not working? No analytic function in $\{|z|<1\}$ such that $f(0)=1$ and $|f(z)|\ge 1+|z|^2$. Proof strategy Show there is no analytic function in $\{|z|&lt;1\}$ such that $f(0)=1$ and $|f(z)|\ge 1+|z|^2$. I guess something went wrong along the way and I would like your assistance.   $f$ does'nt get a maximum in the domain, because if it did, it would be constant in the domain, meaning $|f(z)|=1\ge 1+|z|^2$ which doesn't hold for all z. Since $f$ isn't zero in the domain, ${1\over f}$ is analytic in the domain. but $|{1\over f(z)}|\le {1\over 1+|z|^2}\le 1={1\over f(0)}$, which indicates a local maximum making ${1\over f}$ constant, contradiction the fact the $f$ isn't. What am I really lacking here? How to correctly add a path to PATH? I'm wondering where a new path has to be added to the PATH environment variable. I know this can be accomplished by editing .bashrc (for example), but it's not clear how to do this.  This way:  export PATH=~/opt/bin:$PATH   or this?    export PATH=$PATH:~/opt/bin Greatest comeback in 2nd leg match Reconciling different definitions of left-exact functor I have come across numerous questions where I am given the picture such as the above one been asked "how many rectangles are there?". I have even come across some slightly different images that instead of rectangles you are supposed to find the number of triangles. Well, I was thinking whether there is any formula or strategy that is used to solve these problems without having to manually count every shape.  Help would be appreciated.  Thank you :) Can a Half-Elf have Drow Ancestry?