21.03.2013 Views

Problem - Kevin Tafuro

Problem - Kevin Tafuro

Problem - Kevin Tafuro

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

preventing cross-site scripting, 103–107<br />

preventing file descriptor overflows when<br />

using select( ), 112–115<br />

preventing format-string attacks, 75–78<br />

preventing integer coercion and wrap-around<br />

problems, 88–92<br />

preventing SQL injection attacks, 107–110<br />

PRFs (pseudo-random functions), 142<br />

HMAC-SHA1, implementation with, 144<br />

prime numbers, generating, 323–327<br />

randomly, 317<br />

printenv command (Unix), 3<br />

printf( ), 75<br />

printf( ) functions family, 120<br />

Privacy Enhanced Mail (see PEM)<br />

private CAs, 506<br />

privilege separation, 21<br />

privileges<br />

dropping in setuid programs, 16–20<br />

limiting risks of, 20–23<br />

restricting, 7–16<br />

priv_init( ), 22<br />

privman library (Unix), 22<br />

functions, 23<br />

initialization, 23<br />

PRNG_output( ), 601<br />

PRNGs (pseudo-random number generators)<br />

application-level generators,<br />

using, 581–591<br />

block ciphers, using as, 583<br />

cryptographic generators, usable<br />

output, 572<br />

cryptographic hash functions, using<br />

as, 588–591<br />

cryptographic vs. noncryptographic, 569<br />

OpenSSL, API in, 603<br />

output with identical seeds, 570<br />

proper usage of, 583<br />

refereed proof of security bounds, 572<br />

reseeding, 591–593<br />

compression of entropy-containing<br />

data, 593<br />

reasons for, 592<br />

seed size, 593<br />

reseeding in parent and child<br />

processes, 26<br />

stream ciphers compared to, 582<br />

stream ciphers, using as, 587<br />

ProPolice, 83<br />

pseudo-random functions (see PRFs)<br />

pseudo-random number generators (see<br />

PRNGs)<br />

pthread_cond_broadcast( ), 724<br />

pthread_cond_wait( ), 721<br />

ptrace debuggers, detecting, 683<br />

public CAs, 505<br />

public key cryptography, 307–361<br />

algorithms, selecting, 311<br />

BIGNUM (see BIGNUM library)<br />

binary representation of public keys and<br />

certificates, 352–355<br />

digital signatures, 311<br />

DSA (Digital Signature<br />

Algorithm), 347–352<br />

exchange keys, 245<br />

forward secrecy, ensuring, 445<br />

key exchange, 311<br />

key sizes, selecting, 312–314<br />

recommended lengths, 314<br />

keys and certificates, representing in<br />

plaintext (PEM<br />

encoding), 355–361<br />

manipulating big numbers, 315<br />

means to establish trust, lack of, 503<br />

OpenSSL, disentangling public and<br />

private keys, 329<br />

prime numbers, generating or<br />

testing, 323–327<br />

Public Key Cryptography Standard<br />

#5, 136<br />

RSA (see RSA algorithm)<br />

speed, 310<br />

third-party validation of public keys, 309,<br />

344<br />

uses for, 309–311<br />

public key infrastructure (see PKI)<br />

PulseEvent( ), 724<br />

putenv( ), 93, 95<br />

environment variables and, 2<br />

pwd.h file, 372<br />

pw_name, 373<br />

pw_uid, 373<br />

This is the Title of the Book, eMatter Edition<br />

Copyright © 2007 O’Reilly & Associates, Inc. All rights reserved.<br />

Q<br />

QueryPerformanceCounter( ), 152<br />

QueueUserWorkItem( ), 718<br />

quoting mechanisms, 74<br />

R<br />

Rabin-Miller test, 324<br />

race conditions, 38, 43<br />

rand( ), 570<br />

RAND_add( ), 604<br />

Index | 753

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!