def test_aes_gcm_full(s):
iv_new = os.urandom(16)
cipher_gcm_full = Cipher(algorithms.AES(rawkey), modes.GCM(iv_new),
backend=_default_backend)
encryptor = cipher_gcm_full.encryptor()
r = encryptor.update(s) + encryptor.finalize()
评论列表
文章目录