#102 Prevent Algo confusion attack

This commit is contained in:
arunmu-nx 2025-04-22 18:49:16 +05:30
parent 4a970bc302
commit b9528b32eb
7 changed files with 82 additions and 2 deletions

View file

@ -829,6 +829,10 @@ private: // Private implementation
*/
verify_func_t get_verify_algorithm_impl(const jwt_header& hdr) const noexcept;
/*!
*/
verify_result_t check_for_algo_confusion_attack(const jwt_header& hdr) const;
private: // Data members;
/// The key for creating the JWS