| Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/evp/evp_lib.c |
| Switch to Source code | Preprocessed file |
| Line | Source | Count | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | - | |||||||||||||
| 2 | - | |||||||||||||
| 3 | - | |||||||||||||
| 4 | int | - | ||||||||||||
| 5 | EVP_CIPHER_param_to_asn1(EVP_CIPHER_CTX *c, ASN1_TYPE *type) | - | ||||||||||||
| 6 | { | - | ||||||||||||
| 7 | int ret; | - | ||||||||||||
| 8 | - | |||||||||||||
| 9 | if (c->cipher->set_asn1_parameters !=
| 0-1 | ||||||||||||
| 10 | ((void *)0)
| 0-1 | ||||||||||||
| 11 | ) | - | ||||||||||||
| 12 | ret = c->cipher->set_asn1_parameters(c, type); never executed: ret = c->cipher->set_asn1_parameters(c, type); | 0 | ||||||||||||
| 13 | else if (c->cipher->flags & 0x1000
| 0-1 | ||||||||||||
| 14 | ret = EVP_CIPHER_set_asn1_iv(c, type); executed 1 time by 1 test: ret = EVP_CIPHER_set_asn1_iv(c, type);Executed by:
| 1 | ||||||||||||
| 15 | else | - | ||||||||||||
| 16 | ret = -1; never executed: ret = -1; | 0 | ||||||||||||
| 17 | return executed 1 time by 1 test: (ret);return (ret);Executed by:
executed 1 time by 1 test: return (ret);Executed by:
| 1 | ||||||||||||
| 18 | } | - | ||||||||||||
| 19 | - | |||||||||||||
| 20 | int | - | ||||||||||||
| 21 | EVP_CIPHER_asn1_to_param(EVP_CIPHER_CTX *c, ASN1_TYPE *type) | - | ||||||||||||
| 22 | { | - | ||||||||||||
| 23 | int ret; | - | ||||||||||||
| 24 | - | |||||||||||||
| 25 | if (c->cipher->get_asn1_parameters !=
| 0-1 | ||||||||||||
| 26 | ((void *)0)
| 0-1 | ||||||||||||
| 27 | ) | - | ||||||||||||
| 28 | ret = c->cipher->get_asn1_parameters(c, type); never executed: ret = c->cipher->get_asn1_parameters(c, type); | 0 | ||||||||||||
| 29 | else if (c->cipher->flags & 0x1000
| 0-1 | ||||||||||||
| 30 | ret = EVP_CIPHER_get_asn1_iv(c, type); executed 1 time by 1 test: ret = EVP_CIPHER_get_asn1_iv(c, type);Executed by:
| 1 | ||||||||||||
| 31 | else | - | ||||||||||||
| 32 | ret = -1; never executed: ret = -1; | 0 | ||||||||||||
| 33 | return executed 1 time by 1 test: (ret);return (ret);Executed by:
executed 1 time by 1 test: return (ret);Executed by:
| 1 | ||||||||||||
| 34 | } | - | ||||||||||||
| 35 | - | |||||||||||||
| 36 | int | - | ||||||||||||
| 37 | EVP_CIPHER_get_asn1_iv(EVP_CIPHER_CTX *c, ASN1_TYPE *type) | - | ||||||||||||
| 38 | { | - | ||||||||||||
| 39 | int i = 0; | - | ||||||||||||
| 40 | unsigned int l; | - | ||||||||||||
| 41 | - | |||||||||||||
| 42 | if (type !=
| 0-1 | ||||||||||||
| 43 | ((void *)0)
| 0-1 | ||||||||||||
| 44 | ) { | - | ||||||||||||
| 45 | l = EVP_CIPHER_CTX_iv_length(c); | - | ||||||||||||
| 46 | if (l > sizeof(c->iv)
| 0-1 | ||||||||||||
| 47 | ERR_put_error(6,(0xfff),(102),__FILE__,103); | - | ||||||||||||
| 48 | return never executed: 0;return 0;never executed: return 0; | 0 | ||||||||||||
| 49 | } | - | ||||||||||||
| 50 | i = ASN1_TYPE_get_octetstring(type, c->oiv, l); | - | ||||||||||||
| 51 | if (i != (int)l
| 0-1 | ||||||||||||
| 52 | return never executed: (-1);return (-1);never executed: return (-1); | 0 | ||||||||||||
| 53 | else if (i > 0
| 0-1 | ||||||||||||
| 54 | memcpy(c->iv, c->oiv, l); executed 1 time by 1 test: memcpy(c->iv, c->oiv, l);Executed by:
| 1 | ||||||||||||
| 55 | } executed 1 time by 1 test: end of blockExecuted by:
| 1 | ||||||||||||
| 56 | return executed 1 time by 1 test: (i);return (i);Executed by:
executed 1 time by 1 test: return (i);Executed by:
| 1 | ||||||||||||
| 57 | } | - | ||||||||||||
| 58 | - | |||||||||||||
| 59 | int | - | ||||||||||||
| 60 | EVP_CIPHER_set_asn1_iv(EVP_CIPHER_CTX *c, ASN1_TYPE *type) | - | ||||||||||||
| 61 | { | - | ||||||||||||
| 62 | int i = 0; | - | ||||||||||||
| 63 | unsigned int j; | - | ||||||||||||
| 64 | - | |||||||||||||
| 65 | if (type !=
| 0-1 | ||||||||||||
| 66 | ((void *)0)
| 0-1 | ||||||||||||
| 67 | ) { | - | ||||||||||||
| 68 | j = EVP_CIPHER_CTX_iv_length(c); | - | ||||||||||||
| 69 | if (j > sizeof(c->iv)
| 0-1 | ||||||||||||
| 70 | ERR_put_error(6,(0xfff),(102),__FILE__,124); | - | ||||||||||||
| 71 | return never executed: 0;return 0;never executed: return 0; | 0 | ||||||||||||
| 72 | } | - | ||||||||||||
| 73 | i = ASN1_TYPE_set_octetstring(type, c->oiv, j); | - | ||||||||||||
| 74 | } executed 1 time by 1 test: end of blockExecuted by:
| 1 | ||||||||||||
| 75 | return executed 1 time by 1 test: (i);return (i);Executed by:
executed 1 time by 1 test: return (i);Executed by:
| 1 | ||||||||||||
| 76 | } | - | ||||||||||||
| 77 | - | |||||||||||||
| 78 | - | |||||||||||||
| 79 | int | - | ||||||||||||
| 80 | EVP_CIPHER_type(const EVP_CIPHER *ctx) | - | ||||||||||||
| 81 | { | - | ||||||||||||
| 82 | int nid; | - | ||||||||||||
| 83 | ASN1_OBJECT *otmp; | - | ||||||||||||
| 84 | nid = EVP_CIPHER_nid(ctx); | - | ||||||||||||
| 85 | - | |||||||||||||
| 86 | switch (nid) { | - | ||||||||||||
| 87 | case never executed: 37:case 37:never executed: case 37: | 0 | ||||||||||||
| 88 | case never executed: 166:case 166:never executed: case 166: | 0 | ||||||||||||
| 89 | case never executed: 98:case 98:never executed: case 98: | 0 | ||||||||||||
| 90 | return never executed: 37;return 37;never executed: return 37; | 0 | ||||||||||||
| 91 | - | |||||||||||||
| 92 | case never executed: 5:case 5:never executed: case 5: | 0 | ||||||||||||
| 93 | case never executed: 97:case 97:never executed: case 97: | 0 | ||||||||||||
| 94 | return never executed: 5;return 5;never executed: return 5; | 0 | ||||||||||||
| 95 | - | |||||||||||||
| 96 | case never executed: 421:case 421:never executed: case 421: | 0 | ||||||||||||
| 97 | case never executed: 653:case 653:never executed: case 653: | 0 | ||||||||||||
| 98 | case never executed: 650:case 650:never executed: case 650: | 0 | ||||||||||||
| 99 | return never executed: 421;return 421;never executed: return 421; | 0 | ||||||||||||
| 100 | - | |||||||||||||
| 101 | case never executed: 425:case 425:never executed: case 425: | 0 | ||||||||||||
| 102 | case never executed: 654:case 654:never executed: case 654: | 0 | ||||||||||||
| 103 | case never executed: 651:case 651:never executed: case 651: | 0 | ||||||||||||
| 104 | return never executed: 425;return 425;never executed: return 425; | 0 | ||||||||||||
| 105 | - | |||||||||||||
| 106 | case never executed: 429:case 429:never executed: case 429: | 0 | ||||||||||||
| 107 | case never executed: 655:case 655:never executed: case 655: | 0 | ||||||||||||
| 108 | case never executed: 652:case 652:never executed: case 652: | 0 | ||||||||||||
| 109 | return never executed: 429;return 429;never executed: return 429; | 0 | ||||||||||||
| 110 | - | |||||||||||||
| 111 | case never executed: 30:case 30:never executed: case 30: | 0 | ||||||||||||
| 112 | case never executed: 657:case 657:never executed: case 657: | 0 | ||||||||||||
| 113 | case never executed: 656:case 656:never executed: case 656: | 0 | ||||||||||||
| 114 | return never executed: 30;return 30;never executed: return 30; | 0 | ||||||||||||
| 115 | - | |||||||||||||
| 116 | case never executed: 61:case 61:never executed: case 61: | 0 | ||||||||||||
| 117 | case never executed: 659:case 659:never executed: case 659: | 0 | ||||||||||||
| 118 | case never executed: 658:case 658:never executed: case 658: | 0 | ||||||||||||
| 119 | return never executed: 30;return 30;never executed: return 30; | 0 | ||||||||||||
| 120 | - | |||||||||||||
| 121 | default executed 2 times by 1 test: :default:Executed by:
executed 2 times by 1 test: default:Executed by:
| 2 | ||||||||||||
| 122 | - | |||||||||||||
| 123 | otmp = OBJ_nid2obj(nid); | - | ||||||||||||
| 124 | if (!otmp
| 0-2 | ||||||||||||
| 125 | nid = 0; never executed: nid = 0; | 0 | ||||||||||||
| 126 | ASN1_OBJECT_free(otmp); | - | ||||||||||||
| 127 | return executed 2 times by 1 test: nid;return nid;Executed by:
executed 2 times by 1 test: return nid;Executed by:
| 2 | ||||||||||||
| 128 | } | - | ||||||||||||
| 129 | } | - | ||||||||||||
| 130 | - | |||||||||||||
| 131 | int | - | ||||||||||||
| 132 | EVP_CIPHER_block_size(const EVP_CIPHER *e) | - | ||||||||||||
| 133 | { | - | ||||||||||||
| 134 | return executed 664 times by 1 test: e->block_size;return e->block_size;Executed by:
executed 664 times by 1 test: return e->block_size;Executed by:
| 664 | ||||||||||||
| 135 | } | - | ||||||||||||
| 136 | - | |||||||||||||
| 137 | int | - | ||||||||||||
| 138 | EVP_CIPHER_CTX_block_size(const EVP_CIPHER_CTX *ctx) | - | ||||||||||||
| 139 | { | - | ||||||||||||
| 140 | return never executed: ctx->cipher->block_size;return ctx->cipher->block_size;never executed: return ctx->cipher->block_size; | 0 | ||||||||||||
| 141 | } | - | ||||||||||||
| 142 | - | |||||||||||||
| 143 | int | - | ||||||||||||
| 144 | EVP_Cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, const unsigned char *in, | - | ||||||||||||
| 145 | unsigned int inl) | - | ||||||||||||
| 146 | { | - | ||||||||||||
| 147 | return executed 472 times by 1 test: ctx->cipher->do_cipher(ctx, out, in, inl);return ctx->cipher->do_cipher(ctx, out, in, inl);Executed by:
executed 472 times by 1 test: return ctx->cipher->do_cipher(ctx, out, in, inl);Executed by:
| 472 | ||||||||||||
| 148 | } | - | ||||||||||||
| 149 | - | |||||||||||||
| 150 | const EVP_CIPHER * | - | ||||||||||||
| 151 | EVP_CIPHER_CTX_cipher(const EVP_CIPHER_CTX *ctx) | - | ||||||||||||
| 152 | { | - | ||||||||||||
| 153 | return executed 472 times by 1 test: ctx->cipher;return ctx->cipher;Executed by:
executed 472 times by 1 test: return ctx->cipher;Executed by:
| 472 | ||||||||||||
| 154 | } | - | ||||||||||||
| 155 | - | |||||||||||||
| 156 | int | - | ||||||||||||
| 157 | EVP_CIPHER_CTX_encrypting(const EVP_CIPHER_CTX *ctx) | - | ||||||||||||
| 158 | { | - | ||||||||||||
| 159 | return never executed: ctx->encrypt;return ctx->encrypt;never executed: return ctx->encrypt; | 0 | ||||||||||||
| 160 | } | - | ||||||||||||
| 161 | - | |||||||||||||
| 162 | unsigned long | - | ||||||||||||
| 163 | EVP_CIPHER_flags(const EVP_CIPHER *cipher) | - | ||||||||||||
| 164 | { | - | ||||||||||||
| 165 | return executed 676 times by 1 test: cipher->flags;return cipher->flags;Executed by:
executed 676 times by 1 test: return cipher->flags;Executed by:
| 676 | ||||||||||||
| 166 | } | - | ||||||||||||
| 167 | - | |||||||||||||
| 168 | unsigned long | - | ||||||||||||
| 169 | EVP_CIPHER_CTX_flags(const EVP_CIPHER_CTX *ctx) | - | ||||||||||||
| 170 | { | - | ||||||||||||
| 171 | return executed 2410 times by 5 tests: ctx->cipher->flags;return ctx->cipher->flags;Executed by:
executed 2410 times by 5 tests: return ctx->cipher->flags;Executed by:
| 2410 | ||||||||||||
| 172 | } | - | ||||||||||||
| 173 | - | |||||||||||||
| 174 | void * | - | ||||||||||||
| 175 | EVP_CIPHER_CTX_get_app_data(const EVP_CIPHER_CTX *ctx) | - | ||||||||||||
| 176 | { | - | ||||||||||||
| 177 | return never executed: ctx->app_data;return ctx->app_data;never executed: return ctx->app_data; | 0 | ||||||||||||
| 178 | } | - | ||||||||||||
| 179 | - | |||||||||||||
| 180 | void | - | ||||||||||||
| 181 | EVP_CIPHER_CTX_set_app_data(EVP_CIPHER_CTX *ctx, void *data) | - | ||||||||||||
| 182 | { | - | ||||||||||||
| 183 | ctx->app_data = data; | - | ||||||||||||
| 184 | } never executed: end of block | 0 | ||||||||||||
| 185 | - | |||||||||||||
| 186 | int | - | ||||||||||||
| 187 | EVP_CIPHER_iv_length(const EVP_CIPHER *cipher) | - | ||||||||||||
| 188 | { | - | ||||||||||||
| 189 | return executed 301 times by 2 tests: cipher->iv_len;return cipher->iv_len;Executed by:
executed 301 times by 2 tests: return cipher->iv_len;Executed by:
| 301 | ||||||||||||
| 190 | } | - | ||||||||||||
| 191 | - | |||||||||||||
| 192 | int | - | ||||||||||||
| 193 | EVP_CIPHER_CTX_iv_length(const EVP_CIPHER_CTX *ctx) | - | ||||||||||||
| 194 | { | - | ||||||||||||
| 195 | return executed 2047 times by 5 tests: ctx->cipher->iv_len;return ctx->cipher->iv_len;Executed by:
executed 2047 times by 5 tests: return ctx->cipher->iv_len;Executed by:
| 2047 | ||||||||||||
| 196 | } | - | ||||||||||||
| 197 | - | |||||||||||||
| 198 | int | - | ||||||||||||
| 199 | EVP_CIPHER_key_length(const EVP_CIPHER *cipher) | - | ||||||||||||
| 200 | { | - | ||||||||||||
| 201 | return executed 241 times by 2 tests: cipher->key_len;return cipher->key_len;Executed by:
executed 241 times by 2 tests: return cipher->key_len;Executed by:
| 241 | ||||||||||||
| 202 | } | - | ||||||||||||
| 203 | - | |||||||||||||
| 204 | int | - | ||||||||||||
| 205 | EVP_CIPHER_CTX_key_length(const EVP_CIPHER_CTX *ctx) | - | ||||||||||||
| 206 | { | - | ||||||||||||
| 207 | return executed 114 times by 3 tests: ctx->key_len;return ctx->key_len;Executed by:
executed 114 times by 3 tests: return ctx->key_len;Executed by:
| 114 | ||||||||||||
| 208 | } | - | ||||||||||||
| 209 | - | |||||||||||||
| 210 | int | - | ||||||||||||
| 211 | EVP_CIPHER_nid(const EVP_CIPHER *cipher) | - | ||||||||||||
| 212 | { | - | ||||||||||||
| 213 | return executed 187 times by 2 tests: cipher->nid;return cipher->nid;Executed by:
executed 187 times by 2 tests: return cipher->nid;Executed by:
| 187 | ||||||||||||
| 214 | } | - | ||||||||||||
| 215 | - | |||||||||||||
| 216 | int | - | ||||||||||||
| 217 | EVP_CIPHER_CTX_nid(const EVP_CIPHER_CTX *ctx) | - | ||||||||||||
| 218 | { | - | ||||||||||||
| 219 | return never executed: ctx->cipher->nid;return ctx->cipher->nid;never executed: return ctx->cipher->nid; | 0 | ||||||||||||
| 220 | } | - | ||||||||||||
| 221 | - | |||||||||||||
| 222 | int | - | ||||||||||||
| 223 | EVP_CIPHER_CTX_get_iv(const EVP_CIPHER_CTX *ctx, unsigned char *iv, size_t len) | - | ||||||||||||
| 224 | { | - | ||||||||||||
| 225 | if (ctx ==
| 0 | ||||||||||||
| 226 | ((void *)0)
| 0 | ||||||||||||
| 227 | || len != EVP_CIPHER_CTX_iv_length(ctx)
| 0 | ||||||||||||
| 228 | return never executed: 0;return 0;never executed: return 0; | 0 | ||||||||||||
| 229 | if (len > 16
| 0 | ||||||||||||
| 230 | return never executed: 0;return 0;never executed: return 0; | 0 | ||||||||||||
| 231 | - | |||||||||||||
| 232 | - | |||||||||||||
| 233 | - | |||||||||||||
| 234 | - | |||||||||||||
| 235 | if (len != 0
| 0 | ||||||||||||
| 236 | if (iv ==
| 0 | ||||||||||||
| 237 | ((void *)0)
| 0 | ||||||||||||
| 238 | ) | - | ||||||||||||
| 239 | return never executed: 0;return 0;never executed: return 0; | 0 | ||||||||||||
| 240 | memcpy(iv, ctx->iv, len); | - | ||||||||||||
| 241 | } never executed: end of block | 0 | ||||||||||||
| 242 | return never executed: 1;return 1;never executed: return 1; | 0 | ||||||||||||
| 243 | } | - | ||||||||||||
| 244 | - | |||||||||||||
| 245 | int | - | ||||||||||||
| 246 | EVP_CIPHER_CTX_set_iv(EVP_CIPHER_CTX *ctx, const unsigned char *iv, size_t len) | - | ||||||||||||
| 247 | { | - | ||||||||||||
| 248 | if (ctx ==
| 0 | ||||||||||||
| 249 | ((void *)0)
| 0 | ||||||||||||
| 250 | || len != EVP_CIPHER_CTX_iv_length(ctx)
| 0 | ||||||||||||
| 251 | return never executed: 0;return 0;never executed: return 0; | 0 | ||||||||||||
| 252 | if (len > 16
| 0 | ||||||||||||
| 253 | return never executed: 0;return 0;never executed: return 0; | 0 | ||||||||||||
| 254 | - | |||||||||||||
| 255 | - | |||||||||||||
| 256 | - | |||||||||||||
| 257 | - | |||||||||||||
| 258 | if (len != 0
| 0 | ||||||||||||
| 259 | if (iv ==
| 0 | ||||||||||||
| 260 | ((void *)0)
| 0 | ||||||||||||
| 261 | ) | - | ||||||||||||
| 262 | return never executed: 0;return 0;never executed: return 0; | 0 | ||||||||||||
| 263 | memcpy(ctx->iv, iv, len); | - | ||||||||||||
| 264 | } never executed: end of block | 0 | ||||||||||||
| 265 | return never executed: 1;return 1;never executed: return 1; | 0 | ||||||||||||
| 266 | } | - | ||||||||||||
| 267 | - | |||||||||||||
| 268 | int | - | ||||||||||||
| 269 | EVP_MD_block_size(const EVP_MD *md) | - | ||||||||||||
| 270 | { | - | ||||||||||||
| 271 | return executed 26718 times by 6 tests: md->block_size;return md->block_size;Executed by:
executed 26718 times by 6 tests: return md->block_size;Executed by:
| 26718 | ||||||||||||
| 272 | } | - | ||||||||||||
| 273 | - | |||||||||||||
| 274 | int | - | ||||||||||||
| 275 | EVP_MD_type(const EVP_MD *md) | - | ||||||||||||
| 276 | { | - | ||||||||||||
| 277 | return executed 577 times by 7 tests: md->type;return md->type;Executed by:
executed 577 times by 7 tests: return md->type;Executed by:
| 577 | ||||||||||||
| 278 | } | - | ||||||||||||
| 279 | - | |||||||||||||
| 280 | int | - | ||||||||||||
| 281 | EVP_MD_pkey_type(const EVP_MD *md) | - | ||||||||||||
| 282 | { | - | ||||||||||||
| 283 | return never executed: md->pkey_type;return md->pkey_type;never executed: return md->pkey_type; | 0 | ||||||||||||
| 284 | } | - | ||||||||||||
| 285 | - | |||||||||||||
| 286 | int | - | ||||||||||||
| 287 | EVP_MD_size(const EVP_MD *md) | - | ||||||||||||
| 288 | { | - | ||||||||||||
| 289 | if (!md
| 0-15836 | ||||||||||||
| 290 | ERR_put_error(6,(0xfff),(159),__FILE__,336); | - | ||||||||||||
| 291 | return never executed: -1;return -1;never executed: return -1; | 0 | ||||||||||||
| 292 | } | - | ||||||||||||
| 293 | return executed 15836 times by 18 tests: md->md_size;return md->md_size;Executed by:
executed 15836 times by 18 tests: return md->md_size;Executed by:
| 15836 | ||||||||||||
| 294 | } | - | ||||||||||||
| 295 | - | |||||||||||||
| 296 | unsigned long | - | ||||||||||||
| 297 | EVP_MD_flags(const EVP_MD *md) | - | ||||||||||||
| 298 | { | - | ||||||||||||
| 299 | return never executed: md->flags;return md->flags;never executed: return md->flags; | 0 | ||||||||||||
| 300 | } | - | ||||||||||||
| 301 | - | |||||||||||||
| 302 | const EVP_MD * | - | ||||||||||||
| 303 | EVP_MD_CTX_md(const EVP_MD_CTX *ctx) | - | ||||||||||||
| 304 | { | - | ||||||||||||
| 305 | if (!ctx
| 1192-12733 | ||||||||||||
| 306 | return executed 1192 times by 4 tests: return ((void *)0) ;Executed by:
executed 1192 times by 4 tests: return ((void *)0) ;Executed by:
| 1192 | ||||||||||||
| 307 | ((void *)0) executed 1192 times by 4 tests: return ((void *)0) ;Executed by:
| 1192 | ||||||||||||
| 308 | ; executed 1192 times by 4 tests: return ((void *)0) ;Executed by:
| 1192 | ||||||||||||
| 309 | return executed 12733 times by 5 tests: ctx->digest;return ctx->digest;Executed by:
executed 12733 times by 5 tests: return ctx->digest;Executed by:
| 12733 | ||||||||||||
| 310 | } | - | ||||||||||||
| 311 | - | |||||||||||||
| 312 | void | - | ||||||||||||
| 313 | EVP_MD_CTX_set_flags(EVP_MD_CTX *ctx, int flags) | - | ||||||||||||
| 314 | { | - | ||||||||||||
| 315 | ctx->flags |= flags; | - | ||||||||||||
| 316 | } executed 98352 times by 20 tests: end of blockExecuted by:
| 98352 | ||||||||||||
| 317 | - | |||||||||||||
| 318 | void | - | ||||||||||||
| 319 | EVP_MD_CTX_clear_flags(EVP_MD_CTX *ctx, int flags) | - | ||||||||||||
| 320 | { | - | ||||||||||||
| 321 | ctx->flags &= ~flags; | - | ||||||||||||
| 322 | } executed 32214 times by 21 tests: end of blockExecuted by:
| 32214 | ||||||||||||
| 323 | - | |||||||||||||
| 324 | int | - | ||||||||||||
| 325 | EVP_MD_CTX_test_flags(const EVP_MD_CTX *ctx, int flags) | - | ||||||||||||
| 326 | { | - | ||||||||||||
| 327 | return executed 234550 times by 21 tests: (ctx->flags & flags);return (ctx->flags & flags);Executed by:
executed 234550 times by 21 tests: return (ctx->flags & flags);Executed by:
| 234550 | ||||||||||||
| 328 | } | - | ||||||||||||
| 329 | - | |||||||||||||
| 330 | void | - | ||||||||||||
| 331 | EVP_CIPHER_CTX_set_flags(EVP_CIPHER_CTX *ctx, int flags) | - | ||||||||||||
| 332 | { | - | ||||||||||||
| 333 | ctx->flags |= flags; | - | ||||||||||||
| 334 | } never executed: end of block | 0 | ||||||||||||
| 335 | - | |||||||||||||
| 336 | void | - | ||||||||||||
| 337 | EVP_CIPHER_CTX_clear_flags(EVP_CIPHER_CTX *ctx, int flags) | - | ||||||||||||
| 338 | { | - | ||||||||||||
| 339 | ctx->flags &= ~flags; | - | ||||||||||||
| 340 | } never executed: end of block | 0 | ||||||||||||
| 341 | - | |||||||||||||
| 342 | int | - | ||||||||||||
| 343 | EVP_CIPHER_CTX_test_flags(const EVP_CIPHER_CTX *ctx, int flags) | - | ||||||||||||
| 344 | { | - | ||||||||||||
| 345 | return never executed: (ctx->flags & flags);return (ctx->flags & flags);never executed: return (ctx->flags & flags); | 0 | ||||||||||||
| 346 | } | - | ||||||||||||
| Switch to Source code | Preprocessed file |