Lines Matching full:res
948 int res;
965 res = eay_rsa_verify(source, sig, evp->pkey.rsa);
970 return res;
1222 vchar_t *res;
1231 if ((res = vmalloc(data->l)) == NULL)
1252 vfree(res);
1261 vfree(res);
1271 vfree(res);
1279 vfree(res);
1287 if (!EVP_Cipher(&ctx, (u_char *) res->v, (u_char *) data->v, data->l)) {
1289 vfree(res);
1295 return res;
1361 vchar_t *res;
1367 if ((res = vmalloc(data->l)) == NULL)
1371 idea_cbc_encrypt((unsigned char *)data->v, (unsigned char *)res->v, data->l,
1374 return res;
1381 vchar_t *res;
1388 if ((res = vmalloc(data->l)) == NULL)
1392 idea_cbc_encrypt((unsigned char *)data->v, (unsigned char *)res->v, data->l,
1395 return res;
1458 vchar_t *res;
1465 if ((res = vmalloc(data->l)) == NULL)
1469 RC5_32_cbc_encrypt((unsigned char *)data->v, (unsigned char *)res->v, data->l,
1472 return res;
1479 vchar_t *res;
1486 if ((res = vmalloc(data->l)) == NULL)
1490 RC5_32_cbc_encrypt((unsigned char *)data->v, (unsigned char *)res->v, data->l,
1493 return res;
1603 vchar_t *res;
1612 if ((res = vmalloc(data->l)) == NULL)
1618 vfree(res);
1621 if (rijndael_blockEncrypt(&c, &k, data->v, data->l << 3, res->v) < 0){
1622 vfree(res);
1626 return res;
1633 vchar_t *res;
1642 if ((res = vmalloc(data->l)) == NULL)
1648 vfree(res);
1651 if (rijndael_blockDecrypt(&c, &k, data->v, data->l << 3, res->v) < 0){
1652 vfree(res);
1656 return res;
1818 vchar_t *res;
1823 res = eay_hmacsha2_512_final(ctx);
1825 return(res);
1847 vchar_t *res;
1850 if ((res = vmalloc(SHA512_DIGEST_LENGTH)) == 0)
1853 HMAC_Final((HMAC_CTX *)c, (unsigned char *) res->v, &l);
1854 res->l = l;
1858 if (SHA512_DIGEST_LENGTH != res->l) {
1860 "hmac sha2_512 length mismatch %zd.\n", res->l);
1861 vfree(res);
1865 return(res);
1875 vchar_t *res;
1880 res = eay_hmacsha2_384_final(ctx);
1882 return(res);
1904 vchar_t *res;
1907 if ((res = vmalloc(SHA384_DIGEST_LENGTH)) == 0)
1910 HMAC_Final((HMAC_CTX *)c, (unsigned char *) res->v, &l);
1911 res->l = l;
1915 if (SHA384_DIGEST_LENGTH != res->l) {
1917 "hmac sha2_384 length mismatch %zd.\n", res->l);
1918 vfree(res);
1922 return(res);
1932 vchar_t *res;
1937 res = eay_hmacsha2_256_final(ctx);
1939 return(res);
1961 vchar_t *res;
1964 if ((res = vmalloc(SHA256_DIGEST_LENGTH)) == 0)
1967 HMAC_Final((HMAC_CTX *)c, (unsigned char *) res->v, &l);
1968 res->l = l;
1972 if (SHA256_DIGEST_LENGTH != res->l) {
1974 "hmac sha2_256 length mismatch %zd.\n", res->l);
1975 vfree(res);
1979 return(res);
1990 vchar_t *res;
1995 res = eay_hmacsha1_final(ctx);
1997 return(res);
2019 vchar_t *res;
2022 if ((res = vmalloc(SHA_DIGEST_LENGTH)) == 0)
2025 HMAC_Final((HMAC_CTX *)c, (unsigned char *) res->v, &l);
2026 res->l = l;
2030 if (SHA_DIGEST_LENGTH != res->l) {
2032 "hmac sha1 length mismatch %zd.\n", res->l);
2033 vfree(res);
2037 return(res);
2047 vchar_t *res;
2052 res = eay_hmacmd5_final(ctx);
2054 return(res);
2076 vchar_t *res;
2079 if ((res = vmalloc(MD5_DIGEST_LENGTH)) == 0)
2082 HMAC_Final((HMAC_CTX *)c, (unsigned char *) res->v, &l);
2083 res->l = l;
2087 if (MD5_DIGEST_LENGTH != res->l) {
2089 "hmac md5 length mismatch %zd.\n", res->l);
2090 vfree(res);
2094 return(res);
2125 vchar_t *res;
2127 if ((res = vmalloc(SHA512_DIGEST_LENGTH)) == 0)
2130 SHA512_Final((unsigned char *) res->v, (SHA512_CTX *)c);
2133 return(res);
2141 vchar_t *res;
2145 res = eay_sha2_512_final(ctx);
2147 return(res);
2185 vchar_t *res;
2187 if ((res = vmalloc(SHA384_DIGEST_LENGTH)) == 0)
2190 SHA384_Final((unsigned char *) res->v, (SHA384_CTX *)c);
2193 return(res);
2201 vchar_t *res;
2205 res = eay_sha2_384_final(ctx);
2207 return(res);
2245 vchar_t *res;
2247 if ((res = vmalloc(SHA256_DIGEST_LENGTH)) == 0)
2250 SHA256_Final((unsigned char *) res->v, (SHA256_CTX *)c);
2253 return(res);
2261 vchar_t *res;
2265 res = eay_sha2_256_final(ctx);
2267 return(res);
2304 vchar_t *res;
2306 if ((res = vmalloc(SHA_DIGEST_LENGTH)) == 0)
2309 SHA1_Final((unsigned char *) res->v, (SHA_CTX *)c);
2312 return(res);
2320 vchar_t *res;
2324 res = eay_sha1_final(ctx);
2326 return(res);
2362 vchar_t *res;
2364 if ((res = vmalloc(MD5_DIGEST_LENGTH)) == 0)
2367 MD5_Final((unsigned char *) res->v, (MD5_CTX *)c);
2370 return(res);
2378 vchar_t *res;
2382 res = eay_md5_final(ctx);
2384 return(res);
2402 vchar_t *res = 0;
2407 eay_bn2v(&res, r);
2412 return(res);
2569 vchar_t *res = NULL;
2587 res = vmalloc(outlen);
2588 if (!res)
2591 memcpy(res->v, outb, outlen);
2599 return res;
2608 vchar_t *res = NULL;
2619 res = vmalloc(plen+1);
2620 if (!res)
2623 memcpy (res->v, ptr, plen);
2624 res->v[plen] = '\0';
2630 return res;