Updated example to extract keying material.