if (stream == null) {
// If not, allocate a new stream object.
stream = (SigningStream) signingKey.getStream();
}
stream.initSign();
// Attached signature signs:
// [blob | hidden.length | hidden | format] or [blob | 0 | format]
byte[] hiddenPlusLength = Util.fromInt(0);
if (hidden.length > 0) {
hiddenPlusLength = Util.lenPrefix(hidden);