OpenSSL User Manual and Data Format

13
OpenSSL User Manual and Data Format 1

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

Page 1: OpenSSL User Manual and Data Format

OpenSSLUser Manual and Data Format

1

Page 2: OpenSSL User Manual and Data Format

Main Functions

• Benchmark

• Certificates

• Digital Signature

• Encryption/Decryption

• Private and Public Keys

• a lot of other stuff...

2

Page 3: OpenSSL User Manual and Data Format

OpenSSLSymmetric Encryption

3

Page 4: OpenSSL User Manual and Data Format

openssl enc

• cipher

• salt

• key

• initial vector

• password

• ...

4

Page 5: OpenSSL User Manual and Data Format

password?5

Page 6: OpenSSL User Manual and Data Format

EVP_BytesToKey

arguments

• type of cipher (des3, aes & others)

• salt

• data and data length

• iteration counter

• hash

results

• key

• initial vector

• key length

6

Page 7: OpenSSL User Manual and Data Format

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

7

Page 8: OpenSSL User Manual and Data Format

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

means “concatenation”

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

8

Page 9: OpenSSL User Manual and Data Format

key & iv

0 A4 0C 80 14 75 41 21 90

key iv

9

Page 10: OpenSSL User Manual and Data Format

salt10

Page 11: OpenSSL User Manual and Data Format

salt

without salt your disheswill always taste the same!

the same applies to keysand initial vectors!

11

Page 12: OpenSSL User Manual and Data Format

D e m o

12

Page 13: OpenSSL User Manual and Data Format

13