<html><head></head><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue-Light, Helvetica Neue Light, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px"><div id="yui_3_16_0_ym19_1_1477373553273_8251">Hi,</div><div id="yui_3_16_0_ym19_1_1477373553273_8253" dir="ltr">    I read that this happens because openssl is treating the input as characters as opposed to binary data. But how do I rectify it so that openssl gives the same digest output as BouncyCastle? </div><div id="yui_3_16_0_ym19_1_1477373553273_8253" dir="ltr"><br></div><div id="yui_3_16_0_ym19_1_1477373553273_8253" dir="ltr">thanks,</div><div id="yui_3_16_0_ym19_1_1477373553273_8253" dir="ltr">Elizabeth</div></div></body></html>