• Complain

Viega John Messier Matt - Secure Programming Cookbook for C and C++: Recipes for Cryptography, Authentication, Input Validation & More

Here you can read online Viega John Messier Matt - Secure Programming Cookbook for C and C++: Recipes for Cryptography, Authentication, Input Validation & More full text of the book (entire story) in english for free. Download pdf and epub, get meaning, cover and reviews about this ebook. City: Sebastopol, year: 2009, publisher: OReilly Media, Inc, genre: Computer. Description of the work, (preface) as well as reviews are available. Best literature library LitArk.com created for fans of good reading and offers a wide selection of genres:

Romance novel Science fiction Adventure Detective Science History Home and family Prose Art Politics Computer Non-fiction Religion Business Children Humor

Choose a favorite category and find really read worthwhile books. Enjoy immersion in the world of imagination, feel the emotions of the characters or learn something new for yourself, make an fascinating discovery.

No cover
  • Book:
    Secure Programming Cookbook for C and C++: Recipes for Cryptography, Authentication, Input Validation & More
  • Author:
  • Publisher:
    OReilly Media, Inc
  • Genre:
  • Year:
    2009
  • City:
    Sebastopol
  • Rating:
    3 / 5
  • Favourites:
    Add to favourites
  • Your mark:
    • 60
    • 1
    • 2
    • 3
    • 4
    • 5

Secure Programming Cookbook for C and C++: Recipes for Cryptography, Authentication, Input Validation & More: summary, description and annotation

We offer to read an annotation, description, summary or preface (depends on what the author of the book "Secure Programming Cookbook for C and C++: Recipes for Cryptography, Authentication, Input Validation & More" wrote himself). If you haven't found the necessary information about the book — write in the comments, we will try to find it.

Secure Programming Cookbook for C and C++ is an important new resource for developers serious about writing secure code for Unix (including Linux) and Windows environments. This essential code companion covers a wide range of topics, including safe initialization, access control, input validation, symmetric and public key cryptography, cryptographic hashes and MACs, authentication and key exchange, PKI, random numbers, and anti-tampering. Read more...
Abstract: Secure Programming Cookbook for C and C++ is an important new resource for developers serious about writing secure code for Unix (including Linux) and Windows environments. This essential code companion covers a wide range of topics, including safe initialization, access control, input validation, symmetric and public key cryptography, cryptographic hashes and MACs, authentication and key exchange, PKI, random numbers, and anti-tampering

Viega John Messier Matt: author's other books


Who wrote Secure Programming Cookbook for C and C++: Recipes for Cryptography, Authentication, Input Validation & More? Find out the surname, the name of the author of the book and a list of all author's works by series.

Secure Programming Cookbook for C and C++: Recipes for Cryptography, Authentication, Input Validation & More — read online for free the complete book (whole text) full work

Below is the text of the book, divided by pages. System saving the place of the last page read, allows you to conveniently read the book "Secure Programming Cookbook for C and C++: Recipes for Cryptography, Authentication, Input Validation & More" online for free, without having to search again every time where you left off. Put a bookmark, and you can go to the page where you finished reading at any time.

Light

Font size:

Reset

Interval:

Bookmark:

Make
Secure Programming Cookbook for C and C++
John Viega
Matt Messier
Editor
Debby Russell

Copyright 2009 O'Reilly Media, Inc.

OReilly Media SPECIAL OFFER Upgrade this ebook with OReilly for more - photo 1

O'Reilly Media

SPECIAL OFFER: Upgrade this ebook with OReilly

for more information on this offer!

Please note that upgrade offers are not available from sample content.

A Note Regarding Supplemental Files

Supplemental files and examples for this book can be found at http://examples.oreilly.com/9780596003944/. Please use a standard desktop web browser to access these files, as they may not be accessible from all ereader devices.

All code files or examples referenced in the book will be available online. For physical books that ship with an accompanying disc, whenever possible, weve posted all CD/DVD content. Note that while we provide as much of the media content as we are able via free download, we are sometimes limited by licensing restrictions. Please direct any questions or concerns to .

Foreword

There is a humorous, computing-related aphorism that goes like this:"There are 10 types of people: those who understandbinary, and those who don't."Besides being amusing to people who understand number representation,this saying can be used to group people into four (or 100)categories:

  • Those who will never quite get the meaning of the statement, even ifit is explained to them

  • Those who need some explanation, but will eventually get the meaning

  • Those who have the background to grasp the meaning when they read it

  • Those who have the knowledge and understanding to not only see thestatement as obvious, but be able to come up with it independently ontheir own

There are parallels for these four categories in many different areasof endeavor. You can apply it to art, to cooking, toarchitecture...or to writing software. I have been teaching aspectsof software engineering and security for over 20 years, and I haveseen it up close. When it comes to writing reliable software, thereare four kinds of programmers:

  • Those who are constantly writing buggy code, no matter what

  • Those who can write reasonable code, given coaching and examples

  • Those who write good code most of the time, but whodon't fully realize their limitations

  • Those who really understand the language, the machine architecture,software engineering, and the application area, and who can writetextbook code on a regular basis

