File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -72,6 +72,8 @@ private function fromDigits(array $d): string
7272
7373 private function aesEcb (string $ block ): string
7474 {
75+ // NIST SP 800-38G requires AES-ECB as the PRF for FF1/FF3 Feistel rounds.
76+ // This is single-block encryption used as a building block, not ECB mode applied to user data.
7577 $ algo = match (strlen ($ this ->key )) {
7678 16 => 'aes-128-ecb ' ,
7779 24 => 'aes-192-ecb ' ,
Original file line number Diff line number Diff line change @@ -76,6 +76,8 @@ private function fromDigits(array $d): string
7676
7777 private function aesEcb (string $ block ): string
7878 {
79+ // NIST SP 800-38G requires AES-ECB as the PRF for FF1/FF3 Feistel rounds.
80+ // This is single-block encryption used as a building block, not ECB mode applied to user data.
7981 $ algo = match (strlen ($ this ->key )) {
8082 16 => 'aes-128-ecb ' ,
8183 24 => 'aes-192-ecb ' ,
You can’t perform that action at this time.
0 commit comments