code
stringlengths
10
1.34M
language
stringclasses
1 value
// Package compute provides access to the Compute Engine API. // // See https://developers.google.com/compute/docs/reference/v1beta14 // // Usage example: // // import "code.google.com/p/google-api-go-client/compute/v1beta14" // ... // computeService, err := compute.New(oauthHttpClient) package compute import ( ...
Go
// Package compute provides access to the Compute Engine API. // // See https://developers.google.com/compute/docs/reference/v1beta13 // // Usage example: // // import "code.google.com/p/google-api-go-client/compute/v1beta13" // ... // computeService, err := compute.New(oauthHttpClient) package compute import ( ...
Go
// Package compute provides access to the Compute Engine API. // // See https://developers.google.com/compute/docs/reference/v1beta12 // // Usage example: // // import "code.google.com/p/google-api-go-client/compute/v1beta12" // ... // computeService, err := compute.New(oauthHttpClient) package compute import ( ...
Go
// Package compute provides access to the Compute Engine API. // // See https://developers.google.com/compute/docs/reference/v1beta15 // // Usage example: // // import "code.google.com/p/google-api-go-client/compute/v1beta15" // ... // computeService, err := compute.New(oauthHttpClient) package compute import ( ...
Go
// Package siteverification provides access to the Google Site Verification API. // // See https://developers.google.com/site-verification/ // // Usage example: // // import "code.google.com/p/google-api-go-client/siteverification/v1" // ... // siteverificationService, err := siteverification.New(oauthHttpClient)...
Go
// Package adsensehost provides access to the AdSense Host API. // // See https://developers.google.com/adsense/host/ // // Usage example: // // import "code.google.com/p/google-api-go-client/adsensehost/v4.1" // ... // adsensehostService, err := adsensehost.New(oauthHttpClient) package adsensehost import ( "by...
Go
// Package adsense provides access to the AdSense Management API. // // See https://developers.google.com/adsense/management/ // // Usage example: // // import "code.google.com/p/google-api-go-client/adsense/v1.2" // ... // adsenseService, err := adsense.New(oauthHttpClient) package adsense import ( "bytes" "c...
Go
// Package adsense provides access to the AdSense Management API. // // See https://developers.google.com/adsense/management/ // // Usage example: // // import "code.google.com/p/google-api-go-client/adsense/v1" // ... // adsenseService, err := adsense.New(oauthHttpClient) package adsense import ( "bytes" "cod...
Go
// Package adsense provides access to the AdSense Management API. // // See https://developers.google.com/adsense/management/ // // Usage example: // // import "code.google.com/p/google-api-go-client/adsense/v1.3" // ... // adsenseService, err := adsense.New(oauthHttpClient) package adsense import ( "bytes" "c...
Go
// Package adsense provides access to the AdSense Management API. // // See https://developers.google.com/adsense/management/ // // Usage example: // // import "code.google.com/p/google-api-go-client/adsense/v1.1" // ... // adsenseService, err := adsense.New(oauthHttpClient) package adsense import ( "bytes" "c...
Go
// Package gan provides access to the Google Affiliate Network API. // // See https://developers.google.com/affiliate-network/ // // Usage example: // // import "code.google.com/p/google-api-go-client/gan/v1beta1" // ... // ganService, err := gan.New(oauthHttpClient) package gan import ( "bytes" "code.google.c...
Go
// Package webfonts provides access to the Google Fonts Developer API. // // See https://developers.google.com/fonts/docs/developer_api // // Usage example: // // import "code.google.com/p/google-api-go-client/webfonts/v1" // ... // webfontsService, err := webfonts.New(oauthHttpClient) package webfonts import ( ...
Go
// Package audit provides access to the Enterprise Audit API. // // See https://developers.google.com/google-apps/admin-audit/get_started // // Usage example: // // import "code.google.com/p/google-api-go-client/audit/v1" // ... // auditService, err := audit.New(oauthHttpClient) package audit import ( "bytes" ...
Go
// Package storage provides access to the Cloud Storage API. // // See https://developers.google.com/storage/docs/json_api/ // // Usage example: // // import "code.google.com/p/google-api-go-client/storage/v1beta2" // ... // storageService, err := storage.New(oauthHttpClient) package storage import ( "bytes" "...
Go
// Package storage provides access to the Cloud Storage API. // // See https://developers.google.com/storage/docs/json_api/ // // Usage example: // // import "code.google.com/p/google-api-go-client/storage/v1beta1" // ... // storageService, err := storage.New(oauthHttpClient) package storage import ( "bytes" "...
Go
// Package androidpublisher provides access to the Google Play Android Developer API. // // See https://developers.google.com/android-publisher // // Usage example: // // import "code.google.com/p/google-api-go-client/androidpublisher/v1" // ... // androidpublisherService, err := androidpublisher.New(oauthHttpCli...
Go
// Package androidpublisher provides access to the Google Play Android Developer API. // // See https://developers.google.com/android-publisher // // Usage example: // // import "code.google.com/p/google-api-go-client/androidpublisher/v1.1" // ... // androidpublisherService, err := androidpublisher.New(oauthHttpC...
Go
// Package sqladmin provides access to the Cloud SQL Administration API. // // See https://developers.google.com/cloud-sql/docs/admin-api/ // // Usage example: // // import "code.google.com/p/google-api-go-client/sqladmin/v1beta1" // ... // sqladminService, err := sqladmin.New(oauthHttpClient) package sqladmin i...
Go
// Package analytics provides access to the Google Analytics API. // // See https://developers.google.com/analytics/ // // Usage example: // // import "code.google.com/p/google-api-go-client/analytics/v3" // ... // analyticsService, err := analytics.New(oauthHttpClient) package analytics import ( "bytes" "code...
Go
// Package analytics provides access to the Google Analytics API. // // See https://developers.google.com/analytics/ // // Usage example: // // import "code.google.com/p/google-api-go-client/analytics/v2.4" // ... // analyticsService, err := analytics.New(oauthHttpClient) package analytics import ( "bytes" "co...
Go
// Package translate provides access to the Translate API. // // See http://code.google.com/apis/language/translate/v2/using_rest.html // // Usage example: // // import "code.google.com/p/google-api-go-client/translate/v2" // ... // translateService, err := translate.New(oauthHttpClient) package translate import...
Go
// Package shopping provides access to the Search API For Shopping. // // See https://developers.google.com/shopping-search/v1/getting_started // // Usage example: // // import "code.google.com/p/google-api-go-client/shopping/v1" // ... // shoppingService, err := shopping.New(oauthHttpClient) package shopping im...
Go
// Package adexchangebuyer provides access to the Ad Exchange Buyer API. // // See https://developers.google.com/ad-exchange/buyer-rest // // Usage example: // // import "code.google.com/p/google-api-go-client/adexchangebuyer/v1.2" // ... // adexchangebuyerService, err := adexchangebuyer.New(oauthHttpClient) pack...
Go
// Package adexchangebuyer provides access to the Ad Exchange Buyer API. // // See https://developers.google.com/ad-exchange/buyer-rest // // Usage example: // // import "code.google.com/p/google-api-go-client/adexchangebuyer/v1" // ... // adexchangebuyerService, err := adexchangebuyer.New(oauthHttpClient) packag...
Go
// Package adexchangebuyer provides access to the Ad Exchange Buyer API. // // See https://developers.google.com/ad-exchange/buyer-rest // // Usage example: // // import "code.google.com/p/google-api-go-client/adexchangebuyer/v1.1" // ... // adexchangebuyerService, err := adexchangebuyer.New(oauthHttpClient) pack...
Go
// Copyright 2011 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package app import ( "appengine" "appengine/channel" "appengine/taskqueue" "crypto/rand" "fmt" "http" "io/ioutil" "template" "url" ) const backendNam...
Go
// Copyright 2011 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package app import ( "appengine" "appengine/channel" "appengine/taskqueue" "bytes" "crypto/sha1" "fmt" "goray/job" "goray/std/yamlscene" "http" "io" ...
Go
// Copyright 2011 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package app import ( "appengine" "appengine/datastore" "appengine/urlfetch" "fmt" "http" "goauth2.googlecode.com/hg/oauth" ) var oauthConfig = &oauth.Co...
Go
// Copyright 2011 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package app import ( "appengine" "appengine/channel" "appengine/taskqueue" "crypto/rand" "fmt" "http" "io/ioutil" "template" "url" ) const backendNam...
Go
// Copyright 2011 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package app import ( "appengine" "appengine/datastore" "appengine/urlfetch" "fmt" "http" "goauth2.googlecode.com/hg/oauth" ) var oauthConfig = &oauth.Co...
Go
// Copyright 2011 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package app import ( "appengine" "appengine/channel" "appengine/taskqueue" "bytes" "crypto/sha1" "fmt" "goray/job" "goray/std/yamlscene" "http" "io" ...
Go
// Copyright 2012 The Avalon Project Authors. All rights reserved. // Use of this source code is governed by the Apache License 2.0 // that can be found in the LICENSE file. // // Avalon webui server. package main import ( "bufio" "code.google.com/p/go.net/websocket" "fmt" "flag" "log" "net/http" ) var ( webr...
Go
package main import ( "io" "os" "time" // "log" ) func Tail(path string, w io.WriteCloser) chan<- bool { stop := make(chan bool) go func() { tick := time.Tick(2*time.Second) var now time.Time var lastsize int64 // = -1 outer: for { select { case _ = <-stop: break outer case now = <-tick:...
Go
// Copyright 2012 The Avalon Project Authors. All rights reserved. // Use of this source code is governed by the Apache License 2.0 // that can be found in the LICENSE file. // // Avalon webui server. package main import ( "bufio" "bytes" "fmt" "log" "net" "strings" "time" ) // Client for the linebusd func Pl...
Go
// Copyright 2012 The Avalon Project Authors. All rights reserved. // Use of this source code is governed by the Apache License 2.0 // that can be found in the LICENSE file. // Generate a triangular plan, starting from current position and course // Usage: plug -o -f imu /var/run/helmsman | ./gentriangleplan > /var/ru...
Go
// Copyright 2012 The Avalon Project Authors. All rights reserved. // Use of this source code is governed by the Apache License 2.0 // that can be found in the LICENSE file. // // Avalon webui server. package main import ( "bufio" "code.google.com/p/go.net/websocket" "fmt" "flag" "log" "net/http" "os" ) var (...
Go
package main import ( "io" "os" "time" // "log" ) func Tail(path string, w io.WriteCloser) chan<- bool { stop := make(chan bool) go func() { tick := time.Tick(2*time.Second) var now time.Time var lastsize int64 // = -1 outer: for { select { case _ = <-stop: break outer case now = <-tick:...
Go
// Copyright 2012 The Avalon Project Authors. All rights reserved. // Use of this source code is governed by the Apache License 2.0 // that can be found in the LICENSE file. // // Avalon webui server. package main import ( "bufio" "bytes" "fmt" "log" "net" "strings" "time" ) // Client for the linebusd func Pl...
Go
// tool to help analyze lbus logs: read lbus log on stdin // print fields listed on the commandline in format src:fld // if multiple sources are listed, for each source line all // last values of the other sources are printed // for every line with a timestamp_ms field, a field 'timestamp_s' is // synthesized with th...
Go
// Copyright 2011 The Avalon Project Authors. All rights reserved. // Use of this source code is governed by the Apache License 2.0 // that can be found in the LICENSE file. // // This is a translation of a part of GeographicLib-1.15 to Go. // // Original copyright notice: // Copyright (c) Charles Karney (2011) <charl...
Go
// Copyright 2011 The Avalon Project Authors. All rights reserved. // Use of this source code is governed by the Apache License 2.0 // that can be found in the LICENSE file. // // This is a translation of a part of GeographicLib-1.15 to Go. // // Original copyright notice: // Copyright (c) Charles Karney (2011) <charl...
Go
// Copyright 2011 The Avalon Project Authors. All rights reserved. // Use of this source code is governed by the Apache License 2.0 // that can be found in the LICENSE file. // // This is a translation of a part of GeographicLib-1.15 to Go. // // Original copyright notice: // Copyright (c) Charles Karney (2011) <charl...
Go
/* * jQuery File Upload Plugin GAE Go Example 3.0.1 * https://github.com/blueimp/jQuery-File-Upload * * Copyright 2011, Sebastian Tschan * https://blueimp.net * * Licensed under the MIT license: * http://www.opensource.org/licenses/MIT */ package app import ( "appengine" "appengine/blobstore" "appengine/i...
Go
// Copyright 2012 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. /* Package pbkdf2 implements the key derivation function PBKDF2 as defined in RFC 2898 / PKCS #5 v2.0. A key derivation function is useful when encrypting data...
Go
// Copyright 2011 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Package twofish implements Bruce Schneier's Twofish encryption algorithm. package twofish // Twofish is defined in http://www.schneier.com/paper-twofish-pap...
Go
// Copyright 2010 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Package ripemd160 implements the RIPEMD-160 hash algorithm. package ripemd160 // RIPEMD-160 is designed by by Hans Dobbertin, Antoon Bosselaers, and Bart //...
Go
// Copyright 2010 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // RIPEMD-160 block step. // In its own file so that a faster assembly or C version // can be substituted easily. package ripemd160 // work buffer indices and...
Go
// Copyright 2012 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package curve25519 // These functions are implemented in the .s files. The names of the functions // in the rest of the file are also taken from the SUPERCOP s...
Go
// Copyright 2012 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // We have a implementation in amd64 assembly so this code is only run on // non-amd64 platforms. // +build !amd64 package curve25519 import ( "math/big" ) ...
Go
// Copyright 2012 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Package curve25519 provides an implementation of scalar multiplication on // the elliptic curve known as curve25519. See http://cr.yp.to/ecdh.html package cu...
Go
// Copyright 2010 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Package cast5 implements CAST5, as defined in RFC 2144. CAST5 is a common // OpenPGP cipher. package cast5 import "errors" const BlockSize = 8 const KeySiz...
Go
// Copyright 2011 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package ssh // Session implements an interactive session described in // "RFC 4254, section 6". import ( "bytes" "errors" "fmt" "io" "io/ioutil" ) type ...
Go
// Copyright 2011 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package ssh import ( "errors" "fmt" "io" "sync" ) // extendedDataTypeCode identifies an OpenSSL extended data type. See RFC 4254, // section 5.2. type ext...
Go
// Copyright 2012 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package ssh // References // [PROTOCOL.certkeys]: http://www.openbsd.org/cgi-bin/cvsweb/src/usr.bin/ssh/PROTOCOL.certkeys import ( "crypto/dsa" "crypto/rs...
Go
// Copyright 2011 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package ssh import ( "crypto/aes" "crypto/cipher" "crypto/rc4" ) // streamDump is used to dump the initial keystream for stream ciphers. It is a // a write...
Go
// Copyright 2011 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package ssh import ( "bufio" "crypto" "crypto/cipher" "crypto/subtle" "encoding/binary" "errors" "hash" "io" "net" "sync" ) const ( packetSizeMulti...
Go
// Copyright 2011 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package ssh import ( "crypto" "crypto/rand" "encoding/binary" "errors" "fmt" "io" "math/big" "net" "sync" ) // clientVersion is the fixed identificat...
Go
// Copyright 2011 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package ssh import ( "crypto/dsa" "crypto/rsa" "errors" "math/big" "strconv" "sync" ) // These are string constants in the SSH protocol. const ( keyAlg...
Go
// Copyright 2011 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package ssh import ( "bytes" "encoding/binary" "io" "math/big" "reflect" ) // These are SSH message type numbers. They are scattered around several // do...
Go
// Copyright 2011 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package ssh // A Terminal is capable of parsing and generating virtual terminal // data from an SSH client. type Terminal interface { ReadLine() (line string,...
Go
// Copyright 2012 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package ssh import ( "crypto/dsa" "crypto/rsa" "math/big" ) // parsePubKey parses a public key according to RFC 4253, section 6.6. func parsePubKey(in []by...
Go
// Copyright 2011 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // +build linux // Package terminal provides support functions for dealing with terminals, as // commonly found on UNIX systems. // // Putting a terminal into ...
Go
// Copyright 2011 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package terminal import ( "io" "sync" ) // EscapeCodes contains escape sequences that can be written to the terminal in // order to achieve different styles...
Go
// Copyright 2012 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package ssh // References // PROTOCOL.agent: http://www.openbsd.org/cgi-bin/cvsweb/src/usr.bin/ssh/PROTOCOL.agent import ( "encoding/base64" "errors" "io...
Go
// Copyright 2011 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package ssh import ( "bytes" "crypto" "crypto/rand" "crypto/rsa" "crypto/x509" "encoding/binary" "encoding/pem" "errors" "fmt" "io" "math/big" "net...
Go
// Copyright 2011 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package ssh import ( "errors" "fmt" "io" "net" "sync" "time" ) // Listen requests the remote peer open a listening socket // on addr. Incoming connecti...
Go
// Copyright 2012 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package ssh import ( "io" "sync" ) // buffer provides a linked list buffer for data exchange // between producer and consumer. Theoretically the buffer is /...
Go
// Copyright 2012 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package ssh // Message authentication support import ( "crypto/hmac" "crypto/sha1" "hash" ) type macMode struct { keySize int new func(key []byte) h...
Go
// Copyright 2011 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package ssh import ( "errors" "fmt" "io" ) // authenticate authenticates with the remote server. See RFC 4252. func (c *ClientConn) authenticate(session []...
Go
// Copyright 2011 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. /* Package ssh implements an SSH client and server. SSH is a transport security protocol, an authentication protocol and a family of application protocols. The...
Go
// Copyright 2012 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package bn256 // For details of the algorithms used, see "Multiplication and Squaring on // Pairing-Friendly Fields, Devegili et al. // http://eprint.iacr.org/...
Go
// Copyright 2012 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package bn256 import ( "math/big" ) // curvePoint implements the elliptic curve y²=x³+3. Points are kept in // Jacobian form and t=z² when valid. G₁ is the s...
Go
// Copyright 2012 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package bn256 func lineFunctionAdd(r, p *twistPoint, q *curvePoint, r2 *gfP2, pool *bnPool) (a, b, c *gfP2, rOut *twistPoint) { // See the mixed addition algo...
Go
// Copyright 2012 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Package bn256 implements a particular bilinear group at the 128-bit security level. // // Bilinear groups are the basis of many of the new cryptographic prot...
Go
// Copyright 2012 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package bn256 // For details of the algorithms used, see "Multiplication and Squaring on // Pairing-Friendly Fields, Devegili et al. // http://eprint.iacr.org/...
Go
// Copyright 2012 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package bn256 // For details of the algorithms used, see "Multiplication and Squaring on // Pairing-Friendly Fields, Devegili et al. // http://eprint.iacr.org/...
Go
// Copyright 2012 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package bn256 import ( "math/big" ) // twistPoint implements the elliptic curve y²=x³+3/ξ over GF(p²). Points are // kept in Jacobian form and t=z² when vali...
Go
// Copyright 2012 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package bn256 import ( "math/big" ) func bigFromBase10(s string) *big.Int { n, _ := new(big.Int).SetString(s, 10) return n } // u is the BN parameter that...
Go
// Copyright 2010 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package blowfish // ExpandKey performs a key expansion on the given *Cipher. Specifically, it // performs the Blowfish algorithm's key schedule which sets up t...
Go
// Copyright 2010 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Package blowfish implements Bruce Schneier's Blowfish encryption algorithm. package blowfish // The code is a port of Bruce Schneier's C implementation. // ...
Go
// Copyright 2010 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // The startup permutation array and substitution boxes. // They are the hexadecimal digits of PI; see: // http://www.schneier.com/code/constants.txt. package ...
Go
// Copyright 2012 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Package xts implements the XTS cipher mode as specified in IEEE P1619/D16. // // XTS mode is typically used for disk encryption, which presents a number of /...
Go
// Copyright 2009 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // MD4 block step. // In its own file so that a faster assembly or C version // can be substituted easily. package md4 var shift1 = []uint{3, 7, 11, 19} var s...
Go
// Copyright 2009 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Package md4 implements the MD4 hash algorithm as defined in RFC 1320. package md4 import ( "crypto" "hash" ) func init() { crypto.RegisterHash(crypto.MD...
Go
// Copyright 2011 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package bcrypt import "encoding/base64" const alphabet = "./ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789" var bcEncoding = base64.NewEncodi...
Go
// Copyright 2011 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Package bcrypt implements Provos and Mazières's bcrypt adaptive hashing // algorithm. See http://www.usenix.org/event/usenix99/provos/provos.pdf package bcry...
Go
// Copyright 2010 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Package ocsp parses OCSP responses as specified in RFC 2560. OCSP responses // are signed messages attesting to the validity of a certificate for a small // ...
Go
// Copyright 2012 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Package otr implements the Off The Record protocol as specified in // http://www.cypherpunks.ca/otr/Protocol-v2-3.1.0.html package otr import ( "bytes" "c...
Go
// Copyright 2012 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // This file implements the Socialist Millionaires Protocol as described in // http://www.cypherpunks.ca/otr/Protocol-v2-3.1.0.html. The protocol // specificati...
Go
// Copyright 2010 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Package errors contains common error types for the OpenPGP packages. package errors import ( "strconv" ) // A StructuralError is returned when OpenPGP dat...
Go
// Copyright 2010 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Package armor implements OpenPGP ASCII Armor, see RFC 4880. OpenPGP Armor is // very similar to PEM except that it has an additional CRC checksum. package ar...
Go
// Copyright 2010 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package armor import ( "encoding/base64" "io" ) var armorHeaderSep = []byte(": ") var blockEnd = []byte("\n=") var newline = []byte("\n") var armorEndOfLine...
Go
// Copyright 2011 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package openpgp import "hash" // NewCanonicalTextHash reformats text written to it into the canonical // form and then applies the hash h. See RFC 4880, sect...
Go
// Copyright 2011 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Package elgamal implements ElGamal encryption, suitable for OpenPGP, // as specified in "A Public-Key Cryptosystem and a Signature Scheme Based on // Discret...
Go
// Copyright 2012 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Package clearsign generates and processes OpenPGP, clear-signed data. See // RFC 4880, section 7. // // Clearsigned messages are cryptographically signed, bu...
Go
// Copyright 2011 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package openpgp import ( "code.google.com/p/go.crypto/openpgp/armor" "code.google.com/p/go.crypto/openpgp/errors" "code.google.com/p/go.crypto/openpgp/packe...
Go
// Copyright 2011 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package openpgp import ( "code.google.com/p/go.crypto/openpgp/armor" "code.google.com/p/go.crypto/openpgp/errors" "code.google.com/p/go.crypto/openpgp/packe...
Go
// Copyright 2011 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Package openpgp implements high level operations on OpenPGP messages. package openpgp import ( "code.google.com/p/go.crypto/openpgp/armor" "code.google.co...
Go
// Copyright 2011 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Package s2k implements the various OpenPGP string-to-key transforms as // specified in RFC 4800 section 3.7.1. package s2k import ( "code.google.com/p/go.c...
Go
// Copyright 2011 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package packet import ( "code.google.com/p/go.crypto/openpgp/errors" "io" ) // Reader reads packets from an io.Reader and allows packets to be 'unread' so /...
Go