ed25519

CryptoPP::ed25519::Verifier shows different result from libsignal

杀马特。学长 韩版系。学妹 提交于 2021-01-28 11:32:15
问题 I'm trying to implement curve25519 verification with CryptoPP. I tried the libsignal library first, witch shows correct result. Then I tried the same data with CryptoPP, but shows wrong result. Here is the code using libsignal to verify a signature: string pub = str2hex("0504f05568cc7a16fa9b4bc1c9d9294a80b7727e349365f855031a180bf0f80910"); ec_public_key* pub_key; curve_decode_point(&pub_key, (uint8_t*)pub.data(), pub.size(), 0); string message = str2hex(

How to convert ed25519 private key to putty ppk?

做~自己de王妃 提交于 2020-12-02 03:58:21
问题 I want to convert an ed25519 private key (which is generated by ssh-keygen command) to a ppk file. But I got the error. Couldn't load private key (unrecognized cipher name) Can someone help me? tested openssh version: OpenSSH_7.6p1, OpenSSL 1.1.0g 2 Nov 2017 and OpenSSH_7.6p1, OpenSSL 1.0.2n 7 Dec 2017 (on CoreOS and ArchLinux docker container) tested putty version: 0.70 64bit , 0.70 32bit and snapshot (on windows 10) My procedure is as follows. 1. Generate an ed25519 private key # ssh-keygen

Validate Base64 encoded 256 bit numbers for digital signature keys

你。 提交于 2019-12-11 12:06:23
问题 I've seen many RegEx answers on how to check for Base64, but I can't find one specifically for representations of 256-bit numbers. I'm brand new to Base64, byte conversions, and RegEx. This answer seems to be the best for checking Base64, but I can't tell from the details if it can be specifically applied to a representation of a 256-bit number. ^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$ I need to make sure of the validity of these strings because I'm using them as

Convert Ed25519 to RSA fingerprint (or how to find SSH fingerprint)

◇◆丶佛笑我妖孽 提交于 2019-12-10 10:11:37
问题 BizTalk sees thumbprint for an internal SFTP test as ssh-rsa 2048 33:88:f0:ff:63:78:a9:2b:3f:09:cb:05:81:db:59:86 WinSCP shows: ssh-ed25519 256 ff:2e:5e:33:7a:15:de:69:18:cf:82:ae:f0:4e:7b:d2 (when I click "Session", then "Server/Protocol Information") Is it possible to convert one to the other? Is it possible to get the ssh-rsa thumbprint from WinSCP, PuTTY or some other tool? 回答1: WinSCP uses Ed25519 host key. It's a different key, than the RSA host key used by BizTalk. You cannot convert

Convert Ed25519 to RSA fingerprint (or how to find SSH fingerprint)

青春壹個敷衍的年華 提交于 2019-12-06 01:27:27
BizTalk sees thumbprint for an internal SFTP test as ssh-rsa 2048 33:88:f0:ff:63:78:a9:2b:3f:09:cb:05:81:db:59:86 WinSCP shows: ssh-ed25519 256 ff:2e:5e:33:7a:15:de:69:18:cf:82:ae:f0:4e:7b:d2 (when I click "Session", then "Server/Protocol Information") Is it possible to convert one to the other? Is it possible to get the ssh-rsa thumbprint from WinSCP, PuTTY or some other tool? WinSCP uses Ed25519 host key. It's a different key, than the RSA host key used by BizTalk. You cannot convert one to another. Also you cannot force WinSCP to use RSA hostkey. WinSCP will always use Ed25519 hostkey as