You're just passing more than what's necessary. passing a private key to a method that loads a public key will still work. If you have the private key, then you have the modulus and exponent and by definition you also have the public key.) Thus. (For example, an RSA public key is composed of the modulus and exponent, but an RSA private key contains modulus, exponent, plus other parts. If you have a private key, by definition you also have the public key. On the other hand, a public key is just a portion of the full private key. The reason is that the private parts of the key are simply not present, and if you wanted to load a private key it must be that you're doing something that requires a private key. A call to FromPrivateKey will fail if you pass a public key to it. you do need to know if you have a public or private key. For example, you may call FromOpenSshPrivate key with a PuTTY private key, and it still works. 1 Chilkat Software Download Chilkat Zip C++ Library is the 1 compression component thats extremely easy to use and comes with many useful features Since ACE+TAO are open-source, free software, you are free to use, modify, copy, and distribute- perpetually and irrevocably-the ACE+TAO source code and object code produced from the source, as. In actuality, all of the methods auto-recognize the type and will still load the key successfully. The methods were originally written to load a key of a specific type.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |