@Override
    protected SecretKey engineTranslateKey(SecretKey secretKey) throws InvalidKeyException {
        if (secretKey == null) {
            throw new InvalidKeyException("Null SecretKey");
        }
        return new SecretKeySpec(secretKey.getEncoded(), secretKey.getAlgorithm());
    }
An implementation of {@link javax.crypto.SecretKeyFactory} for use with DESEDE keys.  This
class supports {@link SecretKeySpec} and {@link DESedeKeySpec} for key specs.
common/src/main/java/org/conscrypt/DESEDESecretKeyFactory.java