Network Security with OpenSSL by Chandra Pravir Messier Matt Viega John & Matt Messier & Pravir Chandra
Author:Chandra, Pravir, Messier, Matt, Viega, John & Matt Messier & Pravir Chandra [John Viega]
Language: eng
Format: epub
Tags: COMPUTERS / Security / General
ISBN: 9780596551971
Publisher: O'Reilly Media
Published: 2009-02-08T16:00:00+00:00
type
The operation to perform, which can be one of the following constants:
EVP_CTRL_GET_RC2_KEY_BITS
EVP_CTRL_SET_RC2_KEY_BITS
EVP_CTRL_GET_RC5_ROUNDS
EVP_CTRL_SET_RC5_ROUNDS
arg
The numerical value to set, if appropriate. If not appropriate, its value is ignored.
ptr
A pointer to an integer for querying the numerical value of a property.
For example, to query the effective key bits in an RC2 cipher context, storing the result in a variable called kb:
EVP_CIPHER_CTX_ctrl(&ctx, EVP_CTRL_GET_RC2_KEY_BITS, 0, &kb);
And to set the effective key strength of RC2 to 64 bits:
EVP_CIPHER_CTX_ctrl(&ctx, EVP_CTRL_SET_RC2_KEY_BITS, 64, NULL);
Setting and querying RC5 rounds works the same way. Remember from our previous discussion that OpenSSL is limited to 8, 12, or 16 rounds for RC5.
Another desirable option to set in a cipher context is whether padding is used. Without padding, the size of the ciphertext will always be the same size as the plaintext. On the downside, the length of the data encrypted must be an exact multiple of the block size. With padding, any length in bytes is feasible, but the resulting ciphertext can be up to a block longer than the plaintext. Unfortunately, OpenSSL versions through 0.9.6c do not allow padding to be disabled. This changes in Version 0.9.7, which has a function called EVP_CIPHER_CTX_set_padding that takes a pointer to a cipher context, and an integer that represents a Boolean value (0 for no padding, 1 for padding).
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Sass and Compass in Action by Wynn Netherland Nathan Weizenbaum Chris Eppstein Brandon Mathis(7397)
Grails in Action by Glen Smith Peter Ledbrook(7291)
Kotlin in Action by Dmitry Jemerov(4633)
Management Strategies for the Cloud Revolution: How Cloud Computing Is Transforming Business and Why You Can't Afford to Be Left Behind by Charles Babcock(4127)
The Age of Surveillance Capitalism by Shoshana Zuboff(3411)
Learn Windows PowerShell in a Month of Lunches by Don Jones(3236)
Mastering Azure Security by Mustafa Toroman and Tom Janetscheck(3012)
Mastering Python for Networking and Security by José Manuel Ortega(2936)
Blockchain Basics by Daniel Drescher(2883)
TCP IP by Todd Lammle(2633)
Microsoft 365 Identity and Services Exam Guide MS-100 by Aaron Guilmette(2538)
From CIA to APT: An Introduction to Cyber Security by Edward G. Amoroso & Matthew E. Amoroso(2478)
Hands-On Azure for Developers by Kamil Mrzyglod(2397)
React Native - Building Mobile Apps with JavaScript by Novick Vladimir(2335)
MCSA Windows Server 2016 Study Guide: Exam 70-740 by William Panek(2309)
The Social Psychology of Inequality by Unknown(2304)
The Art Of Deception by Kevin Mitnick(2292)
Configuring Windows Server Hybrid Advanced Services Exam Ref AZ-801 by Chris Gill(2288)
Azure Containers Explained by Wesley Haakman & Richard Hooper(2171)