5
A
回答
5
这只是一条评论,旨在帮助您保持每个公钥的来源。
在OpenSSH的源(V6.3,则auth-rsa.c:57-65):
/*
* The .ssh/authorized_keys file contains public keys, one per line, in the
* following format:
* options bits e n comment
* where bits, e and n are decimal numbers,
* and comment is any string of characters up to newline. The maximum
* length of a line is SSH_MAX_PUBKEY_BYTES characters. See sshd(8) for a
* description of the options.
*/
和阅读:
case KEY_RSA1:
/* Get number of bits. */
if (*cp < '0' || *cp > '9')
return -1; /* Bad bit count... */
for (bits = 0; *cp >= '0' && *cp <= '9'; cp++)
bits = 10 * bits + *cp - '0';
if (bits == 0)
return -1;
*cpp = cp;
/* Get public exponent, public modulus. */
if (!read_bignum(cpp, ret->rsa->e))
return -1;
if (!read_bignum(cpp, ret->rsa->n))
return -1;
/* validate the claimed number of bits */
if ((u_int)BN_num_bits(ret->rsa->n) != bits) {
verbose("key_read: claimed key size %d does not match "
"actual %d", bits, BN_num_bits(ret->rsa->n));
return -1;
}
success = 1;
break;
,它甚至没有解析评论。
相关问题
- 1. 什么是RSA主机密钥?
- 2. debug1:提供公钥:用户名@主机名
- 3. 为什么在MySQL中引用了用户名和主机名?
- 4. sftp登录私钥和公钥没有用户名和域名
- 5. 使用Base64编码的公钥来验证RSA签名
- 6. 什么是主机名?
- 7. RSA使用公钥加密
- 8. .net中RSA公钥模数和指数的格式是什么?
- 9. 什么是rediffmail和hotmail的主机名和端口号?使用用于Rediff的
- 10. 使用RSA公钥验证JWT签名PHP
- 11. 使用RSA公钥加密DSA私钥
- 12. 使用公钥的Java RSA加密
- 13. ssh-keygen - 如何使用某个用户名设置rsa密钥
- 14. 在RSA算法中使用公钥
- 15. RSA:在.NET中使用公钥解密?
- 16. 使用RSA公钥和私钥在C#中加密数据
- 17. OpenSSL的RSA私钥和公钥
- 18. RSA公钥和私钥的备份
- 19. 什么是主机名,而在卓悦调用的getaddrinfo(....)1.0
- 20. 什么是RSA“密钥ID”?
- 21. 什么是RSA子密钥?
- 22. 为什么我的RSA 2048公钥的长度是294字节?
- 23. c#的RSA公共密钥的公钥#
- 24. 使用RSA公钥解密使用RSA私钥加密的字符串
- 25. 使用RSA公钥来解密使用RSA被加密的字符串私钥
- 26. 是什么主机名和域名(语法)
- 27. 获取用户主机名
- 28. 用公钥解密RSA
- 29. 什么主机名用于mysqli_connect()函数
- 30. RSA iphone公钥
哦,我会滥用这个评论的东西。哈哈。谢谢凯文! – Forethinker