Searched refs:smlen (Results 1 – 2 of 2) sorted by relevance
/external/openssh/ |
D | ssh-ed25519.c | 41 unsigned long long smlen; in ssh_ed25519_sign() local 55 smlen = slen = datalen + crypto_sign_ed25519_BYTES; in ssh_ed25519_sign() 59 if ((ret = crypto_sign_ed25519(sig, &smlen, data, datalen, in ssh_ed25519_sign() 60 key->ed25519_sk)) != 0 || smlen <= datalen) { in ssh_ed25519_sign() 70 (r = sshbuf_put_string(b, sig, smlen - datalen)) != 0) in ssh_ed25519_sign() 104 unsigned long long smlen = 0, mlen = 0; in ssh_ed25519_verify() local 134 smlen = len + datalen; in ssh_ed25519_verify() 135 mlen = smlen; in ssh_ed25519_verify() 136 if ((sm = malloc(smlen)) == NULL || (m = malloc(mlen)) == NULL) { in ssh_ed25519_verify() 142 if ((ret = crypto_sign_ed25519_open(m, &mlen, sm, smlen, in ssh_ed25519_verify() [all …]
|
D | ed25519.c | 14 …st unsigned char *sm, const unsigned char *pk, unsigned char *playground, unsigned long long smlen) in get_hram() argument 20 for (i = 64;i < smlen;++i) playground[i] = sm[i]; in get_hram() 22 crypto_hash_sha512(hram,playground,smlen); in get_hram() 52 unsigned char *sm,unsigned long long *smlen, in crypto_sign_ed25519() argument 71 *smlen = mlen+64; in crypto_sign_ed25519() 105 const unsigned char *sm,unsigned long long smlen, in crypto_sign_ed25519_open() argument 117 if (smlen < 64) return -1; in crypto_sign_ed25519_open() 121 get_hram(hram,sm,pk,m,smlen); in crypto_sign_ed25519_open() 134 for(i=0;i<smlen-64;i++) in crypto_sign_ed25519_open() 136 *mlen = smlen-64; in crypto_sign_ed25519_open() [all …]
|