- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for Vaes (0.28 sec)
-
internal/kms/single-key.go
// // You should have received a copy of the GNU Affero General Public License // along with this program. If not, see <http://www.gnu.org/licenses/>. package kms import ( "context" "crypto/aes" "crypto/cipher" "crypto/hmac" "encoding/base64" "errors" "fmt" "net/http" "strconv" "strings" jsoniter "github.com/json-iterator/go" "github.com/secure-io/sio-go/sioutil"
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Fri Mar 01 21:09:42 GMT 2024 - 7.9K bytes - Viewed (0) -
internal/config/crypto.go
// The context is bound to the returned ciphertext. // // The same context must be provided when decrypting the // ciphertext. func Encrypt(k kms.KMS, plaintext io.Reader, ctx kms.Context) (io.Reader, error) { algorithm := sio.AES_256_GCM if !fips.Enabled && !sioutil.NativeAES() { algorithm = sio.ChaCha20Poly1305 } key, err := k.GenerateKey(context.Background(), "", ctx) if err != nil { return nil, err }
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Mon Mar 06 16:56:10 GMT 2023 - 4.8K bytes - Viewed (0) -
docs/debugging/inspect/decrypt-v1.go
} // Verify that CRC is ok. want := binary.LittleEndian.Uint32(id) got := crc32.ChecksumIEEE(key) if want != got { return fmt.Errorf("Invalid key checksum, want %x, got %x", want, got) } stream, err := sio.AES_256_GCM.Stream(key) if err != nil { return err } // Zero nonce, we only use each key once, and 32 bytes is plenty. nonce := make([]byte, stream.NonceSize()) encr := stream.DecryptReader(r, nonce, nil)
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Thu Apr 11 21:22:47 GMT 2024 - 1.6K bytes - Viewed (0) -
internal/fips/api.go
tls.TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA, // TLS 1.2 ECDHE CBC tls.TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA, tls.TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA, tls.TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA, tls.TLS_RSA_WITH_AES_128_GCM_SHA256, // TLS 1.2 non-ECDHE tls.TLS_RSA_WITH_AES_256_GCM_SHA384, tls.TLS_RSA_WITH_AES_128_CBC_SHA, tls.TLS_RSA_WITH_AES_256_CBC_SHA, } } return []uint16{
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Fri Dec 30 19:37:07 GMT 2022 - 5.1K bytes - Viewed (0)