pradyun34674 opened a new issue, #327: URL: https://github.com/apache/mina-sshd/issues/327
### Version 2.9.2 ### Bug description We are trying to generate keypair using Ed25519 algorithm. We are using eddsa-0.3.0.jar. We have added the security provider for the same. Security.addProvider(new net.i2p.crypto.eddsa.EdDSASecurityProvider()); Code snippet for key generation keypair = KeyUtils.generateKeyPair("ssh-ed25519", 256); Private key data is in this format: -----BEGIN PRIVATE KEY----- Proc-Type: 4,ENCRYPTED DEK-Info: AES-128-CBC,9014B6FD7912A84C144379D7E26FE20B iub1Uwel6zjsazQ5JIZqmCel/1HpxLyI2jcvO8ET9TF5w8ESCVMmlgPc6PAXgjdn 7N1bsn1lS/FOI4wv9nY90g== -----END PRIVATE KEY----- We are facing issue during the parsing of the key. rawData is a string which contains the private key data as shared above. passwordProvider is initialized below: FilePasswordProvider passwordProvider = new FilePasswordProvider() { public String getPassword(SessionContext session, NamedResource file, int index) throws IOException { return password; } }; Below is the code snippet for parsing of the key: KeyPairResourceLoader bcLoader = SecurityUtils.getBouncycastleKeyPairResourceParser(); Collection<KeyPair> kpList = bcLoader.loadKeyPairs(null, null, passwordProvider, rawData); KeyPair p = GenericUtils.head(kpList); But loadKeyPairs method is returning an empty list. ### Actual behavior loadKeyPairs is an empty list. ### Expected behavior loadKeyPairs should return the KeyPair list. KeyPairResourceLoader is bouncy castle library class. ### Relevant log output _No response_ ### Other information _No response_ -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@mina.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@mina.apache.org For additional commands, e-mail: dev-h...@mina.apache.org