Update decode function, remove PKCS padding