OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
libgo: Update to weekly.2011-11-02.
[pf3gnuchains/gcc-fork.git]
/
libgo
/
go
/
crypto
/
cast5
/
cast5.go
diff --git
a/libgo/go/crypto/cast5/cast5.go
b/libgo/go/crypto/cast5/cast5.go
index
e9d4a24
..
889a13c
100644
(file)
--- a/
libgo/go/crypto/cast5/cast5.go
+++ b/
libgo/go/crypto/cast5/cast5.go
@@
-6,9
+6,7
@@
// OpenPGP cipher.
package cast5
// OpenPGP cipher.
package cast5
-import (
- "os"
-)
+import "errors"
const BlockSize = 8
const KeySize = 16
const BlockSize = 8
const KeySize = 16
@@
-18,9
+16,9
@@
type Cipher struct {
rotate [16]uint8
}
rotate [16]uint8
}
-func NewCipher(key []byte) (c *Cipher, err
os.E
rror) {
+func NewCipher(key []byte) (c *Cipher, err
e
rror) {
if len(key) != KeySize {
if len(key) != KeySize {
- return nil,
os.NewError
("CAST5: keys must be 16 bytes")
+ return nil,
errors.New
("CAST5: keys must be 16 bytes")
}
c = new(Cipher)
}
c = new(Cipher)