The gap between the third category and the fourth may not seem likemuch to some readers, but there are far fewer people in that lastcategory than you might think. It's also the casethat there are lots of people in the third category who would claimthey are in the fourth, but really aren't...similarto the 70% of all licensed drivers who say they are in the top 50% ofsafe drivers. Being an objective judge of one's ownabilities is not always possible.

What compounds the problem for us all is that programmers areespecially unlikely to realize (or are unwilling to admit) theirlimits. There are levels and degrees of complexity when working withcomputers and software that few people completely understand.However, programmers generally hold a world view that they can writecorrect code all the time, and only occasionally do mistakes occur,when in reality mistakes are commonplace in nearlyeveryone's code. As with the four categories, or thedrivers, or any other domain where skill and training are required,the experts with real ability are fewer in number than those who believe they are expert. The result is softwarethat may be subtlyor catastrophicallyincorrect.

A program with serious flaws may compile properly, and work withobvious inputs. This helps reinforce the view that the code iscorrect. If something later exposes a flaw, many programmers will saythat a "bug" somehow"got into the code." Or maybe"it's a computerproblem." Neither is candid. Instead, whoeverdesigned and built the system made mistakes. As a profession, we areunwilling to take responsibility when we code things incorrectly. Isit any wonder that a recent NIST study estimated that industry in theUnited States alone is spending $60 billion a year patching andcustomizing badly-written software? Is it a surprise that there arethousands of security patches per year for common software platforms?We've seen estimates that go as high as $1.5trillion in damages per year worldwide for security problems alone,and simple crashes and errors may be more than 10 times as much.These are not rare flaws causing problems. There is a real crisis inproducing quality software.

The reality is that if we truly face up to the situation, we mightreassess some conventional beliefs. For instance, it is not true thata system is more secure because we can patch the source code when aflaw is discovered. A system is secure or it is notthere is no"more secure." Youcan't say a car is safer because you can replace thefenders yourself after the brakes give out and it goes over a cliff,either. A system is secure if there are no flaws that lead to a violation of policy. Being able to installthe latest patch to the latest bad code doesn't makea system safer. If anything, after we've done it afew times, it should perhaps reduce our confidence in the quality ofthe software.

An honest view of programming might also cause us to pay moreattention to designto capturing requirements and developingspecifications. Too often we end up with code that is put togetherwithout understanding the needsand the pitfallsof theenvironment where it will be used. The result is software thatmisbehaves when someone runs it in a different environment, or withunexpected input. There's a saying that has beenattributed to Brian Kernighan, but which appears to have first beenwritten down by W. D. Young, W.E. Boebert, and R.Y. Kain in 1985:"A program that has not been specified cannot beincorrect; it can only be surprising." Most of thesecurity patches issued today are issued to eliminate surprisesbecause there are no specifications for the underlying code. As aprofession, we write too much surprising code.

I could go on, but I hope my points are clear: there are some realproblems in the way software is being produced, and those problemslead to some seriousand expensiveproblems. However,problem-free software and absolute security are almost always beyondour reach in any significant software project, so the next best thingis to identify and reduce the risks. Proven approaches to reducethese risks include using established methods of softwareengineering, exercising care in design and development, reusingproven software, and thinking about how to handle potential errors.This is the process of assuranceof building trust in oursystems. Assurance needs to be built in rather than asserted afterthe software is finished.

That's why this book is so valuable. It can helppeople write correct, robust software the first time and avoid manyof the surprises. The material in this book can help you provide anetwork connection with end-to-end security, as well as help youeliminate the need to patch the code because youdidn't add enough entropy to key generation, or youfailed to change the UID/GID values in the correct order. Using thiscode you can get the environment set correctly, the signals checked,and the file descriptors the way you need them. And along the way,you can read a clear, cogent description about what needs to be setand why in each case. Add in some good design and careful testing,and a lot of the surprises go away.

Next page
Light

Font size:

Reset

Interval:

Bookmark:

Make

Similar books «Secure Programming Cookbook for C and C++: Recipes for Cryptography, Authentication, Input Validation & More»

Look at similar books to Secure Programming Cookbook for C and C++: Recipes for Cryptography, Authentication, Input Validation & More. We have selected literature similar in name and meaning in the hope of providing readers with more options to find new, interesting, not yet read works.


Reviews about «Secure Programming Cookbook for C and C++: Recipes for Cryptography, Authentication, Input Validation & More»

Discussion, reviews of the book Secure Programming Cookbook for C and C++: Recipes for Cryptography, Authentication, Input Validation & More and just readers' own opinions. Leave your comments, write what you think about the work, its meaning or the main characters. Specify what exactly you liked and what you didn't like, and why you think so.