| Crypt :: GCM. Crypt :: GCM è un modulo perl che presenta la modalità Galois / Counter (GCM). |
Scarica ora |
Crypt :: GCM. Classifica e riepilogo
- Licenza:
- Perl Artistic License
- Nome editore:
- Hiroyuki OYAMA
- Sito web dell'editore:
- http://search.cpan.org/~oyama/Crypt-GCM-0.02/lib/Crypt/GCM.pm
Crypt :: GCM. Tag
Crypt :: GCM. Descrizione
Crypt :: GCM è un modulo perl che presenta la modalità GALOIS / CONTO (GCM). Crypt :: GCM è un modulo perl che presenta la modalità Galois / Counter (GCM) .Synopsis usa Crypt :: GCM; Usa Crypt :: Rijndael; My $ GCM = Crypt :: GCM-> Nuovo (-key => $ Key, -Cipher => 'Crypt :: Rijndael'); My $ GCM-> set_iv ($ iv); My $ GCM-> AAD (''); My $ CIPHER_STRING = $ GCM-> Encrypt ($ messaggio); My $ tag = $ GCM-> tag; il modulo implementa la modalità Galois / Counter (GCM) per riservatezza e autenticazione. La funzione di GCM in cui il testo in chiaro è crittografato nel ciphertext e un tag di autenticazione viene generato su AAD e il Ciphertext.New () My $ cifral = cripta :: GCM-> Nuovo (--key => Pack 'h * ',' 000000000000000000000000000000000000 ', -Cipher =>' Crypt :: Rijndael ',); il nuovo () Metodo crea un nuovo oggetto Crypt :: GCM. Accetta un elenco di -Argument => Value Pairs selezionato dal seguente elenco: Descrizione argomento ----------------------Key La chiave di crittografia / decrittografia (richiesta) -Cipher L'algoritmo di cifratura (richiesto) Encrypt () My $ cifretExt = $ cifra-> crittografato ($ Plusolorext); Decrypt () My $ Plusext = $ cifra-> Decrypt ($ cifratExt); set_iv () $ cipher-> set_iv ($ iv); questo ti permette di cambiare il vettore di inizializzazione. Consenti 16byte string.aad () $ cifra-> AAD ($ testo); My $ Text = $ Cipher-> Aad (); tag () $ cipher-> tag ($ tag); My $ tag = $ cipher-> tag (); Requisiti: · Perl.
Crypt :: GCM. Software correlato