CodeQL library for Ruby
codeql/ruby-all 2.0.4-dev (changelog, source)
Search

Module Ciphers

Names of known ciphers supported by the Ruby OpenSSL library, and classification into strong and weak ciphers. Cipher support in practice depends on the underlying OpenSSL/LibreSSL library.

Import path

import codeql.ruby.security.OpenSSL

Predicates

getCanonicalCipherName

Gets the canonical version of name, as reported by OpenSSL::Cipher#name. No result if name is not a known OpenSSL cipher name.

isOpenSslCipher

Holds if name is a known OpenSSL::Cipher. Supported ciphers depend on the version of OpenSSL or LibreSSL specified when installing the openssl gem. Ciphers listed here are sourced from OpenSSL 1.1.1 and LibreSSL 3.4.1.

isStrongOpenSslCipher

Holds if name is the name of an OpenSSL cipher that is known to be strong.

isWeakOpenSslCipher

Holds if name is the name of an OpenSSL cipher that is known to be weak.