Fixed SHA1 Cipher implementation and failed test inserted at previous commit. Refs JENKINS-17634