开发者

ssh-2 rsa body format?

开发者 https://www.devze.com 2022-12-30 13:39 出处:网络
Is there any documentation on what the bignums in the body are? Like here is an example pubkey. ssh开发者_开发知识库-rsa AAAAB3NzaC1yc2EAAAABJQAAAIBMgigwcBaB3sqogC/yVPANQJKjMwOvrdOKhBIVlI2eOIq6FEyzN

Is there any documentation on what the bignums in the body are?

Like here is an example pubkey.

ssh开发者_开发知识库-rsa AAAAB3NzaC1yc2EAAAABJQAAAIBMgigwcBaB3sqogC/yVPANQJKjMwOvrdOKhBIVlI2eOIq6FEyzNI8cbRDbHo5muipun922bLoV+p/dPZ2/8wJ+zugLM8eCdsr+VbYZ3T5wb7bjd2swePOWtffnsXnHiP8aWyRj64vd/mRPR1gYErg8vb7vM5c4B2ANKHs/rP65Bw== rsa-key-20100514

It contains 3 bignums with the sizes 7, 1, 128. Now I am assuming the 128 is the key while the 7 is the shared. But what about the other one? Also the privkey contains a lot more bignums which I have no idea what they are.

Edit:

So apparently what I am looking for is the format of the private key blob. I have searched and all I have found are references to the name and not the actual format.


The number with size 1 is the "version". What you observe is the encoding of a structure which contains the key elements. The structure follows ASN.1 conventions and encoding rules. In the case of RSA, the contents of the public and private keys are specified by PKCS#1 (see annex C for the ASN.1 specification, and section 3 for the human readable text).

0

精彩评论

暂无评论...
验证码 换一张
取 消