/openbmc/qemu/crypto/ |
H A D | hash.c | 45 size_t *resultlen, in qcrypto_hash_bytesv() argument 55 result, resultlen, in qcrypto_hash_bytesv() 63 result, resultlen, in qcrypto_hash_bytesv() 72 size_t *resultlen, in qcrypto_hash_bytes() argument 77 return qcrypto_hash_bytesv(alg, &iov, 1, result, resultlen, errp); in qcrypto_hash_bytes() 89 size_t resultlen = 0; in qcrypto_hash_digestv() local 96 *digest = g_new0(char, (resultlen * 2) + 1); in qcrypto_hash_digestv() 97 for (i = 0 ; i < resultlen ; i++) { in qcrypto_hash_digestv() 101 (*digest)[resultlen * 2] = '\0'; in qcrypto_hash_digestv() 124 size_t resultlen = 0; in qcrypto_hash_base64v() local [all …]
|
H A D | hash-afalg.c | 121 size_t *resultlen, in qcrypto_afalg_hash_hmac_bytesv() argument 130 if (*resultlen == 0) { in qcrypto_afalg_hash_hmac_bytesv() 131 *resultlen = expect_len; in qcrypto_afalg_hash_hmac_bytesv() 132 *result = g_new0(uint8_t, *resultlen); in qcrypto_afalg_hash_hmac_bytesv() 133 } else if (*resultlen != expect_len) { in qcrypto_afalg_hash_hmac_bytesv() 136 *resultlen, expect_len); in qcrypto_afalg_hash_hmac_bytesv() 159 outv.iov_len = *resultlen; in qcrypto_afalg_hash_hmac_bytesv() 179 size_t *resultlen, in qcrypto_afalg_hash_bytesv() argument 183 resultlen, errp); in qcrypto_afalg_hash_bytesv() 190 size_t *resultlen, in qcrypto_afalg_hmac_bytesv() argument [all …]
|
H A D | hmac.c | 22 size_t *resultlen, in qcrypto_hmac_bytesv() argument 27 return drv->hmac_bytesv(hmac, iov, niov, result, resultlen, errp); in qcrypto_hmac_bytesv() 34 size_t *resultlen, in qcrypto_hmac_bytes() argument 42 return qcrypto_hmac_bytesv(hmac, &iov, 1, result, resultlen, errp); in qcrypto_hmac_bytes() 52 size_t resultlen = 0; in qcrypto_hmac_digestv() local 55 if (qcrypto_hmac_bytesv(hmac, iov, niov, &result, &resultlen, errp) < 0) { in qcrypto_hmac_digestv() 59 *digest = g_new0(char, (resultlen * 2) + 1); in qcrypto_hmac_digestv() 61 for (i = 0 ; i < resultlen ; i++) { in qcrypto_hmac_digestv() 66 (*digest)[resultlen * 2] = '\0'; in qcrypto_hmac_digestv()
|
H A D | hash-glib.c | 52 size_t *resultlen, in qcrypto_glib_hash_bytesv() argument 77 if (*resultlen == 0) { in qcrypto_glib_hash_bytesv() 78 *resultlen = ret; in qcrypto_glib_hash_bytesv() 79 *result = g_new0(uint8_t, *resultlen); in qcrypto_glib_hash_bytesv() 80 } else if (*resultlen != ret) { in qcrypto_glib_hash_bytesv() 83 *resultlen, ret); in qcrypto_glib_hash_bytesv() 87 g_checksum_get_digest(cs, *result, resultlen); in qcrypto_glib_hash_bytesv()
|
H A D | hash-gcrypt.c | 53 size_t *resultlen, in qcrypto_gcrypt_hash_bytesv() argument 87 if (*resultlen == 0) { in qcrypto_gcrypt_hash_bytesv() 88 *resultlen = ret; in qcrypto_gcrypt_hash_bytesv() 89 *result = g_new0(uint8_t, *resultlen); in qcrypto_gcrypt_hash_bytesv() 90 } else if (*resultlen != ret) { in qcrypto_gcrypt_hash_bytesv() 93 *resultlen, ret); in qcrypto_gcrypt_hash_bytesv() 103 memcpy(*result, digest, *resultlen); in qcrypto_gcrypt_hash_bytesv()
|
H A D | hmac-glib.c | 89 size_t *resultlen, in qcrypto_glib_hmac_bytesv() argument 107 if (*resultlen == 0) { in qcrypto_glib_hmac_bytesv() 108 *resultlen = ret; in qcrypto_glib_hmac_bytesv() 109 *result = g_new0(uint8_t, *resultlen); in qcrypto_glib_hmac_bytesv() 110 } else if (*resultlen != ret) { in qcrypto_glib_hmac_bytesv() 112 *resultlen, ret); in qcrypto_glib_hmac_bytesv() 116 g_hmac_get_digest(ctx->ghmac, *result, resultlen); in qcrypto_glib_hmac_bytesv()
|
H A D | hash-gnutls.c | 61 size_t *resultlen, in qcrypto_gnutls_hash_bytesv() argument 75 if (*resultlen == 0) { in qcrypto_gnutls_hash_bytesv() 76 *resultlen = ret; in qcrypto_gnutls_hash_bytesv() 77 *result = g_new0(uint8_t, *resultlen); in qcrypto_gnutls_hash_bytesv() 78 } else if (*resultlen != ret) { in qcrypto_gnutls_hash_bytesv() 81 *resultlen, ret); in qcrypto_gnutls_hash_bytesv()
|
H A D | hmac-gcrypt.c | 100 size_t *resultlen, in qcrypto_gcrypt_hmac_bytesv() argument 121 if (*resultlen == 0) { in qcrypto_gcrypt_hmac_bytesv() 122 *resultlen = ret; in qcrypto_gcrypt_hmac_bytesv() 123 *result = g_new0(uint8_t, *resultlen); in qcrypto_gcrypt_hmac_bytesv() 124 } else if (*resultlen != ret) { in qcrypto_gcrypt_hmac_bytesv() 126 *resultlen, ret); in qcrypto_gcrypt_hmac_bytesv() 130 err = gcry_mac_read(ctx->handle, *result, resultlen); in qcrypto_gcrypt_hmac_bytesv()
|
H A D | hmac-gnutls.c | 102 size_t *resultlen, in qcrypto_gnutls_hmac_bytesv() argument 122 if (*resultlen == 0) { in qcrypto_gnutls_hmac_bytesv() 123 *resultlen = ret; in qcrypto_gnutls_hmac_bytesv() 124 *result = g_new0(uint8_t, *resultlen); in qcrypto_gnutls_hmac_bytesv() 125 } else if (*resultlen != ret) { in qcrypto_gnutls_hmac_bytesv() 127 *resultlen, ret); in qcrypto_gnutls_hmac_bytesv()
|
H A D | hash-nettle.c | 112 size_t *resultlen, in qcrypto_nettle_hash_bytesv() argument 143 if (*resultlen == 0) { in qcrypto_nettle_hash_bytesv() 144 *resultlen = qcrypto_hash_alg_map[alg].len; in qcrypto_nettle_hash_bytesv() 145 *result = g_new0(uint8_t, *resultlen); in qcrypto_nettle_hash_bytesv() 146 } else if (*resultlen != qcrypto_hash_alg_map[alg].len) { in qcrypto_nettle_hash_bytesv() 149 *resultlen, qcrypto_hash_alg_map[alg].len); in qcrypto_nettle_hash_bytesv() 153 qcrypto_hash_alg_map[alg].result(&ctx, *resultlen, *result); in qcrypto_nettle_hash_bytesv()
|
H A D | hmac-nettle.c | 137 size_t *resultlen, in qcrypto_nettle_hmac_bytesv() argument 156 if (*resultlen == 0) { in qcrypto_nettle_hmac_bytesv() 157 *resultlen = qcrypto_hmac_alg_map[hmac->alg].len; in qcrypto_nettle_hmac_bytesv() 158 *result = g_new0(uint8_t, *resultlen); in qcrypto_nettle_hmac_bytesv() 159 } else if (*resultlen != qcrypto_hmac_alg_map[hmac->alg].len) { in qcrypto_nettle_hmac_bytesv() 162 *resultlen, qcrypto_hmac_alg_map[hmac->alg].len); in qcrypto_nettle_hmac_bytesv() 166 qcrypto_hmac_alg_map[hmac->alg].digest(&ctx->u, *resultlen, *result); in qcrypto_nettle_hmac_bytesv()
|
H A D | hashpriv.h | 25 size_t *resultlen,
|
H A D | hmacpriv.h | 25 size_t *resultlen,
|
/openbmc/qemu/tests/unit/ |
H A D | test-crypto-hash.c | 94 size_t resultlen = 0; in test_hash_alloc() local 106 &resultlen, in test_hash_alloc() 111 for (j = 0; j < resultlen; j++) { in test_hash_alloc() 126 size_t resultlen; in test_hash_prealloc() local 134 resultlen = expected_lens[i]; in test_hash_prealloc() 135 result = g_new0(uint8_t, resultlen); in test_hash_prealloc() 141 &resultlen, in test_hash_prealloc() 146 for (j = 0; j < resultlen; j++) { in test_hash_prealloc() 167 size_t resultlen = 0; in test_hash_iov() local 178 &resultlen, in test_hash_iov() [all …]
|
H A D | test-crypto-hmac.c | 91 size_t resultlen = 0; in test_hmac_alloc() local 108 &resultlen, &error_fatal); in test_hmac_alloc() 111 for (j = 0; j < resultlen; j++) { in test_hmac_alloc() 130 size_t resultlen = 0; in test_hmac_prealloc() local 141 resultlen = strlen(exp_output) / 2; in test_hmac_prealloc() 142 result = g_new0(uint8_t, resultlen); in test_hmac_prealloc() 150 &resultlen, &error_fatal); in test_hmac_prealloc() 154 for (j = 0; j < resultlen; j++) { in test_hmac_prealloc() 173 size_t resultlen = 0; in test_hmac_iov() local 194 &resultlen, &error_fatal); in test_hmac_iov() [all …]
|
/openbmc/u-boot/cmd/ |
H A D | fdc.c | 36 uchar resultlen; /* lenght of result */ member 279 pCMD->resultlen=0; /* result only after execution */ in fdc_issue_cmd() 283 pCMD->resultlen=0; /* no result */ in fdc_issue_cmd() 290 pCMD->resultlen=0; /* no result */ in fdc_issue_cmd() 298 pCMD->resultlen=0; /* no result */ in fdc_issue_cmd() 302 pCMD->resultlen=10; /* 10 byte result */ in fdc_issue_cmd() 307 pCMD->resultlen=7; /* 7 byte result */ in fdc_issue_cmd() 312 pCMD->resultlen=0; /* no result */ in fdc_issue_cmd() 317 pCMD->resultlen=2; in fdc_issue_cmd() 328 for(i=0;i<pCMD->resultlen;i++) { in fdc_issue_cmd()
|
/openbmc/qemu/include/crypto/ |
H A D | hmac.h | 93 size_t *resultlen, 119 size_t *resultlen,
|
H A D | hash.h | 72 size_t *resultlen, 97 size_t *resultlen,
|
/openbmc/linux/crypto/ |
H A D | af_alg.c | 1146 unsigned int resultlen; in af_alg_async_cb() local 1149 resultlen = areq->outlen; in af_alg_async_cb() 1154 iocb->ki_complete(iocb, err ? err : (int)resultlen); in af_alg_async_cb()
|