846 karma · joined September 25, 2013
http://pursuitmag.com/lindsay-moran-former-cia-agent-talks-s...
http://pursuitmag.com/lindsay-moran-former-cia-operative-why...
In any case, you won't find anything published in the US that the CIA would not agree to. Everything written by current or former agents is screened by the CIA's Publications Review Board.
NaCl:
https://gist.github.com/anonymous/9234738
libsodium:
https://github.com/jedisct1/libsodium/blob/master/src/libsod...
If you use Python, read from os.urandom, which is a wrapper to the system's CSPRNG. Don't use random.randint or random.getrandbits...
It takes a special kind of ego to write an SSL library with no unit tests, not turn on compiler warnings, and not use static analysis tools.
NSA designated the University of Maryland as a National Center of Academic Excellence in Information Assurance Research. The University of Maryland was also named an Intelligence Community "Center of Academic Excellence" by the Department of Homeland Security. ... MC2 takes a unique approach in educating the future cybersecurity workforce to serve industry and government needs in Maryland and the Washington, DC metropolitan area.
I am not dismissive of the problem. I just know from experience that the chances of code like that being fixed at all, let alone correctly, is near zero.
There are (were) a couple bugs in the example code. Here are a some guidelines that will help avoid those, and most problems with integer operations and the heap in general.
First, don't mix unsigned and signed types in arithmetic; and always prefer the size_t type for variables representing the size of an object.
Second, check for overflow before an operation, not after, like so:
if (size > SIZE_MAX / 2) {
goto error;
}
newsize = size * 2;
Third, always double-check the arguments to memory allocation functions, especially for zero, because the result is not always well defined. if (size >= SIZE_MAX - n) {
goto error;
}
foo = malloc(size + n);
foo[size] = ...;However, if you want to do something non-trivial and you want it done right, hire a computer scientist or mathematician. No amount of crowd will help if no one in the crowd has a clue what they're doing.
Just goes to show how effective phishing attacks are. If a professor of cryptography does not check SSL certificates, far less people do so than we think.
The most egregious example is when the New York Times delayed publishing revelations of unlawful wiretapping until after the US elections of 2006, on request of the White House. [1] There was no legitimate editorial reason for that decision.
That behaviour has not changed, and the Guardian is no better. According to ACLU attorney Ben Wizner (self-described "chief legal advisor" to Snowden) the New York Times, the Guardian -- and every other publication which got access to the leaked documents -- did not publish a single document without first consulting with the US government. [2,3]
Personally I don't trust any tax-paying organization to publish information the government does not want published.
[1] http://fair.org/take-action/action-alerts/the-scoop-that-got...
[2] "The journalists who Snowden gave the information to, have in every single case, gone to the government before they have published something." https://www.youtube.com/watch?v=Vs3mFZ4UWME#t=53m (At 53:00.)
[3] "The Guardian has not published a single story that has included NSA classified documents, without consulting with the US government. The same is true for Glenn Greenwald, and the same is true for every foreign journalistic partner. In fact, they put it into their contract, with all of those other publications around the world, that they are not to publish any secret document without giving the US an opportunity to weigh in." http://ww3.tvo.org/video/199289/sentencing-snowden (At 9:40.)
Edit: found a better link to the TVO interview.
something = d.get('x', default)I don't use the GPL because I cannot honestly say that I understand it entirely. I understand copyleft, but the document is written for lawyers and I am not one. I can't expect users to read it either, much less understand it.
I use the BSD licenses because they are simple and clear. If I ever had to defend my intellectual property, I could do so myself, and the case would be over quick. That is more important to me, as a developer without access to lawyers, than ideological battles.