adding better support for shared key signatures