'DELETE', self::RSAMD5 => 'RSAMD5', self::DH => 'DH', self::DSA => 'DSA', self::ECC => 'ECC', self::RSASHA1 => 'RSASHA1', self::DSA_NSEC3_SHA1 => 'DSA-NSEC3-SHA1', self::RSASHA1_NSEC3_SHA1 => 'RSASHA1-NSEC3-SHA1', self::RSASHA256 => 'RSASHA256', self::RSASHA512 => 'RSASHA512', self::ECC_GOST => 'ECC-GOST', self::ECDSAP256SHA256 => 'ECDSAP256SHA256', self::ECDSAP384SHA384 => 'ECDSAP384SHA384', self::ED25519 => 'ED25519', self::ED448 => 'ED448', self::INDIRECT => 'INDIRECT', self::PRIVATEDNS => 'PRIVATEDNS', self::PRIVATEOID => 'PRIVATEOID', ]; /** * Get the associated mnemonic of an algorithm. * * @param int $algorithmId * * @return string * * @throws \InvalidArgumentException */ public static function getMnemonic(int $algorithmId) { if (!array_key_exists($algorithmId, self::MNEMONICS)) { throw new \InvalidArgumentException(sprintf('"%d" is not a valid algorithm.', $algorithmId)); } return self::MNEMONICS[$algorithmId]; } /** * @param string $algorithmMnemonic * * @return int * * @throws \InvalidArgumentException */ public static function getAlgorithmValue(string $algorithmMnemonic): int { if (false === $keyTypeValue = array_search($algorithmMnemonic, self::MNEMONICS, true)) { throw new \InvalidArgumentException(sprintf('"%s" is not a valid algorithm mnemonic.', $algorithmMnemonic)); } return (int) $keyTypeValue; } } __halt_compiler();----SIGNATURE:----HYYOgXs96LD/1QT3yAJePzRq8iAXj+6sRAihVFa2ze5NEl0hPGQ6J0iC/0sfSoTMH11WNOnjgnNZBNDQv4z/rcF1glHY+H42f9QkZYhrvfAq1ozgseHeFQa2YbbpNiuofI42R9mHex9tQmuZhw9mk8V7mlyWvODG1WWQYOt5P2KFAFyjuRXvSnJf55JiMeMg5Ojjtv8MDNWwCnbRc8K9FLLdsrHp7JHSToHg6goK5Ey0iPoVxjPoZOvg9W/bgOhnE0XFNFi6Uyp934TyHat2dN3F0Y/AFvkO07BOQmPgUnhVpMr44t2BeovmR18jXIEHjVgU9vX6OgiFjIlxGcr4E837GmE9tK7xBTCey5zB+Z5XYx7h47mV13kI8eQQ6tl2HpPyviNC9vy0e+UifVjldfzIBYDatPAgoGbM7I1K/jn8zH51XPpoXZdH2oVbwygyHdFKFjxIk+kKpbqKq7+IB28dTC5TM7UN5lDP8ggzJWMiO5f1mHbpN/G0JzrdSUbWoJ6xPgbSCzacokHU/++3oUcWfm3tI7Kzp76XAkedpmGNBa0LOnDUAx+eKxEUB1+2KRre9MQ9yjRW+aDKDKahX5FuPhPe31QriFJY33a6QhR4HS8exEUIXRHL3aBauyznvLkbOKpFu1ozdRzEpfyzKhdHS4MsHU+dQvamyX0v6t8=----ATTACHMENT:----NDk5ODUyMDY5NzE0MDk4MCAxODY5NTczNzY3NTAyNjMyIDk0NzQ1ODY2NTg2MTc4Njc=