EMSA encoding to match documentation
Add leading zeros
Rsa signature shouldn't have extra leading zero
Merge branch 'master' into google_code

[ci skip]