OpenSSL User Manual and Data Format

Post on 28-May-2015

2.035 views 1 download

Tags:

description

These are the slides used for presenting the OpenSSL - User Manual and Data Format by Vittorio Giovara.

Transcript of OpenSSL User Manual and Data Format

OpenSSLUser Manual and Data Format

1

Main Functions

• Benchmark

• Certificates

• Digital Signature

• Encryption/Decryption

• Private and Public Keys

• a lot of other stuff...

2

OpenSSLSymmetric Encryption

3

openssl enc

• cipher

• salt

• key

• initial vector

• password

• ...

4

password?5

EVP_BytesToKey

arguments

• type of cipher (des3, aes & others)

• salt

• data and data length

• iteration counter

• hash

results

• key

• initial vector

• key length

6

openssl enc -des3 -in file.txt -out file.enc-salt -k mySillyPassword -md md5

7

0 ... ... ...D =

means “concatenation”

HASH (data)= HASH(HASH(data))2

8

key & iv

0 A4 0C 80 14 75 41 21 90

key iv

9

salt10

salt

without salt your disheswill always taste the same!

the same applies to keysand initial vectors!

11

D e m o

12

13