In Java EC signatures are returned as DER-encoded, RSA signatures however are raw bytearrays
r - ECDSA signature component
s - ECDSA signature component
Two signatures are considered equal if r and s are equal. This is true even if they are of definite length, and the lengths differ.
r
s