Skip to content

Commit cfa4f28

Browse files
author
Andreas Auernhammer
committed
add license header to *.rs files
1 parent 1dec963 commit cfa4f28

File tree

7 files changed

+31
-1
lines changed

7 files changed

+31
-1
lines changed

benches/writer.rs

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Copyright (c) 2019 Andreas Auernhammer. All rights reserved.
2+
// Use of this source code is governed by a license that can be
3+
// found in the LICENSE file.
4+
15
#![feature(test)]
26

37
use sio::*;

src/aead.rs

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Copyright (c) 2019 Andreas Auernhammer. All rights reserved.
2+
// Use of this source code is governed by a license that can be
3+
// found in the LICENSE file.
4+
15
use crate::error::{Exceeded, Invalid, NotAuthentic};
26
use std::marker::PhantomData;
37

src/error.rs

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Copyright (c) 2019 Andreas Auernhammer. All rights reserved.
2+
// Use of this source code is governed by a license that can be
3+
// found in the LICENSE file.
4+
15
use std::{error::Error, fmt, io};
26

37
/// An error indicating that the encrypted data is not authentic - e.g.

src/lib.rs

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Copyright (c) 2019 Andreas Auernhammer. All rights reserved.
2+
// Use of this source code is governed by a license that can be
3+
// found in the LICENSE file.
4+
15
//! Authenticated encryption for I/O streams.
26
//!
37
//! The `sio` crate implements authenticated encryption for the `Read` and `Write` traits.
@@ -127,9 +131,11 @@ pub use self::writer::{Close, DecWriter, EncWriter};
127131

128132
mod aead;
129133
mod error;
130-
mod ring;
131134
mod writer;
132135

136+
#[cfg(feature = "ring")]
137+
mod ring;
138+
133139
#[cfg(feature = "ring")]
134140
pub use self::ring::AES_256_GCM;
135141

src/ring.rs

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Copyright (c) 2019 Andreas Auernhammer. All rights reserved.
2+
// Use of this source code is governed by a license that can be
3+
// found in the LICENSE file.
4+
15
extern crate ring;
26

37
use super::aead::Algorithm;

src/writer.rs

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Copyright (c) 2019 Andreas Auernhammer. All rights reserved.
2+
// Use of this source code is governed by a license that can be
3+
// found in the LICENSE file.
4+
15
use super::aead::Counter;
26
use super::{Aad, Algorithm, Invalid, Key, Nonce, BUF_SIZE, MAX_BUF_SIZE};
37
use std::io;

tests/writer_tests.rs

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Copyright (c) 2019 Andreas Auernhammer. All rights reserved.
2+
// Use of this source code is governed by a license that can be
3+
// found in the LICENSE file.
4+
15
use sio::*;
26
use std::{io, io::Write};
37

0 commit comments

Comments
 (0)