Looks like the jsbn library doesn't work well with TypedArrays