title: Keytool with custom algorithms
body: <p>I'm trying to create key storage using Keytool with my algorithms.</p>
  
  <p>I've made up custom java.security.provider with extended classes of SignatureSPI, MessagedigestSPI and KeyPairGeneratorSPI, and staticly installed it.</p>
  
  <p>Problem I encountered is when i'm trying to create storage using:</p>
  
  <pre><code>keytool -alias something -genkeypair -keyalg GOST2001KeyPairGenerator -sigalg GOST2001Signature -providerclass ru.test.security.test_provider -storetype pkcs12 -keystore test_keystore
  </code></pre>
  
  <p>I get my debug messages and a error:</p>
  
  <pre><code>GOST2001KeyPairGenerator initialize
  GOST2001KeyPairGenerator generateKeyPair
  GOST2001Signature engineInitSign
  keytool error: java.lang.RuntimeException: internal error! unrecognized algorithm name: GOST2001Signature
  </code></pre>
  
  <p>Strange thing is that algorithm actually starting to execute but being called unrecognized afterwards. Can't get a clue what's going wrong.</p>