//[ConnectBot SSH Library](../../../../index.md)/[org.connectbot.sshlib](../../index.md)/[SshCryptoPolicy](../index.md)/[Companion](index.md)

# Companion

[jvm]\
object [Companion](index.md)

## Functions

| Name | Summary |
|---|---|
| [catalog](catalog.md) | [jvm]<br>@[JvmStatic](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.jvm/-jvm-static/index.html)<br>fun [catalog](catalog.md)(): [Map](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-map/index.html)&lt;[AlgorithmCategory](../../-algorithm-category/index.md), [List](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html)&lt;[SshAlgorithm](../../-ssh-algorithm/index.md)&gt;&gt;<br>Current implemented algorithms, including opt-in and currently unavailable entries. Never cached across provider changes. |
| [resolve](resolve.md) | [jvm]<br>@[JvmStatic](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.jvm/-jvm-static/index.html)<br>@[JvmOverloads](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.jvm/-jvm-overloads/index.html)<br>fun [resolve](resolve.md)(preset: [CryptoPolicyPreset](../../-crypto-policy-preset/index.md) = CryptoPolicyPreset.DEFAULT, overrides: [Map](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-map/index.html)&lt;[AlgorithmCategory](../../-algorithm-category/index.md), [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)&gt; = emptyMap(), minimumRsaBits: [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)? = null, minimumDhBits: [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)? = null): [SshCryptoPolicy](../index.md)<br>Resolve a preset or DEFAULT plus custom expressions. Unsupported positive entries are preserved by the caller and skipped here. Size overrides are for Custom and must not be supplied with a non-DEFAULT preset. |
| [validateExpression](validate-expression.md) | [jvm]<br>@[JvmStatic](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.jvm/-jvm-static/index.html)<br>fun [validateExpression](validate-expression.md)(expression: [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)?)<br>Check expression syntax without checking availability. Unknown names are intentionally accepted. |