Skip to content
Snippets Groups Projects
sha256block_decl.go 474 B
Newer Older
  • Learn to ignore specific revisions
  • // Copyright 2013 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.
    
    
    //go:build 386 || amd64 || s390x || ppc64le || ppc64
    
    func doBlock(dig *digest, p *byte, n int)
    
    func block(dig *digest, p []byte) {
    	doBlock(dig, unsafe.SliceData(p), len(p))
    }
    
    func blockString(dig *digest, s string) {
    	doBlock(dig, unsafe.StringData(s), len(s))
    }