However, for bouncycastle (with a BCPBEKey) the same fails with:
Can you give me a hint how to retrieve the key size back from a secret
key with bouncy castle?
(Of course I could use reflection on the BCPBEKey object, but I would
like to find an official API to do it)