The current implementation only retrieves CKA_PUBLIC_KEY_INFO, but the spec says about the attribute: "DER-encoding of the SubjectPublicKeyInfo for this public key. (MAY be empty, DEFAULT derived from the underlying public key data)".
I guess we would need to fallback to the algorithm specific method.
Steps to reproduce:
The current implementation only retrieves CKA_PUBLIC_KEY_INFO, but the spec says about the attribute: "DER-encoding of the SubjectPublicKeyInfo for this public key. (MAY be empty, DEFAULT derived from the underlying public key data)". I guess we would need to fallback to the algorithm specific method.