Running ‘testthat.R’ [11s/11s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > suppressPackageStartupMessages(library(openssl))
  > 
  > test_check("openssl")
  [ FAIL 5 | WARN 0 | SKIP 2 | PASS 543 ]
  
  ══ Skipped tests (2) ═══════════════════════════════════════════════════════════
  • On CRAN (1): 'test_ssl_ctx.R:5:3'
  • no longer available (1): 'test_google.R:7:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test_keys_dsa.R:55:3'): SHA1 signatures ─────────────────────────────
  Error in `hash_verify(md, sig, pk)`: OpenSSL error: 80E83885A67F0000:error:03000098:digital envelope routines:evp_pkey_ctx_set_md:invalid digest:crypto/evp/pmeth_lib.c:966:
  
  Backtrace:
      ▆
   1. ├─testthat::expect_true(signature_verify(msg, sig, sha1, pk1)) at test_keys_dsa.R:55:3
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─openssl::signature_verify(msg, sig, sha1, pk1)
   5.   └─openssl:::hash_verify(md, sig, pk)
  ── Error ('test_keys_ecdsa.R:56:3'): SHA1 signatures ───────────────────────────
  Error in `hash_verify(md, sig, pk)`: OpenSSL error: 80E83885A67F0000:error:03000098:digital envelope routines:evp_pkey_ctx_set_md:invalid digest:crypto/evp/pmeth_lib.c:966:
  
  Backtrace:
      ▆
   1. ├─testthat::expect_true(signature_verify(msg, sig, sha1, pk1)) at test_keys_ecdsa.R:56:3
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─openssl::signature_verify(msg, sig, sha1, pk1)
   5.   └─openssl:::hash_verify(md, sig, pk)
  ── Error ('test_keys_ecdsa384.R:51:3'): SHA1 signatures ────────────────────────
  Error in `hash_verify(md, sig, pk)`: OpenSSL error: 80E83885A67F0000:error:03000098:digital envelope routines:evp_pkey_ctx_set_md:invalid digest:crypto/evp/pmeth_lib.c:966:
  
  Backtrace:
      ▆
   1. ├─testthat::expect_true(signature_verify(msg, sig, sha1, pk1)) at test_keys_ecdsa384.R:51:3
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─openssl::signature_verify(msg, sig, sha1, pk1)
   5.   └─openssl:::hash_verify(md, sig, pk)
  ── Error ('test_keys_ecdsa521.R:51:3'): SHA1 signatures ────────────────────────
  Error in `hash_verify(md, sig, pk)`: OpenSSL error: 80E83885A67F0000:error:03000098:digital envelope routines:evp_pkey_ctx_set_md:invalid digest:crypto/evp/pmeth_lib.c:966:
  
  Backtrace:
      ▆
   1. ├─testthat::expect_true(signature_verify(msg, sig, sha1, pk1)) at test_keys_ecdsa521.R:51:3
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─openssl::signature_verify(msg, sig, sha1, pk1)
   5.   └─openssl:::hash_verify(md, sig, pk)
  ── Error ('test_keys_rsa.R:57:3'): SHA1 signatures ─────────────────────────────
  Error in `hash_sign(md, sk)`: OpenSSL error: 80E83885A67F0000:error:03000098:digital envelope routines:evp_pkey_ctx_set_md:invalid digest:crypto/evp/pmeth_lib.c:966:
  
  Backtrace:
      ▆
   1. ├─testthat::expect_equal(signature_create(msg, sha1, sk1), sig) at test_keys_rsa.R:57:3
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─openssl::signature_create(msg, sha1, sk1)
   5.   └─openssl:::hash_sign(md, sk)
  
  [ FAIL 5 | WARN 0 | SKIP 2 | PASS 543 ]
  Error: Test failures
  Execution halted